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

Diff for /src/usr.bin/netstat/route.c between version 1.57 and 1.58

version 1.57, 2003/10/03 21:22:32 version 1.58, 2003/10/04 21:18:57
Line 73 
Line 73 
 #define INET  #define INET
 #endif  #endif
   
 #include <sys/socket.h>  
 #include <netinet/ip_ipsp.h>  #include <netinet/ip_ipsp.h>
 #include "netstat.h"  #include "netstat.h"
   
Line 395 
Line 394 
                 perror("route-sysctl-estimate");                  perror("route-sysctl-estimate");
                 exit(1);                  exit(1);
         }          }
         if ((buf = malloc(needed)) == 0) {          if ((buf = malloc(needed)) == NULL)
                 printf("out of space\n");                  errx(1, NULL);
                 exit(1);  
         }  
         if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) {          if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) {
                 perror("sysctl of routing table");                  perror("sysctl of routing table");
                 exit(1);                  exit(1);

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58