diff options
author | 2018-04-08 00:44:21 +0000 | |
---|---|---|
committer | 2018-04-08 00:44:21 +0000 | |
commit | 2450ba1b80c5c0d036188d9eb653375c9ce26da9 (patch) | |
tree | b3adfe6e9ea13c27c4f65e691b7a18daeedc108e | |
parent | on output, actually attach the mbuf tag to packet. (diff) | |
download | wireguard-openbsd-2450ba1b80c5c0d036188d9eb653375c9ce26da9.tar.xz wireguard-openbsd-2450ba1b80c5c0d036188d9eb653375c9ce26da9.zip |
use the specified protocol on v6 output
found by and diff from peter j philip
ok jca@
-rw-r--r-- | sys/net/if_gif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index 32f02a65c83..ff4f790873e 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gif.c,v 1.114 2018/04/08 00:39:34 dlg Exp $ */ +/* $OpenBSD: if_gif.c,v 1.115 2018/04/08 00:44:21 dlg Exp $ */ /* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */ /* @@ -338,7 +338,7 @@ gif_send(struct gif_softc *sc, struct mbuf *m, ip6->ip6_flow = htonl(flow); ip6->ip6_vfc |= IPV6_VERSION; ip6->ip6_plen = htons(len); - ip6->ip6_nxt = IPPROTO_GRE; + ip6->ip6_nxt = proto; ip6->ip6_hlim = ttl; ip6->ip6_src = sc->sc_tunnel.t_src6; ip6->ip6_dst = sc->sc_tunnel.t_dst6; |