tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Bridged ethernet with ipnat redirect to local port - getting ICMP redirects instead
This might be a better patch..
Index: ip_input.c
===================================================================
RCS file: /cvsroot/src/sys/netinet/ip_input.c,v
retrieving revision 1.298
diff -u -r1.298 ip_input.c
--- ip_input.c 9 Jan 2012 14:31:22 -0000 1.298
+++ ip_input.c 6 Jul 2014 15:07:32 -0000
@@ -1379,6 +1379,8 @@
* or a route modified by a redirect.
*/
if (rt->rt_ifp == m->m_pkthdr.rcvif &&
+ (rt->rt_ifp->if_bridge == NULL ||
+ rt->rt_ifp->if_bridge != m->m_pkthdr.rcvif) &&
(rt->rt_flags & (RTF_DYNAMIC|RTF_MODIFIED)) == 0 &&
!in_nullhost(satocsin(rt_getkey(rt))->sin_addr) &&
ipsendredirects && !srcrt) {
Darren
Home |
Main Index |
Thread Index |
Old Index