summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_output.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2004-09-13 17:09:06 +0000
committerandre <andre@FreeBSD.org>2004-09-13 17:09:06 +0000
commite837c32545358fa15a790f43a61173acf53548c3 (patch)
treeea9b7d8c5e4e2ae7f6b5153d7b1ed40b6fa2a2c0 /sys/netinet/ip_output.c
parentdf7b8c318b22b7d67027bd82238b7c7e9ebfdc9a (diff)
downloadFreeBSD-src-e837c32545358fa15a790f43a61173acf53548c3.zip
FreeBSD-src-e837c32545358fa15a790f43a61173acf53548c3.tar.gz
Make comments more clear for the packet changed cases after pfil hooks.
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r--sys/netinet/ip_output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 025f446..d50beef 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -671,6 +671,7 @@ spd_done:
/* 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 @@ spd_done:
error = netisr_queue(NETISR_IP, m);
goto done;
} else
- goto again;
+ goto again; /* Redo the routing table lookup. */
}
#ifdef IPFIREWALL_FORWARD
OpenPOWER on IntegriCloud