[BACK]Return to netcat.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / nc

Diff for /src/usr.bin/nc/netcat.c between version 1.187 and 1.188

version 1.187, 2017/07/15 17:27:39 version 1.188, 2017/10/24 17:49:35
Line 563 
Line 563 
                                  * initially to wait for a caller, then use                                   * initially to wait for a caller, then use
                                  * the regular functions to talk to the caller.                                   * the regular functions to talk to the caller.
                                  */                                   */
                                 int rv, plen;                                  int rv;
                                 char buf[16384];                                  char buf[2048];
                                 struct sockaddr_storage z;                                  struct sockaddr_storage z;
   
                                 len = sizeof(z);                                  len = sizeof(z);
                                 plen = 2048;                                  rv = recvfrom(s, buf, sizeof(buf), MSG_PEEK,
                                 rv = recvfrom(s, buf, plen, MSG_PEEK,  
                                     (struct sockaddr *)&z, &len);                                      (struct sockaddr *)&z, &len);
                                 if (rv < 0)                                  if (rv < 0)
                                         err(1, "recvfrom");                                          err(1, "recvfrom");

Legend:
Removed from v.1.187  
changed lines
  Added in v.1.188