Searched refs:opt_type (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/subsys/net/l2/ppp/ |
D | options.c | 28 uint8_t opt_type, opt_len, opt_val_len; in ppp_parse_options() local 40 ret = net_pkt_read_u8(pkt, &opt_type); in ppp_parse_options() 54 opt_val_len = opt_len - sizeof(opt_type) - sizeof(opt_len); in ppp_parse_options() 59 ppp_option2str(fsm->protocol, opt_type), opt_type, in ppp_parse_options() 62 ret = parse(pkt, opt_type, opt_val_len, user_data); in ppp_parse_options()
|
/Zephyr-latest/subsys/net/ip/ |
D | ipv6.c | 160 uint8_t opt_type, in ipv6_drop_on_unknown_option() argument 178 opt_type, opt_type, opt_type >> 6, opt_type & 0xc0); in ipv6_drop_on_unknown_option() 180 switch (opt_type & 0xc0) { in ipv6_drop_on_unknown_option() 227 uint8_t opt_type, opt_len; in ipv6_handle_ext_hdr_options() local 234 if (net_pkt_read_u8(pkt, &opt_type)) { in ipv6_handle_ext_hdr_options() 238 if (opt_type != NET_IPV6_EXT_HDR_OPT_PAD1) { in ipv6_handle_ext_hdr_options() 244 switch (opt_type) { in ipv6_handle_ext_hdr_options() 266 opt_type, opt_type_offset)) { in ipv6_handle_ext_hdr_options()
|
D | ipv4.c | 174 uint8_t opt_type; in net_ipv4_parse_hdr_options() local 176 if (net_pkt_read_u8(pkt, &opt_type)) { in net_ipv4_parse_hdr_options() 182 if (!(opt_type == NET_IPV4_OPTS_EO || in net_ipv4_parse_hdr_options() 183 opt_type == NET_IPV4_OPTS_NOP)) { in net_ipv4_parse_hdr_options() 200 switch (opt_type) { in net_ipv4_parse_hdr_options() 219 if (cb(opt_type, opt_data, opt_len, user_data)) { in net_ipv4_parse_hdr_options()
|
D | icmpv4.c | 351 static int icmpv4_reply_to_options(uint8_t opt_type, in icmpv4_reply_to_options() argument 359 if (opt_type == NET_IPV4_OPTS_RR) { in icmpv4_reply_to_options() 362 } else if (opt_type == NET_IPV4_OPTS_TS) { in icmpv4_reply_to_options()
|
D | ipv4.h | 226 typedef int (*net_ipv4_parse_hdr_options_cb_t)(uint8_t opt_type,
|
/Zephyr-latest/tests/net/dhcpv4/server/src/ |
D | main.c | 408 static void verify_no_option(struct net_pkt *pkt, uint8_t opt_type) in verify_no_option() argument 426 zassert_not_equal(type, opt_type, in verify_no_option() 427 "Option %d should not be present", opt_type); in verify_no_option() 435 static void verify_option(struct net_pkt *pkt, uint8_t opt_type, in verify_option() argument 459 if (type == opt_type) { in verify_option() 468 zassert_true(false, "Option %d not found", opt_type); in verify_option() 471 static void verify_option_uint32(struct net_pkt *pkt, uint8_t opt_type, in verify_option_uint32() argument 476 verify_option(pkt, opt_type, &optval, sizeof(optval)); in verify_option_uint32() 479 static void verify_option_uint8(struct net_pkt *pkt, uint8_t opt_type, in verify_option_uint8() argument 482 verify_option(pkt, opt_type, &optval, sizeof(optval)); in verify_option_uint8()
|