diff options
| author | 2006-12-09 01:12:28 +0000 | |
|---|---|---|
| committer | 2006-12-09 01:12:28 +0000 | |
| commit | 6b532452b5d5ce748ccd1f261c99a55252f8c428 (patch) | |
| tree | 2ee7167ed82e786953dcaf24b88c2afdd5e2de5a /sys/netinet/udp_usrreq.c | |
| parent | IPV6_RECVDSTADDR is not standard. use more standard IPV6_PKTINFO. (diff) | |
| download | wireguard-openbsd-6b532452b5d5ce748ccd1f261c99a55252f8c428.tar.xz wireguard-openbsd-6b532452b5d5ce748ccd1f261c99a55252f8c428.zip | |
switch IPv6 advanced API from RFC2292 to RFC3542 (2292 is superseded by 3542).
the kernel still handles RFC2292 set/getsockopts, so that compiled binary
has no trouble running. userland sees RFC3542 symbols only on header file
so new code has to use RFC3542 API.
bump libc shlib minor for function additions.
tested on i386/amd64 by jmc, i386 by brad. checked by deraadt.
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 09edebda90d..7c7be4de9ce 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.111 2006/11/27 11:00:12 claudio Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.112 2006/12/09 01:12:28 itojun Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -460,13 +460,12 @@ udp_input(struct mbuf *m, ...) #ifdef INET6 if (ip6 && (last->inp_flags & IN6P_CONTROLOPTS)) - ip6_savecontrol(last, &opts, - ip6, n); + ip6_savecontrol(last, n, &opts); #endif /* INET6 */ if (ip && (last->inp_flags & INP_CONTROLOPTS)) - ip_savecontrol(last, &opts, ip, - n); + ip_savecontrol(last, &opts, + ip, n); m_adj(n, iphlen); if (sbappendaddr( @@ -507,7 +506,7 @@ udp_input(struct mbuf *m, ...) #ifdef INET6 if (ip6 && (last->inp_flags & IN6P_CONTROLOPTS)) - ip6_savecontrol(last, &opts, ip6, m); + ip6_savecontrol(last, m, &opts); #endif /* INET6 */ if (ip && (last->inp_flags & INP_CONTROLOPTS)) ip_savecontrol(last, &opts, ip, m); @@ -630,7 +629,7 @@ udp_input(struct mbuf *m, ...) opts = NULL; #ifdef INET6 if (ip6 && (inp->inp_flags & IN6P_CONTROLOPTS)) - ip6_savecontrol(inp, &opts, ip6, m); + ip6_savecontrol(inp, m, &opts); #endif /* INET6 */ if (ip && (inp->inp_flags & INP_CONTROLOPTS)) ip_savecontrol(inp, &opts, ip, m); |
