Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip6_input.c
Show First 20 Lines • Show All 776 Lines • ▼ Show 20 Lines | #endif | ||||
ip6 = mtod(m, struct ip6_hdr *); | ip6 = mtod(m, struct ip6_hdr *); | ||||
srcrt = !IN6_ARE_ADDR_EQUAL(&odst, &ip6->ip6_dst); | srcrt = !IN6_ARE_ADDR_EQUAL(&odst, &ip6->ip6_dst); | ||||
if (m->m_flags & M_FASTFWD_OURS) { | if (m->m_flags & M_FASTFWD_OURS) { | ||||
m->m_flags &= ~M_FASTFWD_OURS; | m->m_flags &= ~M_FASTFWD_OURS; | ||||
ours = 1; | ours = 1; | ||||
goto hbhcheck; | goto hbhcheck; | ||||
} | } | ||||
if ((m->m_flags & M_IP6_NEXTHOP) && | if (IP6_HAS_NEXTHOP(m)) { | ||||
franco_opnsense.org: ip6_get_fwdtag() could also be omitted here. | |||||
Done Inline Actionsyes ae: yes | |||||
m_tag_find(m, PACKET_TAG_IPFORWARD, NULL) != NULL) { | |||||
/* | /* | ||||
* Directly ship the packet on. This allows forwarding | * Directly ship the packet on. This allows forwarding | ||||
* packets originally destined to us to some other directly | * packets originally destined to us to some other directly | ||||
* connected host. | * connected host. | ||||
*/ | */ | ||||
ip6_forward(m, 1); | ip6_forward(m, 1); | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,002 Lines • Show Last 20 Lines |
ip6_get_fwdtag() could also be omitted here.