summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2007-01-10 08:10:48 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2007-01-10 08:10:48 +0000
commitdd02ef8fae7ec4a11e5952336eac3f24ba29786a (patch)
treea2f34fdd329f2386592ff9e163976b32c6db1345 /usr.sbin
parent0e3e2debc29a5fc60d20adffe58c7681f582ed59 (diff)
remove ancient code. sync w/ kame
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rtadvd/rtadvd.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c
index 3b3053b9c67..0d24cf065cc 100644
--- a/usr.sbin/rtadvd/rtadvd.c
+++ b/usr.sbin/rtadvd/rtadvd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtadvd.c,v 1.27 2006/12/15 06:14:07 itojun Exp $ */
+/* $OpenBSD: rtadvd.c,v 1.28 2007/01/10 08:10:47 itojun Exp $ */
/* $KAME: rtadvd.c,v 1.66 2002/05/29 14:18:36 itojun Exp $ */
/*
@@ -540,9 +540,6 @@ rtadvd_input()
{
int i;
int *hlimp = NULL;
-#ifdef OLDRAWSOCKET
- struct ip6_hdr *ip;
-#endif
struct icmp6_hdr *icp;
int ifindex = 0;
struct cmsghdr *cm;
@@ -600,17 +597,6 @@ rtadvd_input()
return;
}
-#ifdef OLDRAWSOCKET
- if (i < sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr)) {
- syslog(LOG_ERR,
- "<%s> packet size(%d) is too short",
- __func__, i);
- return;
- }
-
- ip = (struct ip6_hdr *)rcvmhdr.msg_iov[0].iov_base;
- icp = (struct icmp6_hdr *)(ip + 1); /* XXX: ext. hdr? */
-#else
if (i < sizeof(struct icmp6_hdr)) {
syslog(LOG_ERR,
"<%s> packet size(%d) is too short",
@@ -619,7 +605,6 @@ rtadvd_input()
}
icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base;
-#endif
switch (icp->icmp6_type) {
case ND_ROUTER_SOLICIT: