Still old TCP_INFO lingering :-( Failed on FreeBSD

MAINT_6_0
Stephane Bortzmeyer 17 years ago
parent 6ee47fd1b2
commit 8ce9e94775

@ -146,7 +146,7 @@ main(argc, argv)
int priority_requested = 0; int priority_requested = 0;
int tos; int tos;
int tos_requested = 0; int tos_requested = 0;
#ifdef TCP_INFO #ifdef HAVE_TCP_INFO
struct tcp_info tcpinfo; struct tcp_info tcpinfo;
socklen_t socket_length = sizeof(tcpinfo); socklen_t socket_length = sizeof(tcpinfo);
#endif #endif
@ -1341,7 +1341,7 @@ main(argc, argv)
} }
} /* That's all, folks */ } /* That's all, folks */
alarm(0); alarm(0);
#ifdef TCP_INFO #ifdef HAVE_TCP_INFO
/* Thanks to Perry Lorier <perry@coders.net> for the tip */ /* Thanks to Perry Lorier <perry@coders.net> for the tip */
if (tcp && verbose) { if (tcp && verbose) {
if (getsockopt if (getsockopt

Loading…
Cancel
Save