diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-06-18 17:32:49 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-06-18 17:32:49 +0000 |
commit | 3e0485a346912994c93f111e1e01dbe37013880a (patch) | |
tree | 94078ad3aef8c72847caaed104975a61e385baa1 /sys/netinet/udp_usrreq.c | |
parent | 6f3edb3da4672239356c7ac3fbc3355585785290 (diff) |
sync with KAME udp6_output(). udp output logic is very different between
IPv4/v6 so the separation should make more sense.
TODO: remove IPv6 case from udp_output()
TODO: remove/comment out/#if 0 IPv4 mapped address cases
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 090a52b1d5f..f57471be513 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.44 2000/06/13 11:47:24 itojun Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.45 2000/06/18 17:32:48 itojun Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -1165,7 +1165,14 @@ udp_usrreq(so, req, m, addr, control) if (error) return (error); #endif +#ifdef INET6 + if (inp->inp_flags & INP_IPV6) + return (udp6_output(inp, m, addr, control)); + else + return (udp_output(m, inp, addr, control)); +#else return (udp_output(m, inp, addr, control)); +#endif case PRU_ABORT: soisdisconnected(so); |