diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2016-12-29 19:57:46 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2016-12-29 19:57:46 +0000 |
commit | 2e77d270c1bcf6a24dc17a8b27e844f36a8ddd54 (patch) | |
tree | 4d13f751b3c12d4ff8491fe50ae8451dd0f2cb5a /sys/netinet | |
parent | 49fe3b378b90f0c5dcf8708232179146d693445f (diff) |
When we are sending IP fragments, update ip pointers in IP_PROBE() for
each fragment.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=310783
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_fastfwd.c | 5 | ||||
-rw-r--r-- | sys/netinet/ip_output.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c index b4507a91b313..c0c618680b23 100644 --- a/sys/netinet/ip_fastfwd.c +++ b/sys/netinet/ip_fastfwd.c @@ -400,8 +400,9 @@ passout: */ m_clrprotoflags(m); - IP_PROBE(send, NULL, NULL, ip, nh.nh_ifp, - ip, NULL); + IP_PROBE(send, NULL, NULL, + mtod(m, struct ip *), nh.nh_ifp, + mtod(m, struct ip *), NULL); /* XXX: we can use cached route here */ error = (*nh.nh_ifp->if_output)(nh.nh_ifp, m, (struct sockaddr *)&dst, NULL); diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 352aa375c770..78a5cc37f032 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -696,7 +696,8 @@ sendit: */ m_clrprotoflags(m); - IP_PROBE(send, NULL, NULL, ip, ifp, ip, NULL); + IP_PROBE(send, NULL, NULL, mtod(m, struct ip *), ifp, + mtod(m, struct ip *), NULL); error = (*ifp->if_output)(ifp, m, (const struct sockaddr *)gw, ro); } else |