Home
last modified time | relevance | path

Searched refs:ip_hdr (Results 1 – 4 of 4) sorted by relevance

/xnu-12377.61.12/bsd/netinet6/
H A Desp_output.c1014 struct ip *ip_hdr = (struct ip *)(void *)sbaddr; in esp_kpipe_output() local
1015 ASSERT(IP_HDR_ALIGNED_P(ip_hdr)); in esp_kpipe_output()
1017 u_int ip_vers = IP_VHL_V(ip_hdr->ip_vhl); in esp_kpipe_output()
1021 iphlen = IP_VHL_HL(ip_hdr->ip_vhl) << 2; in esp_kpipe_output()
1023 iphlen = ip_hdr->ip_hl << 2; in esp_kpipe_output()
1025 dscp = ip_hdr->ip_tos >> IPTOS_DSCP_SHIFT; in esp_kpipe_output()
1026 nxt_proto = ip_hdr->ip_p; in esp_kpipe_output()
H A Desp_input.c1763 struct ip *ip_hdr = (struct ip *)(void *)sbaddr; in esp_kpipe_input() local
1764 ASSERT(IP_HDR_ALIGNED_P(ip_hdr)); in esp_kpipe_input()
1766 u_int ip_vers = IP_VHL_V(ip_hdr->ip_vhl); in esp_kpipe_input()
1770 iphlen = IP_VHL_HL(ip_hdr->ip_vhl) << 2; in esp_kpipe_input()
1772 iphlen = ip_hdr->ip_hl << 2; in esp_kpipe_input()
1774 nxt_proto = ip_hdr->ip_p; in esp_kpipe_input()
1775 dscp = ip_hdr->ip_tos >> IPTOS_DSCP_SHIFT; in esp_kpipe_input()
1776 ipsec_fill_ip_sockaddr_4_6(&src, ip_hdr->ip_src, 0); in esp_kpipe_input()
1777 ipsec_fill_ip_sockaddr_4_6(&dst, ip_hdr->ip_dst, 0); in esp_kpipe_input()
/xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_agg.c966 uint8_t *ip_hdr; in can_agg_fastpath() local
995 ip_hdr = __unsafe_forge_bidi_indexable(uint8_t *, in can_agg_fastpath()
997 match = ipv4_tcp_memcmp(fa->fa_sptr, ip_hdr); in can_agg_fastpath()
1000 ip_hdr = __unsafe_forge_bidi_indexable(uint8_t *, in can_agg_fastpath()
1002 match = ipv6_tcp_memcmp(fa->fa_sptr, ip_hdr); in can_agg_fastpath()
/xnu-12377.61.12/bsd/net/
H A Dif_bridge.c615 uint8_t *__sized_by(ip_m0_len) ip_hdr; /* pointer to IP header */
4731 info_p->ip_hdr = mtodo(m0, mac_hlen);
4799 info_p->ip_hdr = mtodo(m0, mac_hlen);
4856 info_p->ip_proto_hdr = info_p->ip_hdr + info_p->ip_hlen +
5109 struct ip *ip = (struct ip *)info_p->ip_hdr;
5134 tcp = (struct tcphdr *)(info_p->ip_hdr + info_p->ip_hlen
5159 udp = (struct udphdr *)(info_p->ip_hdr + info_p->ip_hlen
5901 hdr = (struct ip *)(info_p->ip_hdr);
5907 hdr = (struct ip6_hdr *)(info_p->ip_hdr);
5924 hdr = (struct ip *)(info_p->ip_hdr);
[all …]