Home
last modified time | relevance | path

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

/f-stack/freebsd/netinet6/
H A Dip6_fastfwd.c96 struct m_tag *fwd_tag; in ip6_tryforward() local
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()
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 != NULL) { in ip6_tryforward()
259 bcopy((fwd_tag + 1), &dst, sizeof(dst)); in ip6_tryforward()
261 m_tag_delete(m, fwd_tag); in ip6_tryforward()
H A Dip6_forward.c102 struct m_tag *fwd_tag; in ip6_forward() local
356 (fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL) { in ip6_forward()
357 struct sockaddr_in6 *gw6 = (struct sockaddr_in6 *)(fwd_tag + 1); in ip6_forward()
366 m_tag_delete(m, fwd_tag); in ip6_forward()
H A Dudp6_usrreq.c224 struct m_tag *fwd_tag; in udp6_input() local
460 (fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL) { in udp6_input()
463 next_hop6 = (struct sockaddr_in6 *)(fwd_tag + 1); in udp6_input()
485 m_tag_delete(m, fwd_tag); in udp6_input()
H A Dip6_output.c450 struct m_tag *fwd_tag = NULL; in ip6_output() local
696 if (ro->ro_nh != NULL && fwd_tag == NULL && in ip6_output()
702 if (ro->ro_nh != NULL && fwd_tag == NULL && in ip6_output()
711 if (fwd_tag == NULL) { in ip6_output()
745 if (fwd_tag == NULL) { in ip6_output()
1092 (fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL) { in ip6_output()
1097 bcopy((fwd_tag+1), &dst_sa, sizeof(struct sockaddr_in6)); in ip6_output()
1100 m_tag_delete(m, fwd_tag); in ip6_output()
/f-stack/freebsd/netinet/
H A Dip_fastfwd.c206 struct m_tag *fwd_tag = NULL; in ip_tryforward() local
347 ((fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL)) { in ip_tryforward()
352 (fwd_tag + 1))->sin_addr.s_addr; in ip_tryforward()
353 m_tag_delete(m, fwd_tag); in ip_tryforward()
388 fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL); in ip_tryforward()
390 fwd_tag = NULL; in ip_tryforward()
391 if (odest.s_addr != dest.s_addr || fwd_tag != NULL) { in ip_tryforward()
406 if (fwd_tag) { in ip_tryforward()
408 (fwd_tag + 1))->sin_addr.s_addr; in ip_tryforward()
409 m_tag_delete(m, fwd_tag); in ip_tryforward()
H A Dip_output.c116 struct m_tag *fwd_tag = NULL; in ip_output_pfil() local
200 ((fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL)) { in ip_output_pfil()
201 bcopy((fwd_tag+1), dst, sizeof(struct sockaddr_in)); in ip_output_pfil()
204 m_tag_delete(m, fwd_tag); in ip_output_pfil()
H A Dudp_usrreq.c404 struct m_tag *fwd_tag; in udp_input() local
661 (fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL)) != NULL) { in udp_input()
664 next_hop = (struct sockaddr_in *)(fwd_tag + 1); in udp_input()
685 m_tag_delete(m, fwd_tag); in udp_input()
H A Dtcp_input.c633 struct m_tag *fwd_tag = NULL; in tcp_input() local
829 fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL); in tcp_input()
833 if (isipv6 && fwd_tag != NULL) { in tcp_input()
836 next_hop6 = (struct sockaddr_in6 *)(fwd_tag + 1); in tcp_input()
867 if (fwd_tag != NULL) { in tcp_input()
870 next_hop = (struct sockaddr_in *)(fwd_tag+1); in tcp_input()