Home
last modified time | relevance | path

Searched refs:uh_ulen (Results 1 – 13 of 13) sorted by relevance

/xnu-8020.121.3/bsd/netinet/
H A Dudp.h82 u_short uh_ulen; /* udp length */ member
H A Dudp_var.h85 #define ui_ulen ui_u.uh_ulen
H A Dudp_usrreq.c347 ip->ip_src.s_addr, ip->ip_dst.s_addr, uh->uh_ulen); in udp_input()
353 len = ntohs((u_short)uh->uh_ulen); in udp_input()
743 save_ip.ip_src.s_addr, save_ip.ip_dst.s_addr, uh->uh_ulen); in udp_input()
2792 ipov->ih_len = uh->uh_ulen; in udp_input_checksum()
2963 udp->uh_ulen = htons(sizeof(struct udphdr) + in udp_fill_keepalive_offload_frames()
3038 udp6->uh_ulen = htons(sizeof(struct udphdr) + in udp_fill_keepalive_offload_frames()
H A Dip_compat.h556 __u16 uh_ulen;
/xnu-8020.121.3/bsd/netinet6/
H A Desp_output.c894 udp->uh_ulen = htons((u_int16_t)(ntohs(ip->ip_len) - (IP_VHL_HL(ip->ip_vhl) << 2))); in esp_output()
899 udp->uh_ulen = htons((u_int16_t)(plen + siz + extendsiz + esphlen)); in esp_output()
900 udp->uh_sum = in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, htonl(ntohs(udp->uh_ulen) + IPPROTO_UDP)); in esp_output()
H A Dudp6_output.c418 udp6->uh_ulen = htons((u_short)plen); in udp6_output()
420 udp6->uh_ulen = 0; in udp6_output()
H A Dudp6_usrreq.c274 ulen = ntohs((u_short)uh->uh_ulen); in udp6_input()
H A Dipsec.c4933 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_send_natt_keepalive()
5006 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_send_natt_keepalive()
5008 uh->uh_sum = in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, htonl(ntohs(uh->uh_ulen) + IPPROTO_UDP)); in ipsec_send_natt_keepalive()
5120 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_fill_offload_frame()
/xnu-8020.121.3/bsd/net/
H A Dsixxlowpan.c767 memcpy(&udp->uh_ulen, &ip6->ip6_plen, 2); in uncompress_hdr_hc1()
H A Dpf.c6002 offx += pd->hdr.udp->uh_ulen << 2; in pf_test_rule()
7627 sk->app_state->handler(*state, direction, off + uh->uh_ulen, in pf_test_state_udp()
9735 if (ntohs(uh.uh_ulen) > pbuf->pb_packet_len - off || in pf_test()
9736 ntohs(uh.uh_ulen) < sizeof(struct udphdr)) { in pf_test()
10391 if (ntohs(uh.uh_ulen) > pbuf->pb_packet_len - off || in pf_test6()
10392 ntohs(uh.uh_ulen) < sizeof(struct udphdr)) { in pf_test6()
/xnu-8020.121.3/tests/
H A Dnet_bridge.c838 udp_len = ntohs(ip_udp->udp.uh_ulen); in ip_frame_validate()
886 udp_len = ntohs(ip6_udp->udp.uh_ulen); in ip6_frame_validate()
1025 ip_udp->udp.uh_ulen = htons(sizeof(ip_udp->udp) + data_len); in ethernet_udp4_frame_populate()
1094 ip6_udp->udp.uh_ulen = htons(sizeof(ip6_udp->udp) + data_len); in ethernet_udp6_frame_populate()
1244 udp_len = ntohs(ip_udp->udp.uh_ulen); in ethernet_frame_get_udp4_payload()
1290 udp_len = ntohs(ip6_udp->udp.uh_ulen); in ethernet_frame_get_udp6_payload()
/xnu-8020.121.3/osfmk/kdp/
H A Dkdp_udp.c119 short uh_ulen; /* udp length */ member
136 #define ui_ulen ui_u.uh_ulen
/xnu-8020.121.3/bsd/skywalk/nexus/flowswitch/
H A Dfsw_dp.c3895 uh->uh_ulen = htons(ulen); in fsw_flow_abort_quic()