When we are sending IP fragments, update ip pointers in IP_PROBE() for
each fragment. MFC after: 1 week
This commit is contained in:
parent
49fe3b378b
commit
2e77d270c1
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user