| /subsys/net/ip/ |
| A D | ipv6_pe.c | 130 ARG_UNUSED(prefix); in ipv6_pe_use_this_prefix() 149 (uint8_t *)prefix, 64)) { in ipv6_pe_prefix_already_exists() 169 (uint8_t *)prefix, 64)) { in ipv6_pe_prefix_remove() 233 struct in6_addr prefix; in gen_temporary_iid() member 243 memcpy(&buf.prefix, prefix, sizeof(struct in6_addr)); in gen_temporary_iid() 317 net_sprint_ipv6_addr(prefix)); in net_ipv6_pe_start() 350 net_sprint_ipv6_addr(prefix)); in net_ipv6_pe_start() 352 net_ipaddr_copy(&addr, prefix); in net_ipv6_pe_start() 461 (uint8_t *)prefix, 64); in iface_cb() 678 struct in6_addr prefix; in renewal_cb() local [all …]
|
| A D | ipv6.c | 871 const struct in6_addr *prefix, in gen_stable_iid() argument 885 struct in6_addr prefix; in gen_stable_iid() member 893 if (prefix == NULL) { in gen_stable_iid() 898 memcpy(&buf.prefix, prefix, sizeof(struct in6_addr)); in gen_stable_iid() 957 const struct in6_addr *prefix, in net_ipv6_addr_generate_iid() argument 974 if (prefix == NULL) { in net_ipv6_addr_generate_iid() 977 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[0]), in net_ipv6_addr_generate_iid() 979 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[1]), in net_ipv6_addr_generate_iid() 991 if (prefix == NULL) { in net_ipv6_addr_generate_iid() 995 UNALIGNED_PUT(UNALIGNED_GET(&prefix->s6_addr32[0]), &tmp_addr.s6_addr32[0]); in net_ipv6_addr_generate_iid() [all …]
|
| A D | net_if.c | 2709 if (net_ipv6_addr_cmp(prefix, &ipv6->prefix[i].prefix) && in ipv6_prefix_find() 2763 net_if_ipv6_prefix_init(iface, &ipv6->prefix[i], prefix, in net_if_ipv6_prefix_add() 2811 if (!net_ipv6_addr_cmp(&ipv6->prefix[i].prefix, addr) || in net_if_ipv6_prefix_rm() 2875 if (net_ipv6_is_prefix(ipv6->prefix[i].prefix.s6_addr, in net_if_ipv6_prefix_get() 2878 if (!prefix || prefix->len > ipv6->prefix[i].len) { in net_if_ipv6_prefix_get() 2879 prefix = &ipv6->prefix[i]; in net_if_ipv6_prefix_get() 2887 net_sprint_ipv6_addr(&prefix->prefix), in net_if_ipv6_prefix_get() 2888 prefix->len, in net_if_ipv6_prefix_get() 2919 if (net_ipv6_is_prefix(ipv6->prefix[i].prefix.s6_addr, in net_if_ipv6_prefix_lookup() 2921 prefix = &ipv6->prefix[i]; in net_if_ipv6_prefix_lookup() [all …]
|
| A D | ipv6.h | 591 void net_ipv6_pe_start(struct net_if *iface, const struct in6_addr *prefix, 596 const struct in6_addr *prefix, in net_ipv6_pe_start() argument 601 ARG_UNUSED(prefix); in net_ipv6_pe_start() 646 typedef void (*net_ipv6_pe_filter_cb_t)(struct in6_addr *prefix,
|
| A D | ipv6_nbr.c | 2252 struct net_if_ipv6_prefix *prefix; in handle_prefix_onlink() local 2259 if (!prefix) { in handle_prefix_onlink() 2265 (struct in6_addr *)prefix_info->prefix, in handle_prefix_onlink() 2268 if (prefix) { in handle_prefix_onlink() 2296 &prefix->prefix, in handle_prefix_onlink() 2297 prefix->len); in handle_prefix_onlink() 2304 net_sprint_ipv6_addr(&prefix->prefix), in handle_prefix_onlink() 2305 prefix->len); in handle_prefix_onlink() 2307 net_if_ipv6_prefix_set_lf(prefix, true); in handle_prefix_onlink() 2317 net_if_ipv6_prefix_set_lf(prefix, false); in handle_prefix_onlink() [all …]
|
| A D | icmpv6.h | 61 uint8_t prefix[NET_IPV6_ADDR_SIZE]; member 69 uint8_t prefix[NET_IPV6_ADDR_SIZE]; member
|
| A D | 6lo.c | 27 struct in6_addr prefix; member 174 net_ipv6_addr_copy_raw((uint8_t *)&ctx_6co[index].prefix, context->prefix); in set_6lo_context() 246 !memcmp(ctx_6co[i].prefix.s6_addr, addr->s6_addr, 8)) { in get_6lo_context_by_addr() 993 memmove(&src_ip.s6_addr[0], &ctx->prefix.s6_addr[0], 8); in uncompress_sa_ctx() 1008 memmove(&src_ip.s6_addr[0], &ctx->prefix.s6_addr[0], 8); in uncompress_sa_ctx() 1030 memmove(&src_ip.s6_addr[0], &ctx->prefix.s6_addr[0], 8); in uncompress_sa_ctx() 1206 memmove(&dst_ip.s6_addr[0], &ctx->prefix.s6_addr[0], 8); in uncompress_da_ctx() 1217 memmove(&dst_ip.s6_addr[0], &ctx->prefix.s6_addr[0], 8); in uncompress_da_ctx() 1239 memmove(&dst_ip.s6_addr[0], &ctx->prefix.s6_addr[0], 8); in uncompress_da_ctx()
|
| /subsys/net/lib/lwm2m/ |
| A D | lwm2m_obj_gateway.c | 47 char prefix[CONFIG_LWM2M_GATEWAY_PREFIX_MAX_STR_SIZE]; member 80 length = strlen(device_table[i].prefix); in prefix_validation_cb() 82 if (strncmp(device_table[i].prefix, data, length) == 0) { in prefix_validation_cb() 122 snprintk(device_table[index].prefix, CONFIG_LWM2M_GATEWAY_PREFIX_MAX_STR_SIZE, in lwm2m_gw_create() 137 true, device_table[index].prefix, CONFIG_LWM2M_GATEWAY_PREFIX_MAX_STR_SIZE, in lwm2m_gw_create() 138 strlen(device_table[index].prefix) + 1, NULL, NULL, prefix_validation_cb, in lwm2m_gw_create() 172 char *prefix = device_table[index].prefix; in lwm2m_gw_handle_req() local 173 size_t prefix_len = strlen(prefix); in lwm2m_gw_handle_req() 178 if (strncmp(options[0].value, prefix, prefix_len) != 0) { in lwm2m_gw_handle_req()
|
| /subsys/net/lib/shell/ |
| A D | ipv6.c | 68 net_addr_ntop(AF_INET6, prefix, ipaddr, sizeof(ipaddr) - 1); in ipv6_pe_filter_cb() 112 struct net_if_ipv6_prefix *prefix; in address_lifetime_cb() local 118 prefix = net_if_ipv6_prefix_get(iface, in address_lifetime_cb() 120 if (prefix) { in address_lifetime_cb() 121 prefix_len = prefix->len; in address_lifetime_cb() 342 struct in6_addr prefix; in cmd_net_ip6_pe() local 397 ret = net_addr_pton(AF_INET6, argv[arg], &prefix); in cmd_net_ip6_pe() 408 ret = net_ipv6_pe_add_filter(&prefix, !do_allowlisting); in cmd_net_ip6_pe() 410 ret = net_ipv6_pe_del_filter(&prefix); in cmd_net_ip6_pe() 416 net_sprint_ipv6_addr(&prefix), in cmd_net_ip6_pe() [all …]
|
| A D | route.c | 120 struct in6_addr prefix = {0}; in cmd_net_ip6_route_add() local 139 if (net_addr_pton(AF_INET6, argv[2], &prefix)) { in cmd_net_ip6_route_add() 149 route = net_route_add(iface, &prefix, NET_IPV6_DEFAULT_PREFIX_LEN, in cmd_net_ip6_route_add() 171 struct in6_addr prefix = { 0 }; in cmd_net_ip6_route_del() local 188 if (net_addr_pton(AF_INET6, argv[2], &prefix)) { in cmd_net_ip6_route_del() 193 route = net_route_lookup(iface, &prefix); in cmd_net_ip6_route_del()
|
| A D | iface.c | 165 struct net_if_ipv6_prefix *prefix; in iface_cb() local 456 ARRAY_FOR_EACH(ipv6->prefix, i) { in iface_cb() 457 prefix = &ipv6->prefix[i]; in iface_cb() 459 if (!prefix->is_used) { in iface_cb() 464 net_sprint_ipv6_addr(&prefix->prefix), in iface_cb() 465 prefix->len, prefix->is_infinite ? " infinite" : ""); in iface_cb() 518 net_sprint_ipv6_addr(&iface->config.dhcpv6.prefix)); in iface_cb()
|
| /subsys/retention/ |
| A D | retention.c | 26 #define INST_HAS_PREFIX(n) COND_CODE_1(DT_INST_NODE_HAS_PROP(n, prefix), (1), (0)) || 58 uint8_t prefix[]; member 200 if (memcmp(&config->prefix[pos], buffer, read_size) != 0) { in retention_is_valid() 316 rc = retained_mem_write(config->parent, config->offset, (void *)config->prefix, in retention_write() 414 .reserved_size = (COND_CODE_1(DT_INST_NODE_HAS_PROP(inst, prefix), \ 415 (DT_INST_PROP_LEN(inst, prefix)), (0)) + \ 417 .prefix_len = COND_CODE_1(DT_INST_NODE_HAS_PROP(inst, prefix), \ 418 (DT_INST_PROP_LEN(inst, prefix)), (0)), \ 419 .prefix = DT_INST_PROP_OR(inst, prefix, {0}), \
|
| /subsys/net/lib/http/ |
| A D | http_hpack.c | 409 uint8_t prefix; in http_hpack_decode_header() local 420 prefix = *buf; in http_hpack_decode_header() 424 } else if ((prefix & HPACK_PREFIX_LITERAL_INDEXING_MASK) == in http_hpack_decode_header() 429 ((prefix & HPACK_PREFIX_LITERAL_NEVER_INDEXED_MASK) == in http_hpack_decode_header() 432 } else if ((prefix & HPACK_PREFIX_DYNAMIC_TABLE_SIZE_MASK) == in http_hpack_decode_header() 443 uint8_t prefix, uint8_t n) in hpack_integer_encode() argument 454 *buf = prefix | (uint8_t)value; in hpack_integer_encode() 459 *buf++ = prefix | limit; in hpack_integer_encode() 490 uint8_t prefix = 0; in hpack_string_encode() local 507 prefix = HPACK_STRING_HUFFMAN_FLAG; in hpack_string_encode() [all …]
|
| /subsys/bluetooth/host/classic/ |
| A D | at.c | 66 static bool str_has_prefix(const char *str, const char *prefix) in str_has_prefix() argument 68 if (strncmp(str, prefix, strlen(prefix)) != 0) { in str_has_prefix() 359 const char *prefix, parse_val_t func, in at_cmd_start() argument 362 if (!str_has_prefix(at->buf, prefix)) { in at_cmd_start() 382 const char *prefix, parse_val_t func, in at_cmd_get_value() argument 391 const char *prefix, parse_val_t func, in at_cmd_process_value() argument 403 const char *prefix, parse_val_t func, in at_cmd_state_end_lf() argument 427 const char *prefix, parse_val_t func, in at_parse_cmd_input() argument 437 ret = cmd_parser_cb[at->cmd_state](at, buf, prefix, func, type); in at_parse_cmd_input()
|
| A D | at.h | 88 const char *prefix, parse_val_t func, 111 const char *prefix, parse_val_t func,
|
| /subsys/shell/ |
| A D | shell_utils.c | 506 const char *prefix, in shell_device_internal() argument 523 && ((prefix == NULL) in shell_device_internal() 524 || (strncmp(prefix, dev->name, in shell_device_internal() 525 strlen(prefix)) == 0)) in shell_device_internal() 546 const char *prefix) in shell_device_lookup() argument 548 return shell_device_internal(idx, prefix, NULL, in shell_device_lookup() 553 const char *prefix) in shell_device_lookup_all() argument 555 return shell_device_internal(idx, prefix, NULL, in shell_device_lookup_all() 560 const char *prefix) in shell_device_lookup_non_ready() argument 562 return shell_device_internal(idx, prefix, NULL, in shell_device_lookup_non_ready()
|
| /subsys/net/lib/dhcpv6/ |
| A D | dhcpv6.c | 410 ret = net_pkt_write(pkt, &ia_pd->iaprefix.prefix, in dhcpv6_add_option_ia_pd() 411 sizeof(ia_pd->iaprefix.prefix)); in dhcpv6_add_option_ia_pd() 545 memcpy(&ia_pd.iaprefix.prefix, &iface->config.dhcpv6.prefix, in dhcpv6_add_options() 546 sizeof(ia_pd.iaprefix.prefix)); in dhcpv6_add_options() 1048 ret = net_pkt_read(pkt, &iaprefix->prefix, sizeof(iaprefix->prefix)); in dhcpv6_parse_option_iaprefix() 1806 goto prefix; in dhcpv6_handle_reply() 1838 prefix: in dhcpv6_handle_reply() 1857 &ia_pd.iaprefix.prefix) || in dhcpv6_handle_reply() 1866 memcpy(&iface->config.dhcpv6.prefix, &ia_pd.iaprefix.prefix, in dhcpv6_handle_reply() 1867 sizeof(iface->config.dhcpv6.prefix)); in dhcpv6_handle_reply() [all …]
|
| A D | dhcpv6_internal.h | 110 struct in6_addr prefix; member
|
| /subsys/net/lib/coap/ |
| A D | coap_link_format.c | 241 static const char prefix[] = "</"; in format_uri() local 249 res = append_to_coap_pkt(response, &prefix[0], sizeof(prefix) - 1, in format_uri() 542 char *prefix = "</"; in format_uri() local 549 res = append(response, (uint8_t *) prefix, strlen(prefix)); in format_uri()
|
| /subsys/net/lib/zperf/ |
| A D | zperf_common.c | 111 struct net_if_ipv6_prefix *prefix; in zperf_get_ipv6_addr() local 134 prefix = net_if_ipv6_prefix_add(net_if_get_default(), in zperf_get_ipv6_addr() 137 if (!prefix) { in zperf_get_ipv6_addr()
|
| /subsys/logging/backends/ |
| A D | Kconfig.fs | 43 string "Log file name prefix" 47 The prefix is followed by the number of log file.
|
| /subsys/mgmt/mcumgr/grp/os_mgmt_client/ |
| A D | Kconfig | 12 # try to group them together by the same stem after prefix.
|
| /subsys/mgmt/mcumgr/grp/img_mgmt_client/ |
| A D | Kconfig | 12 # try to group them together by the same stem after prefix.
|
| /subsys/mgmt/mcumgr/grp/stat_mgmt/ |
| A D | Kconfig | 13 # try to group them together by the same stem after prefix.
|
| /subsys/logging/ |
| A D | log_output.c | 707 static const char prefix[] = DROPPED_COLOR_PREFIX "--- "; in log_output_dropped_process() local 715 log_output_write(outf, (uint8_t *)prefix, sizeof(prefix) - 1, output->control_block->ctx); in log_output_dropped_process()
|