summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2016-05-23 11:42:24 -0500
committerLuiz Otavio O Souza <luiz@netgate.com>2016-05-23 11:42:24 -0500
commit4787ae40a93cddb6b5c7259e643eef4b591ce115 (patch)
tree64d1661a9a9e1be011964923e596a9fdc8d9bb8e /sys/netinet/ip_input.c
parent6bec02d59b0175cb663a411c026e94291c493a0f (diff)
downloadFreeBSD-src-4787ae40a93cddb6b5c7259e643eef4b591ce115.zip
FreeBSD-src-4787ae40a93cddb6b5c7259e643eef4b591ce115.tar.gz
Revert "Importing pfSense patch ip_dstchng_fix.diff"
This reverts commit 314d8ade559c0d51dccfa6a8c6980d2abc82f3bf.
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 5adc173..30aeeb4 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -519,7 +519,8 @@ tooshort:
goto ours;
}
if (m->m_flags & M_IP_NEXTHOP) {
- if (m_tag_find(m, PACKET_TAG_IPFORWARD, NULL) != NULL) {
+ dchg = (m_tag_find(m, PACKET_TAG_IPFORWARD, NULL) != NULL);
+ if (dchg != 0) {
/*
* Directly ship the packet on. This allows
* forwarding packets originally destined to us
OpenPOWER on IntegriCloud