diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-23 02:22:06 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-23 02:22:06 +0300 |
commit | 48237b0c88343154d58854020c3a9c8b07c61b10 (patch) | |
tree | b36bc84f22dd797b45c8d665e50e2f6c690e1370 /networking/traceroute.c | |
parent | b40bdb383a6b7a7f0fd36d0b1cc24deb42cd5f0d (diff) |
introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),
use them where appropriate. 200 bytes saved
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r-- | networking/traceroute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c index c4f050abb..490076543 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c @@ -888,13 +888,14 @@ getaddr(u_int32_t *ap, const char *host) int traceroute_main(int argc, char *argv[]) { + static const int on = 1; + int code, n; unsigned char *outp; u_int32_t *ap; struct sockaddr_in *from = (struct sockaddr_in *)&wherefrom; struct sockaddr_in *to = (struct sockaddr_in *)&whereto; struct hostinfo *hi; - int on = 1; int ttl, probe, i; int seq = 0; int tos = 0; |