kern/131817: [ipfw] blocks layer2 packets that should not be
blocked
Andrey V. Elsukov
ae at FreeBSD.org
Fri Jul 1 09:00:21 UTC 2011
The following reply was made to PR kern/131817; it has been noted by GNATS.
From: "Andrey V. Elsukov" <ae at FreeBSD.org>
To: bug-followup at FreeBSD.org, eugen at grosbein.pp.ru
Cc:
Subject: Re: kern/131817: [ipfw] blocks layer2 packets that should not be
blocked
Date: Fri, 01 Jul 2011 12:56:14 +0400
This is a multi-part message in MIME format.
--------------000306040401040406030900
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: 7bit
Hi, Eugene
can you test this patch?
--
WBR, Andrey V. Elsukov
--------------000306040401040406030900
Content-Type: text/plain;
name="arpreply.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="arpreply.diff"
Index: head/sys/netinet/if_ether.c
===================================================================
--- head/sys/netinet/if_ether.c (revision 223705)
+++ head/sys/netinet/if_ether.c (working copy)
@@ -857,6 +857,7 @@ reply:
ah->ar_pro = htons(ETHERTYPE_IP); /* let's be sure! */
m->m_len = sizeof(*ah) + (2 * ah->ar_pln) + (2 * ah->ar_hln);
m->m_pkthdr.len = m->m_len;
+ m->m_pkthdr.rcvif = NULL;
sa.sa_family = AF_ARP;
sa.sa_len = 2;
(*ifp->if_output)(ifp, m, &sa, NULL);
--------------000306040401040406030900--
More information about the freebsd-ipfw
mailing list