Home
last modified time | relevance | path

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

/xnu-11417.121.6/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.c369 ip->ip_src.s_addr, ip->ip_dst.s_addr, uh->uh_ulen); in udp_input()
375 len = ntohs((u_short)uh->uh_ulen); in udp_input()
781 save_ip.ip_src.s_addr, save_ip.ip_dst.s_addr, uh->uh_ulen); in udp_input()
2932 ipov->ih_len = uh->uh_ulen; in udp_input_checksum()
3103 udp->uh_ulen = htons(sizeof(struct udphdr) + in udp_fill_keepalive_offload_frames()
3178 udp6->uh_ulen = htons(sizeof(struct udphdr) + in udp_fill_keepalive_offload_frames()
H A Dip_compat.h556 __u16 uh_ulen;
/xnu-11417.121.6/tests/skywalk/
H A Dskt_netifdirect.c237 udp_hdr.uh_ulen = htons(data_len + sizeof(udp_hdr)); in skt_netif_ipv6_udp_frame_populate()
242 htonl(ntohs(udp_hdr.uh_ulen) + ip6_hdr.ip6_nxt)); in skt_netif_ipv6_udp_frame_populate()
250 udp_hdr_p->uh_sum = in_cksum(udp_hdr_p, ntohs(udp_hdr.uh_ulen), 0); in skt_netif_ipv6_udp_frame_populate()
280 udp_data_len = ntohs(udp_hdr->uh_ulen) - sizeof(*udp_hdr); in skt_netif_ipv6_udp_frame_process()
286 htonl(ntohs(udp_hdr->uh_ulen) + ip6_hdr->ip6_nxt)); in skt_netif_ipv6_udp_frame_process()
287 assert(in_cksum(udp_hdr, ntohs(udp_hdr->uh_ulen), csum) == 0); in skt_netif_ipv6_udp_frame_process()
H A Dskt_xfer.c474 udp_len = ntohs(ip_udp->udp.uh_ulen); in ip_frame_dump()
647 ip_udp->udp.uh_ulen = htons(sizeof(ip_udp->udp) + total_udp_len); in udp_frame_populate()
H A Dskywalk_test_utils.c2551 udp->uh_ulen = htons(sizeof(*udp) + data_len); in sktu_create_udp_frames()
/xnu-11417.121.6/bsd/netinet6/
H A Dudp6_output.c456 udp6->uh_ulen = htons((u_short)plen); in udp6_output()
458 udp6->uh_ulen = 0; in udp6_output()
H A Desp_output.c898 udp->uh_ulen = htons((u_int16_t)(ntohs(ip->ip_len) - (IP_VHL_HL(ip->ip_vhl) << 2))); in esp_output()
903 udp->uh_ulen = htons((u_int16_t)(plen + siz + extendsiz + esphlen)); in esp_output()
904 udp->uh_sum = in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, htonl(ntohs(udp->uh_ulen) + IPPROTO_UDP)); in esp_output()
H A Dipsec.c5226 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_send_natt_keepalive()
5299 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_send_natt_keepalive()
5301 uh->uh_sum = in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, htonl(ntohs(uh->uh_ulen) + IPPROTO_UDP)); in ipsec_send_natt_keepalive()
5446 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_fill_offload_frame()
5498 uh->uh_ulen = htons(1 + sizeof(*uh)); in ipsec_fill_offload_frame()
H A Dudp6_usrreq.c280 ulen = ntohs((u_short)uh->uh_ulen); in udp6_input()
/xnu-11417.121.6/tests/
H A Dnet_test_lib.c253 ip_udp->udp.uh_ulen = htons(sizeof(ip_udp->udp) + data_len); in ethernet_udp4_frame_populate()
322 ip6_udp->udp.uh_ulen = htons(sizeof(ip6_udp->udp) + data_len); in ethernet_udp6_frame_populate()
H A Dnet_bridge.c419 udp_len = ntohs(ip_udp->udp.uh_ulen); in ip_frame_validate()
467 udp_len = ntohs(ip6_udp->udp.uh_ulen); in ip6_frame_validate()
693 udp_len = ntohs(ip_udp->udp.uh_ulen); in ethernet_frame_get_udp4_payload()
739 udp_len = ntohs(ip6_udp->udp.uh_ulen); in ethernet_frame_get_udp6_payload()
/xnu-11417.121.6/osfmk/kdp/
H A Dkdp_udp.c121 short uh_ulen; /* udp length */ member
138 #define ui_ulen ui_u.uh_ulen
/xnu-11417.121.6/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_track.c985 uh->uh_ulen = htons(ulen); in flow_track_abort_quic()
/xnu-11417.121.6/bsd/net/
H A Dpf.c6137 offx += pf_pd_get_hdr_udp(pd)->uh_ulen << 2; in pf_test_rule()
7766 sk->app_state->handler(*state, direction, off + uh->uh_ulen, in pf_test_state_udp()
9899 if (ntohs(uh.uh_ulen) > pbuf->pb_packet_len - off || in pf_test()
9900 ntohs(uh.uh_ulen) < sizeof(struct udphdr)) { in pf_test()
10556 if (ntohs(uh.uh_ulen) > pbuf->pb_packet_len - off || in pf_test6()
10557 ntohs(uh.uh_ulen) < sizeof(struct udphdr)) { in pf_test6()