Home
last modified time | relevance | path

Searched refs:net_udp_hdr (Results 1 – 25 of 27) sorted by relevance

12

/Zephyr-latest/include/zephyr/net/
Dudp.h54 struct net_udp_hdr *net_udp_get_hdr(struct net_pkt *pkt,
55 struct net_udp_hdr *hdr);
57 static inline struct net_udp_hdr *net_udp_get_hdr(struct net_pkt *pkt,
58 struct net_udp_hdr *hdr)
80 struct net_udp_hdr *net_udp_set_hdr(struct net_pkt *pkt,
81 struct net_udp_hdr *hdr);
83 static inline struct net_udp_hdr *net_udp_set_hdr(struct net_pkt *pkt, in net_udp_set_hdr()
84 struct net_udp_hdr *hdr) in net_udp_set_hdr()
Dnet_ip.h586 struct net_udp_hdr { struct
642 struct net_udp_hdr *udp;
/Zephyr-latest/subsys/net/ip/
Dudp.c22 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in net_udp_create()
23 struct net_udp_hdr *udp_hdr; in net_udp_create()
25 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access); in net_udp_create()
40 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in net_udp_finalize()
41 struct net_udp_hdr *udp_hdr; in net_udp_finalize()
46 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access); in net_udp_finalize()
64 struct net_udp_hdr *net_udp_get_hdr(struct net_pkt *pkt, in net_udp_get_hdr()
65 struct net_udp_hdr *hdr) in net_udp_get_hdr()
67 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(udp_access, struct net_udp_hdr); in net_udp_get_hdr()
69 struct net_udp_hdr *udp_hdr; in net_udp_get_hdr()
[all …]
Dudp_internal.h86 struct net_udp_hdr *net_udp_input(struct net_pkt *pkt,
90 struct net_udp_hdr *net_udp_input(struct net_pkt *pkt, in net_udp_input()
D6lo.c593 static inline uint8_t *compress_nh_udp(struct net_udp_hdr *udp, uint8_t *inline_ptr, in compress_nh_udp()
737 struct net_udp_hdr *udp; in compress_IPHC_header()
756 udp = (struct net_udp_hdr *)inline_pos; in compress_IPHC_header()
1260 struct net_udp_hdr *udp) in uncompress_nh_udp()
1349 struct net_udp_hdr *udp = NULL; in uncompress_IPHC_header()
1383 diff += sizeof(struct net_udp_hdr) - sizeof(uint8_t) - in uncompress_IPHC_header()
1497 udp = (struct net_udp_hdr *)(frag->data + NET_IPV6H_LEN); in uncompress_IPHC_header()
1631 diff += sizeof(struct net_udp_hdr) - sizeof(uint8_t) - in net_6lo_uncompress_hdr_diff()
Dicmpv6.c228 sizeof(struct net_udp_hdr); in net_icmpv6_send_error()
Dipv4.c244 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in net_ipv4_input()
Dicmpv4.c555 sizeof(struct net_udp_hdr); in net_icmpv4_send_error()
Dtp.c417 sizeof(struct net_udp_hdr) + len, in tp_output_pkt_alloc()
Dipv6.c477 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in net_ipv6_input()
/Zephyr-latest/tests/net/checksum_offload/src/
Dmain.c131 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in get_udp_chksum()
132 struct net_udp_hdr *udp_hdr; in get_udp_chksum()
146 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access); in get_udp_chksum()
235 udp_access, struct net_udp_hdr); in test_receiving()
236 struct net_udp_hdr *udp_hdr; in test_receiving()
238 udp_hdr = (struct net_udp_hdr *) in test_receiving()
295 hdr_offset += sizeof(struct net_udp_hdr); in test_fragment()
925 sizeof(struct net_udp_hdr); in test_fragment_rx_udp()
/Zephyr-latest/tests/net/dhcpv4/server/src/
Dmain.c488 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in verify_offer()
493 struct net_udp_hdr *udp_hdr; in verify_offer()
501 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access); in verify_offer()
662 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in verify_ack()
667 struct net_udp_hdr *udp_hdr; in verify_ack()
675 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access); in verify_ack()
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_6lo_fragment.c246 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in update_protocol_header_lengths()
247 struct net_udp_hdr *udp; in update_protocol_header_lengths()
249 udp = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access); in update_protocol_header_lengths()
/Zephyr-latest/subsys/net/lib/capture/
Dcapture.c322 sizeof(struct net_udp_hdr); in net_capture_setup()
331 sizeof(struct net_udp_hdr); in net_capture_setup()
630 len += sizeof(struct net_udp_hdr); in capture_send()
/Zephyr-latest/samples/net/promiscuous_mode/src/
Dmain.c45 struct net_udp_hdr hdr, *udp_hdr; in get_ports()
/Zephyr-latest/tests/net/6lo/src/
Dmain.c241 struct net_udp_hdr udp;
308 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(udp_access, struct net_udp_hdr); in compare_udp_hdr()
309 struct net_udp_hdr *udp_hdr = net_pkt_get_data(pkt, &udp_access); in compare_udp_hdr()
320 sizeof(struct net_udp_hdr)); in compare_udp_hdr()
/Zephyr-latest/tests/net/virtual/src/
Dmain.c947 size_t inner_len = sizeof(struct net_udp_hdr) + in test_virtual_recv_data_from_tunnel()
1003 sizeof(struct net_udp_hdr) + in test_virtual_recv_data_from_tunnel()
1016 sizeof(struct net_udp_hdr) + in test_virtual_recv_data_from_tunnel()
/Zephyr-latest/tests/net/traffic_class/src/
Dmain.c171 struct net_udp_hdr hdr, *udp_hdr; in eth_tx()
234 sizeof(struct net_udp_hdr)), in eth_tx()
/Zephyr-latest/doc/connectivity/networking/api/
Dnet_pkt.rst329 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr);
330 struct net_udp_hdr *udp_hdr;
332 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access);
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4.c1915 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in net_dhcpv4_accept_unicast()
1917 struct net_udp_hdr *udp_hdr; in net_dhcpv4_accept_unicast()
1938 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, &udp_access); in net_dhcpv4_accept_unicast()
/Zephyr-latest/subsys/net/lib/ptp/
Dmsg.c267 struct net_udp_hdr *hdr; in ptp_msg_from_pkt()
/Zephyr-latest/tests/net/ieee802154/6lo_fragment/src/
Dmain.c156 struct net_udp_hdr udp;
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_inet.c762 NET_PKT_DATA_ACCESS_DEFINE(udp_access, struct net_udp_hdr); in sock_get_pkt_src_addr()
763 struct net_udp_hdr *udp_hdr; in sock_get_pkt_src_addr()
765 udp_hdr = (struct net_udp_hdr *)net_pkt_get_data(pkt, in sock_get_pkt_src_addr()
/Zephyr-latest/tests/net/context/src/
Dmain.c1002 struct net_udp_hdr hdr, *udp_hdr; in tester_send()
/Zephyr-latest/tests/net/ipv6/src/
Dmain.c1601 #define NET_UDP_HDR(pkt) ((struct net_udp_hdr *)(net_udp_get_hdr(pkt, NULL)))

12