mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Fix handling of packets which matched an "ipfw fwd" rule on the input side.
This commit is contained in:
parent
e9fb70115f
commit
ea779ff36c
1 changed files with 13 additions and 0 deletions
|
|
@ -1738,8 +1738,21 @@ ip_forward(struct mbuf *m, int srcrt, struct sockaddr_in *next_hop)
|
|||
}
|
||||
}
|
||||
|
||||
{
|
||||
struct m_hdr tag;
|
||||
|
||||
if (next_hop) {
|
||||
/* Pass IPFORWARD info if available */
|
||||
|
||||
tag.mh_type = MT_TAG;
|
||||
tag.mh_flags = PACKET_TAG_IPFORWARD;
|
||||
tag.mh_data = (caddr_t)next_hop;
|
||||
tag.mh_next = m;
|
||||
m = (struct mbuf *)&tag;
|
||||
}
|
||||
error = ip_output(m, (struct mbuf *)0, &ipforward_rt,
|
||||
IP_FORWARDING, 0);
|
||||
}
|
||||
if (error)
|
||||
ipstat.ips_cantforward++;
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue