Make comments more clear for the packet changed cases after pfil hooks.

This commit is contained in:
Andre Oppermann 2004-09-13 17:09:06 +00:00
parent 3c44fd1b17
commit f4fca2d8d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135160

View File

@ -671,6 +671,7 @@ ip_output(struct mbuf *m, struct mbuf *opt, struct route *ro,
/* See if destination IP address was changed by packet filter. */
if (odst.s_addr != ip->ip_dst.s_addr) {
m->m_flags |= M_SKIP_FIREWALL;
/* If destination is now ourself drop to ip_input(). */
if (in_localip(ip->ip_dst)) {
m->m_flags |= M_FASTFWD_OURS;
if (m->m_pkthdr.rcvif == NULL)
@ -686,7 +687,7 @@ ip_output(struct mbuf *m, struct mbuf *opt, struct route *ro,
error = netisr_queue(NETISR_IP, m);
goto done;
} else
goto again;
goto again; /* Redo the routing table lookup. */
}
#ifdef IPFIREWALL_FORWARD