artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f64a30f
)
log source route attempts when source routing is disabled
author
deraadt
<deraadt@openbsd.org>
Tue, 28 Nov 1995 01:22:56 +0000
(
01:22
+0000)
committer
deraadt
<deraadt@openbsd.org>
Tue, 28 Nov 1995 01:22:56 +0000
(
01:22
+0000)
sys/netinet/ip_input.c
patch
|
blob
|
history
diff --git
a/sys/netinet/ip_input.c
b/sys/netinet/ip_input.c
index
5fbc1d7
..
991bfe8
100644
(file)
--- 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;