tools: apply ip_dstchng_fix.diff

This commit is contained in:
Franco Fichtner 2014-11-09 15:58:44 +01:00 committed by Franco Fichtner
parent ef2852df32
commit b770fc65ce

View file

@ -504,8 +504,7 @@ tooshort:
goto ours;
}
if (m->m_flags & M_IP_NEXTHOP) {
dchg = (m_tag_find(m, PACKET_TAG_IPFORWARD, NULL) != NULL);
if (dchg != 0) {
if (m_tag_find(m, PACKET_TAG_IPFORWARD, NULL) != NULL) {
/*
* Directly ship the packet on. This allows
* forwarding packets originally destined to us