Home
last modified time | relevance | path

Searched refs:opts_len (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/net/icmpv4/src/
Dmain.c232 uint8_t opts_len; in verify_echo_reply_with_opts() local
244 opts_len = vhl - sizeof(struct net_ipv4_hdr); in verify_echo_reply_with_opts()
245 if (opts_len == 0) { in verify_echo_reply_with_opts()
249 ret = net_pkt_skip(pkt, NET_IPV4H_LEN - 1U + opts_len); in verify_echo_reply_with_opts()
266 NET_IPV4H_LEN - NET_ICMPH_LEN - opts_len; in verify_echo_reply_with_opts()
278 NET_IPV4H_LEN + NET_ICMPH_LEN + opts_len, in verify_echo_reply_with_opts()
284 if (net_pkt_ipv4_opts_len(pkt) != opts_len) { in verify_echo_reply_with_opts()
/Zephyr-latest/subsys/net/ip/
Dipv4.c252 uint8_t opts_len; in net_ipv4_input() local
282 opts_len = hdr_len - sizeof(struct net_ipv4_hdr); in net_ipv4_input()
283 if (opts_len > NET_IPV4_HDR_OPTNS_MAX_LEN) { in net_ipv4_input()
291 net_pkt_set_ipv4_opts_len(pkt, opts_len); in net_ipv4_input()
364 if (opts_len) { in net_ipv4_input()
366 if (net_pkt_skip(pkt, opts_len)) { in net_ipv4_input()
/Zephyr-latest/include/zephyr/net/
Dnet_pkt.h620 uint8_t opts_len) in net_pkt_set_ipv4_opts_len() argument
622 pkt->ipv4_opts_len = opts_len; in net_pkt_set_ipv4_opts_len()
646 uint8_t opts_len) in net_pkt_set_ipv4_opts_len() argument
649 ARG_UNUSED(opts_len); in net_pkt_set_ipv4_opts_len()
/Zephyr-latest/tests/net/tcp/src/
Dmain.c248 uint8_t opts_len = 0; in tester_prepare_tcp_pkt() local
252 opts_len = sizeof(tcp_options); in tester_prepare_tcp_pkt()
257 sizeof(struct tcphdr) + len + opts_len, in tester_prepare_tcp_pkt()
308 ret = net_pkt_write(pkt, tcp_options, opts_len); in tester_prepare_tcp_pkt()