Searched refs:NET_IPV4_HDR (Results 1 – 15 of 15) sorted by relevance
/Zephyr-latest/drivers/net/ |
D | loopback.c | 147 net_ipv4_addr_copy_raw(NET_IPV4_HDR(cloned)->src, in loopback_send() 148 NET_IPV4_HDR(pkt)->dst); in loopback_send() 149 net_ipv4_addr_copy_raw(NET_IPV4_HDR(cloned)->dst, in loopback_send() 150 NET_IPV4_HDR(pkt)->src); in loopback_send()
|
/Zephyr-latest/subsys/net/ip/ |
D | net_core.c | 293 if (NET_IPV4_HDR(pkt)->ttl == 0) { in check_ip() 311 if (net_ipv4_addr_cmp((struct in_addr *)NET_IPV4_HDR(pkt)->dst, in check_ip() 321 if (net_ipv4_is_addr_loopback((struct in_addr *)NET_IPV4_HDR(pkt)->dst) || in check_ip() 323 (struct in_addr *)NET_IPV4_HDR(pkt)->dst) == false && in check_ip() 324 net_ipv4_is_my_addr((struct in_addr *)NET_IPV4_HDR(pkt)->dst))) { in check_ip() 330 net_ipv4_addr_copy_raw((uint8_t *)&addr, NET_IPV4_HDR(pkt)->src); in check_ip() 331 net_ipv4_addr_copy_raw(NET_IPV4_HDR(pkt)->src, in check_ip() 332 NET_IPV4_HDR(pkt)->dst); in check_ip() 333 net_ipv4_addr_copy_raw(NET_IPV4_HDR(pkt)->dst, (uint8_t *)&addr); in check_ip() 345 if (net_ipv4_is_addr_loopback((struct in_addr *)NET_IPV4_HDR(pkt)->src)) { in check_ip()
|
D | ipv4.c | 463 NET_IPV4_HDR(pkt)->dst); in net_ipv4_prepare_for_send()
|
D | tcp.c | 189 struct net_ipv4_hdr *ip = NET_IPV4_HDR(pkt); in tcp_endpoint_set() 1443 (struct in_addr *)NET_IPV4_HDR(pkt)->dst) || in is_destination_local() 1445 (struct in_addr *)NET_IPV4_HDR(pkt)->dst)) { in is_destination_local() 1484 (struct in_addr *)NET_IPV4_HDR(pkt)->dst, in net_tcp_reply_rst() 1485 (struct in_addr *)NET_IPV4_HDR(pkt)->src); in net_tcp_reply_rst()
|
/Zephyr-latest/samples/net/promiscuous_mode/src/ |
D | main.c | 85 dst = &NET_IPV4_HDR(pkt)->dst; in print_info() 86 src = &NET_IPV4_HDR(pkt)->src; in print_info() 87 next_hdr = NET_IPV4_HDR(pkt)->proto; in print_info()
|
/Zephyr-latest/tests/net/ipv4_fragment/src/ |
D | main.c | 207 const struct net_ipv4_hdr *hdr = NET_IPV4_HDR(pkt); in check_ipv4_fragment_header() 272 pkt_id = *((uint16_t *)&NET_IPV4_HDR(pkt)->id); in sender_iface() 361 const struct net_ipv4_hdr *hdr = NET_IPV4_HDR(pkt); in udp_data_received() 438 const struct net_ipv4_hdr *hdr = NET_IPV4_HDR(pkt); in tcp_data_received() 633 NET_IPV4_HDR(pkt)->len = htons(packet_len); in ZTEST() 634 NET_IPV4_HDR(pkt)->chksum = net_calc_chksum_ipv4(pkt); in ZTEST() 702 NET_IPV4_HDR(pkt)->len = htons(packet_len); in ZTEST() 703 NET_IPV4_HDR(pkt)->chksum = net_calc_chksum_ipv4(pkt); in ZTEST() 762 NET_IPV4_HDR(pkt)->chksum = net_calc_chksum_ipv4(pkt); in ZTEST() 846 NET_IPV4_HDR(pkt)->len = htons(packet_len); in ZTEST() [all …]
|
/Zephyr-latest/tests/net/npf/src/ |
D | main.c | 385 memcpy((struct in_addr *)NET_IPV4_HDR(pkt_v4)->src, &ipv4_address_list[it], in ZTEST() 391 memcpy((struct in_addr *)NET_IPV4_HDR(pkt_v4)->src, in ZTEST() 407 memcpy((struct in_addr *)NET_IPV4_HDR(pkt_v4)->src, &ipv4_address_list[it], in ZTEST() 413 memcpy((struct in_addr *)NET_IPV4_HDR(pkt_v4)->src, in ZTEST() 477 memcpy((struct in6_addr *)NET_IPV4_HDR(pkt_v6)->src, in ZTEST()
|
/Zephyr-latest/subsys/net/l2/ethernet/ |
D | ethernet.c | 133 len = ntohs(NET_IPV4_HDR(pkt)->len); in ethernet_update_length() 180 !(net_ipv4_is_addr_mcast((struct in_addr *)NET_IPV4_HDR(pkt)->dst) || in ethernet_check_ipv4_bcast_addr() 182 (struct in_addr *)NET_IPV4_HDR(pkt)->dst))) { in ethernet_check_ipv4_bcast_addr() 433 (struct in_addr *)NET_IPV4_HDR(pkt)->dst) || in ethernet_ipv4_dst_is_broadcast_or_mcast() 434 net_ipv4_is_addr_mcast((struct in_addr *)NET_IPV4_HDR(pkt)->dst)) { in ethernet_ipv4_dst_is_broadcast_or_mcast() 445 net_ipv4_is_addr_mcast((struct in_addr *)NET_IPV4_HDR(pkt)->dst)) { in ethernet_fill_in_dst_on_ipv4_mcast() 448 (struct in_addr *)NET_IPV4_HDR(pkt)->dst, dst); in ethernet_fill_in_dst_on_ipv4_mcast() 476 arp_pkt = net_arp_prepare(pkt, (struct in_addr *)NET_IPV4_HDR(pkt)->dst, NULL); in ethernet_ll_prepare_on_ipv4() 836 iface, (struct in_addr *)NET_IPV4_HDR(pkt)->dst)) { in ethernet_send()
|
D | arp.c | 332 my_addr = (struct in_addr *)NET_IPV4_HDR(pending)->src; in arp_prepare() 366 &NET_IPV4_HDR(pkt)->src) || in net_arp_prepare() 368 &NET_IPV4_HDR(pkt)->dst); in net_arp_prepare() 462 net_sprint_ipv4_addr(&NET_IPV4_HDR(pkt)->dst)); in net_arp_prepare()
|
/Zephyr-latest/tests/net/arp/src/ |
D | main.c | 435 NET_IPV4_HDR(pkt)->dst)) { in ZTEST() 438 net_sprint_ipv4_addr(&NET_IPV4_HDR(pkt)->dst)); in ZTEST() 443 NET_IPV4_HDR(pkt)->src)) { in ZTEST() 446 net_sprint_ipv4_addr(&NET_IPV4_HDR(pkt)->src)); in ZTEST()
|
/Zephyr-latest/tests/net/context/src/ |
D | main.c | 1034 net_ipv4_addr_copy_raw((uint8_t *)&addr, NET_IPV4_HDR(pkt)->src); in tester_send() 1035 net_ipv4_addr_copy_raw(NET_IPV4_HDR(pkt)->src, in tester_send() 1036 NET_IPV4_HDR(pkt)->dst); in tester_send() 1037 net_ipv4_addr_copy_raw(NET_IPV4_HDR(pkt)->dst, (uint8_t *)&addr); in tester_send()
|
/Zephyr-latest/subsys/net/pkt_filter/ |
D | base.c | 280 struct in_addr *addr = (struct in_addr *)NET_IPV4_HDR(pkt)->src; in npf_ip_src_addr_match()
|
/Zephyr-latest/tests/net/checksum_offload/src/ |
D | main.c | 956 struct net_ipv4_hdr *ipv4 = NET_IPV4_HDR(pkt); in recv_cb_offload_disabled() 982 struct net_ipv4_hdr *ipv4 = NET_IPV4_HDR(pkt); in recv_cb_offload_enabled()
|
/Zephyr-latest/include/zephyr/net/ |
D | net_pkt.h | 1408 #define NET_IPV4_HDR(pkt) ((struct net_ipv4_hdr *)net_pkt_ip_data(pkt)) macro
|
/Zephyr-latest/tests/net/tcp/src/ |
D | main.c | 398 return NET_IPV4_HDR(pkt)->proto == IPPROTO_ICMP; in is_icmp_pkt()
|