|
Lines 713-719
Link Here
|
| 713 |
/* Or forward to some other address? */ |
713 |
/* Or forward to some other address? */ |
| 714 |
fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL); |
714 |
fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL); |
| 715 |
if (fwd_tag) { |
715 |
if (fwd_tag) { |
| 716 |
if (!in_localip(ip->ip_src) && !in_localaddr(ip->ip_dst)) { |
716 |
if (!in_localaddr(ip->ip_dst)) { |
| 717 |
dst = (struct sockaddr_in *)&ro->ro_dst; |
717 |
dst = (struct sockaddr_in *)&ro->ro_dst; |
| 718 |
bcopy((fwd_tag+1), dst, sizeof(struct sockaddr_in)); |
718 |
bcopy((fwd_tag+1), dst, sizeof(struct sockaddr_in)); |
| 719 |
m->m_flags |= M_SKIP_FIREWALL; |
719 |
m->m_flags |= M_SKIP_FIREWALL; |