version 1.57, 2003/10/03 21:22:32 |
version 1.58, 2003/10/04 21:18:57 |
|
|
#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" |
|
|
|
|
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); |