Re: kern/131817: [ipfw] blocks layer2 packets that should not be blocked

2011-08-02 Thread ae
Synopsis: [ipfw] blocks layer2 packets that should not be blocked

State-Changed-From-To: patched->closed
State-Changed-By: ae
State-Changed-When: Wed Aug 3 04:28:48 UTC 2011
State-Changed-Why: 
Merged to stable/7 and stable/8. Thanks!

http://www.freebsd.org/cgi/query-pr.cgi?pr=131817
___
freebsd-ipfw@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
To unsubscribe, send any mail to "freebsd-ipfw-unsubscr...@freebsd.org"


Re: kern/131817: commit references a PR

2011-08-02 Thread dfilter service
The following reply was made to PR kern/131817; it has been noted by GNATS.

From: dfil...@freebsd.org (dfilter service)
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: kern/131817: commit references a PR
Date: Wed,  3 Aug 2011 04:28:06 + (UTC)

 Author: ae
 Date: Wed Aug  3 04:27:47 2011
 New Revision: 224622
 URL: http://svn.freebsd.org/changeset/base/224622
 
 Log:
   MFC r223753:
 ARP code reuses mbuf from ARP request to make a reply, but it does not
 reset rcvif to NULL. Since rcvif is not NULL, ipfw(4) supposes that ARP
 replies were received on specified interface.
 Reset rcvif to NULL for ARP replies to fix this issue.
   
 PR:kern/131817
 
 Modified:
   stable/8/sys/netinet/if_ether.c
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/amd64/include/xen/   (props changed)
   stable/8/sys/cddl/contrib/opensolaris/   (props changed)
   stable/8/sys/contrib/dev/acpica/   (props changed)
   stable/8/sys/contrib/pf/   (props changed)
 
 Modified: stable/8/sys/netinet/if_ether.c
 ==
 --- stable/8/sys/netinet/if_ether.cWed Aug  3 03:52:15 2011
(r224621)
 +++ stable/8/sys/netinet/if_ether.cWed Aug  3 04:27:47 2011
(r224622)
 @@ -843,6 +843,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);
 ___
 svn-src-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
 
___
freebsd-ipfw@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
To unsubscribe, send any mail to "freebsd-ipfw-unsubscr...@freebsd.org"


Re: kern/131817: commit references a PR

2011-08-02 Thread dfilter service
The following reply was made to PR kern/131817; it has been noted by GNATS.

From: dfil...@freebsd.org (dfilter service)
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: kern/131817: commit references a PR
Date: Wed,  3 Aug 2011 04:28:24 + (UTC)

 Author: ae
 Date: Wed Aug  3 04:28:16 2011
 New Revision: 224623
 URL: http://svn.freebsd.org/changeset/base/224623
 
 Log:
   MFC r223753:
 ARP code reuses mbuf from ARP request to make a reply, but it does not
 reset rcvif to NULL. Since rcvif is not NULL, ipfw(4) supposes that ARP
 replies were received on specified interface.
 Reset rcvif to NULL for ARP replies to fix this issue.
   
 PR:   kern/131817
 
 Modified:
   stable/7/sys/netinet/if_ether.c
 Directory Properties:
   stable/7/sys/   (props changed)
   stable/7/sys/cddl/contrib/opensolaris/   (props changed)
   stable/7/sys/contrib/dev/acpica/   (props changed)
   stable/7/sys/contrib/pf/   (props changed)
 
 Modified: stable/7/sys/netinet/if_ether.c
 ==
 --- stable/7/sys/netinet/if_ether.cWed Aug  3 04:27:47 2011
(r224622)
 +++ stable/7/sys/netinet/if_ether.cWed Aug  3 04:28:16 2011
(r224623)
 @@ -981,6 +981,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, (struct rtentry *)0);
 ___
 svn-src-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
 
___
freebsd-ipfw@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
To unsubscribe, send any mail to "freebsd-ipfw-unsubscr...@freebsd.org"