Home
last modified time | relevance | path

Searched refs:fwd_tag (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/netinet6/
H A Dip6_fastfwd.c95 struct m_tag *fwd_tag; in ip6_tryforward() local
177 * M_IP6_NEXTHOP flag is set and fwd_tag is attached to mbuf. in ip6_tryforward()
184 (fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL) { in ip6_tryforward()
188 bcopy((fwd_tag + 1), &dst, sizeof(dst)); in ip6_tryforward()
190 m_tag_delete(m, fwd_tag); in ip6_tryforward()
238 * M_IP6_NEXTHOP flag is set and fwd_tag is attached to mbuf. in ip6_tryforward()
252 fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL); in ip6_tryforward()
254 fwd_tag = NULL; in ip6_tryforward()
256 if (fwd_tag != NULL || in ip6_tryforward()
258 if (fwd_tag ! in ip6_tryforward()
[all...]
H A Dip6_forward.c101 struct m_tag *fwd_tag; in ip6_forward() local
365 (fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL) { in ip6_forward()
366 struct sockaddr_in6 *gw6 = (struct sockaddr_in6 *)(fwd_tag + 1); in ip6_forward()
375 m_tag_delete(m, fwd_tag); in ip6_forward()
H A Dip6_output.c430 struct m_tag *fwd_tag = NULL; in ip6_output() local
668 if (ro->ro_nh != NULL && fwd_tag == NULL && in ip6_output()
674 if (ro->ro_nh != NULL && fwd_tag == NULL && in ip6_output()
683 if (fwd_tag == NULL) { in ip6_output()
722 if (fwd_tag == NULL) { in ip6_output()
768 else if (fwd_tag != NULL) in ip6_output()
1085 (fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL) { in ip6_output()
1090 bcopy((fwd_tag+1), &dst_sa, sizeof(struct sockaddr_in6)); in ip6_output()
1093 m_tag_delete(m, fwd_tag); in ip6_output()
H A Dudp6_usrreq.c362 struct m_tag *fwd_tag; in udp6_input() local
465 (fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL) { in udp6_input()
468 next_hop6 = (struct sockaddr_in6 *)(fwd_tag + 1); in udp6_input()
490 m_tag_delete(m, fwd_tag); in udp6_input()
/freebsd/sys/netinet/
H A Dip_fastfwd.c243 struct m_tag *fwd_tag = NULL; in ip_tryforward() local
375 ((fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL)) { in ip_tryforward()
380 (fwd_tag + 1))->sin_addr.s_addr; in ip_tryforward()
381 m_tag_delete(m, fwd_tag); in ip_tryforward()
416 fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL); in ip_tryforward()
418 fwd_tag = NULL; in ip_tryforward()
419 if (odest.s_addr != dest.s_addr || fwd_tag != NULL) { in ip_tryforward()
434 if (fwd_tag) { in ip_tryforward()
436 (fwd_tag + 1))->sin_addr.s_addr; in ip_tryforward()
437 m_tag_delete(m, fwd_tag); in ip_tryforward()
H A Dip_output.c111 struct m_tag *fwd_tag = NULL; in ip_output_pfil() local
197 ((fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL)) { in ip_output_pfil()
198 bcopy((fwd_tag+1), dst, sizeof(struct sockaddr_in)); in ip_output_pfil()
201 m_tag_delete(m, fwd_tag); in ip_output_pfil()
H A Dudp_usrreq.c470 struct m_tag *fwd_tag; in udp_input() local
601 (fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL) { in udp_input()
604 next_hop = (struct sockaddr_in *)(fwd_tag + 1); in udp_input()
625 m_tag_delete(m, fwd_tag); in udp_input()
H A Dtcp_input.c633 struct m_tag *fwd_tag = NULL; in tcp_input_with_port() local
833 fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL); in tcp_input_with_port()
847 if (isipv6 && fwd_tag != NULL) { in tcp_input_with_port()
850 next_hop6 = (struct sockaddr_in6 *)(fwd_tag + 1); in tcp_input_with_port()
879 if (fwd_tag != NULL) { in tcp_input_with_port()
882 next_hop = (struct sockaddr_in *)(fwd_tag+1); in tcp_input_with_port()