diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-05-30 01:09:17 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-05-30 01:09:17 +0000 |
commit | 441e1efd56d21b17558bc2e2803d3409279c359b (patch) | |
tree | e985b46283b565f6eb3151abeac6d457e947f6d7 /sys/netinet/udp_usrreq.c | |
parent | cd17aaf9f627e76f4089b54cd173cd946cd4e063 (diff) |
missing #ifdef INET6. fries found it
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index c7de8994ddc..e81eff99ad0 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.88 2003/05/29 00:32:59 itojun Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.89 2003/05/30 01:09:16 itojun Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -231,7 +231,9 @@ udp_input(struct mbuf *m, ...) } m_adj(m, len - (m->m_pkthdr.len - iphlen)); } - } else if (ip6) { + } +#ifdef INET6 + else if (ip6) { /* jumbograms */ if (len == 0 && m->m_pkthdr.len - iphlen > 0xffff) len = m->m_pkthdr.len - iphlen; @@ -239,7 +241,9 @@ udp_input(struct mbuf *m, ...) udpstat.udps_badlen++; goto bad; } - } else /* shouldn't happen */ + } +#endif + else /* shouldn't happen */ goto bad; /* |