diff options
author | ae <ae@FreeBSD.org> | 2016-05-20 12:17:40 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2016-05-20 12:17:40 +0000 |
commit | 78161c3462d3f1718c80a6776713c71d97fc950c (patch) | |
tree | 57cee65252948861b154a75ab48ff840ee9808b3 /sys/netinet6 | |
parent | eef5384953288f8739aee0d968b93eb9a1261adb (diff) | |
download | FreeBSD-src-78161c3462d3f1718c80a6776713c71d97fc950c.zip FreeBSD-src-78161c3462d3f1718c80a6776713c71d97fc950c.tar.gz |
Remove ip6 adjusting from the place where pointer couldn't be changed.
And add comment after calling PFIL hooks, where it could be changed.
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ip6_output.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index f3c4854..9017de7 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -536,10 +536,6 @@ again: else ip6->ip6_hlim = V_ip6_defmcasthlim; } - - /* adjust pointer */ - ip6 = mtod(m, struct ip6_hdr *); - /* * Validate route against routing table additions; * a better/more specific route might have been added. @@ -798,6 +794,7 @@ again: error = pfil_run_hooks(&V_inet6_pfil_hook, &m, ifp, PFIL_OUT, inp); if (error != 0 || m == NULL) goto done; + /* adjust pointer */ ip6 = mtod(m, struct ip6_hdr *); needfiblookup = 0; |