Searched refs:ipv4_hdr (Results 1 – 10 of 10) sorted by relevance
/Zephyr-latest/subsys/net/ip/ |
D | ipv4.c | 44 struct net_ipv4_hdr *ipv4_hdr; in net_ipv4_create_full() local 46 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in net_ipv4_create_full() 47 if (!ipv4_hdr) { in net_ipv4_create_full() 51 ipv4_hdr->vhl = 0x45; in net_ipv4_create_full() 52 ipv4_hdr->tos = tos; in net_ipv4_create_full() 53 ipv4_hdr->len = 0U; in net_ipv4_create_full() 54 ipv4_hdr->id[0] = id >> 8; in net_ipv4_create_full() 55 ipv4_hdr->id[1] = id; in net_ipv4_create_full() 56 ipv4_hdr->offset[0] = (offset >> 8) | (flags << 5); in net_ipv4_create_full() 57 ipv4_hdr->offset[1] = offset; in net_ipv4_create_full() [all …]
|
D | ipv4_fragment.c | 143 struct net_ipv4_hdr *ipv4_hdr; in reassemble_packet() local 164 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in reassemble_packet() 165 if (!ipv4_hdr) { in reassemble_packet() 194 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in reassemble_packet() 195 if (!ipv4_hdr) { in reassemble_packet() 200 ipv4_hdr->len = htons(net_pkt_get_len(pkt)); in reassemble_packet() 201 ipv4_hdr->offset[0] = 0; in reassemble_packet() 202 ipv4_hdr->offset[1] = 0; in reassemble_packet() 203 ipv4_hdr->chksum = 0; in reassemble_packet() 204 ipv4_hdr->chksum = net_calc_chksum_ipv4(pkt); in reassemble_packet() [all …]
|
D | icmp.c | 538 struct net_ipv4_hdr *ipv4_hdr, in net_icmp_call_ipv4_handlers() argument 543 ip_hdr.ipv4 = ipv4_hdr; in net_icmp_call_ipv4_handlers()
|
D | net_private.h | 68 struct net_ipv4_hdr *ipv4_hdr,
|
/Zephyr-latest/tests/net/dhcpv4/server/src/ |
D | main.c | 74 struct net_ipv4_hdr *ipv4_hdr) in send_icmp_echo_reply() argument 84 zassert_ok(net_ipv4_create(reply, (struct in_addr *)ipv4_hdr->dst, in send_icmp_echo_reply() 85 (struct in_addr *)ipv4_hdr->src), in send_icmp_echo_reply() 102 struct net_ipv4_hdr *ipv4_hdr; in server_send() local 104 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in server_send() 105 zassert_not_null(ipv4_hdr, "Failed to access IPv4 header."); in server_send() 107 if (ipv4_hdr->proto == IPPROTO_ICMP) { in server_send() 110 memcpy(&test_ctx.declined_ip, ipv4_hdr->dst, in server_send() 112 send_icmp_echo_reply(pkt, ipv4_hdr); in server_send() 492 struct net_ipv4_hdr *ipv4_hdr; in verify_offer() local [all …]
|
/Zephyr-latest/tests/net/icmp/src/ |
D | main.c | 182 struct net_ipv4_hdr *ipv4_hdr = NULL; in get_ipv4_reply() local 207 ipv4_hdr = net_pkt_cursor_get_pos(reply); in get_ipv4_reply() 208 *hdr_ipv4 = ipv4_hdr; in get_ipv4_reply() 334 struct net_ipv4_hdr *ipv4_hdr; in offload_ping_handler() local 354 &ipv4_hdr, &icmp_hdr); in offload_ping_handler() 361 ip_hdr.ipv4 = ipv4_hdr; in offload_ping_handler()
|
/Zephyr-latest/subsys/net/l2/virtual/ipip/ |
D | ipip.c | 124 struct net_ipv4_hdr *ipv4_hdr; in ipv4_get_tos() local 126 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in ipv4_get_tos() 127 if (!ipv4_hdr) { in ipv4_get_tos() 131 return ipv4_hdr->tos; in ipv4_get_tos()
|
/Zephyr-latest/tests/net/checksum_offload/src/ |
D | main.c | 219 struct net_ipv4_hdr *ipv4_hdr; in test_receiving() local 222 ipv4_hdr = (struct net_ipv4_hdr *) in test_receiving() 224 zassert_not_null(ipv4_hdr, "Can't access IPv4 header"); in test_receiving() 226 net_ipv4_addr_copy_raw((uint8_t *)&addr, ipv4_hdr->src); in test_receiving() 227 net_ipv4_addr_copy_raw(ipv4_hdr->src, ipv4_hdr->dst); in test_receiving() 228 net_ipv4_addr_copy_raw(ipv4_hdr->dst, (uint8_t *)&addr); in test_receiving()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | sockets_inet.c | 715 struct net_ipv4_hdr *ipv4_hdr; in sock_get_pkt_src_addr() local 722 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data( in sock_get_pkt_src_addr() 724 if (!ipv4_hdr || in sock_get_pkt_src_addr() 731 net_ipv4_addr_copy_raw((uint8_t *)&addr4->sin_addr, ipv4_hdr->src); in sock_get_pkt_src_addr() 982 struct net_ipv4_hdr *ipv4_hdr; in add_pktinfo() local 984 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data( in add_pktinfo() 986 if (ipv4_hdr == NULL || in add_pktinfo() 993 net_ipv4_addr_copy_raw((uint8_t *)&info.ipi_addr, ipv4_hdr->dst); in add_pktinfo()
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | net_pkt.rst | 319 struct net_ipv4_hdr *ipv4_hdr; 321 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access);
|