Date: Thu, 16 Jan 2014 11:37:42 GMT From: melifaro@FreeBSD.org To: melifaro@FreeBSD.org, freebsd-ipfw@FreeBSD.org, freebsd-net@FreeBSD.org Subject: Re: kern/129036: [ipfw] 'ipfw fwd' does not change outgoing interface name Message-ID: <201401161137.s0GBbgh4094515@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: [ipfw] 'ipfw fwd' does not change outgoing interface name Responsible-Changed-From-To: freebsd-ipfw->freebsd-net Responsible-Changed-By: melifaro Responsible-Changed-When: Thu Jan 16 11:31:08 UTC 2014 Responsible-Changed-Why: Reclassify. This problem is not related to ipfw: ipfw(4) sets M_IP_NEXTHOP & adds PACKET_TAG_IPFORWARD on ingress and returns. ip_input() sees M_IP_NEXTHOP and passes packet to ip_forward() which performs routing decision and calls ip_output(). Finally, ip_ouput() calls PFIL hook with ifp determined by ip_forward() and checks M_IP_NEXTHOP _after_ that. http://www.freebsd.org/cgi/query-pr.cgi?pr=129036
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401161137.s0GBbgh4094515>