When an incoming packet is reflected back as an ICMP reply, make sure we
zero "m->m_pkthdr.rcvif", otherwise ipfw may wrongly match the outgoing packet. PR: kern/9723 Submitted by: David Malone <dwmalone@maths.tcd.ie>
This commit is contained in:
parent
7347e1c6ab
commit
94446a2ed6
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ip_icmp.c 8.2 (Berkeley) 1/4/94
|
||||
* $Id: ip_icmp.c,v 1.32 1998/12/03 20:23:20 dillon Exp $
|
||||
* $Id: ip_icmp.c,v 1.33 1998/12/04 04:21:25 dillon Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -663,6 +663,7 @@ icmp_send(m, opts)
|
||||
icp->icmp_cksum = in_cksum(m, ip->ip_len - hlen);
|
||||
m->m_data -= hlen;
|
||||
m->m_len += hlen;
|
||||
m->m_pkthdr.rcvif = (struct ifnet *)0;
|
||||
#ifdef ICMPPRINTFS
|
||||
if (icmpprintfs) {
|
||||
char buf[4 * sizeof "123"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user