diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2018-04-08 00:44:22 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2018-04-08 00:44:22 +0000 |
commit | 069e52868e077794e3ea3ef5a59b3c443568ca7a (patch) | |
tree | 05e44fc2a51ccf0e2eaf95fecd71e0597814261b /sys/net | |
parent | 040732ad8f2dcce608ed34cff80e440fe5e7cc7f (diff) |
use the specified protocol on v6 output
found by and diff from peter j philip
ok jca@
Diffstat (limited to 'sys/net')
-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; |