Searched refs:opts_len (Results 1 – 4 of 4) sorted by relevance
232 uint8_t opts_len; in verify_echo_reply_with_opts() local244 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()
252 uint8_t opts_len; in net_ipv4_input() local282 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()
620 uint8_t opts_len) in net_pkt_set_ipv4_opts_len() argument622 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() argument649 ARG_UNUSED(opts_len); in net_pkt_set_ipv4_opts_len()
248 uint8_t opts_len = 0; in tester_prepare_tcp_pkt() local252 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()