diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-28 01:22:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-28 01:22:57 +0000 |
commit | d7aa106f84189708c2c9aa7a9bd7944113850375 (patch) | |
tree | 0548ab2cacbefb93f4ff413ac261a58548a0edd7 | |
parent | dd48d11ce7719f2a612c132764310a3206e7a2fb (diff) |
log source route attempts when source routing is disabled
-rw-r--r-- | sys/netinet/ip_input.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 5fbc1d79265..991bfe8fe35 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -706,14 +706,10 @@ ip_dooptions(m) } if (!ip_dosourceroute) { -#if 0 - char buf[4*sizeof "123"]; - strcpy(buf, inet_ntoa(ip->ip_dst)); - log(LOG_WARNING, - "attempted source route from %s to %s\n", - inet_ntoa(ip->ip_src), buf); -#endif + "attempted source route from %x to %x\n", + ntohl(ip->ip_src.s_addr), + ntohl(ip->ip_dst.s_addr)); type = ICMP_UNREACH; code = ICMP_UNREACH_SRCFAIL; goto bad; |