diff options
author | sobomax <sobomax@FreeBSD.org> | 2004-08-05 08:12:46 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2004-08-05 08:12:46 +0000 |
commit | d3be2ab365acf15172d846c4e328805ee99031c9 (patch) | |
tree | cbc7548d3b1ace6ea15eb7d0f69f9f27a99175f0 /sys/net | |
parent | 8f4eb605aae8447b7ac458fa7424c8b328ea95ee (diff) | |
download | FreeBSD-src-d3be2ab365acf15172d846c4e328805ee99031c9.zip FreeBSD-src-d3be2ab365acf15172d846c4e328805ee99031c9.tar.gz |
Set ip_v field properly.
PR: kern/69957
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_gre.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index c0feec0..34dafef 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -376,6 +376,7 @@ gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, if (sc->g_proto != IPPROTO_MOBILE) { gh->gi_src = sc->g_src; gh->gi_dst = sc->g_dst; + ((struct ip*)gh)->ip_v = IPPROTO_IPV4; ((struct ip*)gh)->ip_hl = (sizeof(struct ip)) >> 2; ((struct ip*)gh)->ip_ttl = GRE_TTL; ((struct ip*)gh)->ip_tos = ip->ip_tos; |