/Zephyr-Core-3.7.0/subsys/net/ip/ |
D | net_stats.h | 22 #define GET_STAT(iface, s) (iface ? iface->stats.s : net_stats.s) argument 23 #define GET_STAT_ADDR(iface, s) (iface ? &iface->stats.s : &net_stats.s) argument 26 #define GET_STAT(iface, s) (net_stats.s) argument 27 #define GET_STAT_ADDR(iface, s) (&GET_STAT(iface, s)) argument 36 static inline void net_stats_update_processing_error(struct net_if *iface) in net_stats_update_processing_error() argument 38 UPDATE_STAT(iface, stats.processing_error++); in net_stats_update_processing_error() 41 static inline void net_stats_update_ip_errors_protoerr(struct net_if *iface) in net_stats_update_ip_errors_protoerr() argument 43 UPDATE_STAT(iface, stats.ip_errors.protoerr++); in net_stats_update_ip_errors_protoerr() 46 static inline void net_stats_update_ip_errors_vhlerr(struct net_if *iface) in net_stats_update_ip_errors_vhlerr() argument 48 UPDATE_STAT(iface, stats.ip_errors.vhlerr++); in net_stats_update_ip_errors_vhlerr() [all …]
|
D | net_stats.c | 67 static inline void stats(struct net_if *iface) in stats() argument 75 if (iface) { in stats() 76 NET_INFO("Interface %p [%d]", iface, in stats() 77 net_if_get_by_iface(iface)); in stats() 84 GET_STAT(iface, ipv6.recv), in stats() 85 GET_STAT(iface, ipv6.sent), in stats() 86 GET_STAT(iface, ipv6.drop), in stats() 87 GET_STAT(iface, ipv6.forwarded)); in stats() 90 GET_STAT(iface, ipv6_nd.recv), in stats() 91 GET_STAT(iface, ipv6_nd.sent), in stats() [all …]
|
D | net_if.c | 90 struct net_if *iface; member 97 struct net_if *iface; member 158 struct net_if *iface; in z_vrfy_net_if_get_by_index() local 160 iface = net_if_get_by_index(index); in z_vrfy_net_if_get_by_index() 161 if (!iface) { in z_vrfy_net_if_get_by_index() 165 if (!k_object_is_valid(iface, K_OBJ_NET_IF)) { in z_vrfy_net_if_get_by_index() 169 return iface; in z_vrfy_net_if_get_by_index() 212 static bool net_if_tx(struct net_if *iface, struct net_pkt *pkt) in net_if_tx() argument 249 if (net_if_flag_is_set(iface, NET_IF_LOWER_UP)) { in net_if_tx() 261 net_if_tx_lock(iface); in net_if_tx() [all …]
|
/Zephyr-Core-3.7.0/samples/net/stats/src/ |
D | main.c | 20 #define GET_STAT(iface, s) (iface ? iface->stats.s : data->s) argument 22 #define GET_STAT(iface, s) data->s argument 25 static void print_stats(struct net_if *iface, struct net_stats *data) in print_stats() argument 27 if (iface) { in print_stats() 28 printk("Statistics for interface %p [%d]\n", iface, in print_stats() 29 net_if_get_by_iface(iface)); in print_stats() 36 GET_STAT(iface, ipv6.recv), in print_stats() 37 GET_STAT(iface, ipv6.sent), in print_stats() 38 GET_STAT(iface, ipv6.drop), in print_stats() 39 GET_STAT(iface, ipv6.forwarded)); in print_stats() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/l2/ieee802154/ |
D | ieee802154_utils.h | 24 static inline enum ieee802154_hw_caps ieee802154_radio_get_hw_capabilities(struct net_if *iface) in ieee802154_radio_get_hw_capabilities() argument 27 net_if_get_device(iface)->api; in ieee802154_radio_get_hw_capabilities() 33 return radio->get_capabilities(net_if_get_device(iface)); in ieee802154_radio_get_hw_capabilities() 36 static inline int ieee802154_radio_cca(struct net_if *iface) in ieee802154_radio_cca() argument 39 net_if_get_device(iface)->api; in ieee802154_radio_cca() 45 return radio->cca(net_if_get_device(iface)); in ieee802154_radio_cca() 48 static inline int ieee802154_radio_set_channel(struct net_if *iface, uint16_t channel) in ieee802154_radio_set_channel() argument 51 net_if_get_device(iface)->api; in ieee802154_radio_set_channel() 57 return radio->set_channel(net_if_get_device(iface), channel); in ieee802154_radio_set_channel() 60 static inline int ieee802154_radio_set_tx_power(struct net_if *iface, int16_t dbm) in ieee802154_radio_set_tx_power() argument [all …]
|
/Zephyr-Core-3.7.0/subsys/net/l2/ethernet/ |
D | eth_stats.h | 17 static inline void eth_stats_update_bytes_rx(struct net_if *iface, in eth_stats_update_bytes_rx() argument 21 net_if_get_device(iface)->api; in eth_stats_update_bytes_rx() 28 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_bytes_rx() 36 static inline void eth_stats_update_bytes_tx(struct net_if *iface, in eth_stats_update_bytes_tx() argument 40 net_if_get_device(iface)->api; in eth_stats_update_bytes_tx() 47 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_bytes_tx() 55 static inline void eth_stats_update_pkts_rx(struct net_if *iface) in eth_stats_update_pkts_rx() argument 58 net_if_get_device(iface)->api; in eth_stats_update_pkts_rx() 65 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_pkts_rx() 73 static inline void eth_stats_update_pkts_tx(struct net_if *iface) in eth_stats_update_pkts_tx() argument [all …]
|
D | vlan.c | 34 static void vlan_iface_init(struct net_if *iface); 36 struct net_if *iface); 37 static enum net_verdict vlan_interface_recv(struct net_if *iface, 39 static int vlan_interface_send(struct net_if *iface, struct net_pkt *pkt); 41 static enum virtual_interface_caps vlan_get_capabilities(struct net_if *iface); 48 struct net_if *iface; member 92 vlan_context_data_##x.iface = NET_IF_GET(vlan_##x, x) 156 static struct vlan_context *get_vlan(struct net_if *iface, in get_vlan() argument 164 if (iface == NULL) { in get_vlan() 182 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in get_vlan() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/net/ |
D | net_if.h | 182 struct net_if *iface; member 209 struct net_if *iface; member 525 struct net_if *iface; member 723 static inline void net_if_lock(struct net_if *iface) in net_if_lock() argument 725 NET_ASSERT(iface); in net_if_lock() 727 (void)k_mutex_lock(&iface->lock, K_FOREVER); in net_if_lock() 730 static inline void net_if_unlock(struct net_if *iface) in net_if_unlock() argument 732 NET_ASSERT(iface); in net_if_unlock() 734 k_mutex_unlock(&iface->lock); in net_if_unlock() 737 static inline bool net_if_flag_is_set(struct net_if *iface, [all …]
|
D | net_offload.h | 144 static inline int net_offload_get(struct net_if *iface, in net_offload_get() argument 150 NET_ASSERT(iface); in net_offload_get() 151 NET_ASSERT(net_if_offload(iface)); in net_offload_get() 152 NET_ASSERT(net_if_offload(iface)->get); in net_offload_get() 154 return net_if_offload(iface)->get(family, type, ip_proto, context); in net_offload_get() 170 static inline int net_offload_bind(struct net_if *iface, in net_offload_bind() argument 175 NET_ASSERT(iface); in net_offload_bind() 176 NET_ASSERT(net_if_offload(iface)); in net_offload_bind() 177 NET_ASSERT(net_if_offload(iface)->bind); in net_offload_bind() 179 return net_if_offload(iface)->bind(context, addr, addrlen); in net_offload_bind() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/l2/virtual/ |
D | virtual.c | 23 static enum net_verdict virtual_recv(struct net_if *iface, in virtual_recv() argument 31 interfaces = &iface->config.virtual_interfaces; in virtual_recv() 77 static int virtual_send(struct net_if *iface, struct net_pkt *pkt) in virtual_send() argument 79 const struct virtual_interface_api *api = net_if_get_device(iface)->api; in virtual_send() 87 if (!net_if_is_up(iface)) { in virtual_send() 89 net_if_get_by_iface(iface)); in virtual_send() 99 ret = api->send(iface, pkt); in virtual_send() 103 net_stats_update_bytes_sent(iface, pkt_len); in virtual_send() 109 static int virtual_enable(struct net_if *iface, bool state) in virtual_enable() argument 114 virt = net_if_get_device(iface)->api; in virtual_enable() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/l2/wifi/ |
D | wifi_nm.c | 27 struct wifi_nm_instance *wifi_nm_get_instance_iface(struct net_if *iface) in wifi_nm_get_instance_iface() argument 29 if (!iface || !net_if_is_wifi(iface)) { in wifi_nm_get_instance_iface() 36 if (nm->mgd_ifaces[i].iface == iface) { in wifi_nm_get_instance_iface() 47 unsigned char wifi_nm_get_type_iface(struct net_if *iface) in wifi_nm_get_type_iface() argument 49 if (!iface || !net_if_is_wifi(iface)) { in wifi_nm_get_type_iface() 56 if (nm->mgd_ifaces[i].iface == iface) { in wifi_nm_get_type_iface() 67 bool wifi_nm_iface_is_sta(struct net_if *iface) in wifi_nm_iface_is_sta() argument 69 return wifi_nm_get_type_iface(iface) & (1 << WIFI_TYPE_STA); in wifi_nm_iface_is_sta() 72 bool wifi_nm_iface_is_sap(struct net_if *iface) in wifi_nm_iface_is_sap() argument 74 return wifi_nm_get_type_iface(iface) & (1 << WIFI_TYPE_SAP); in wifi_nm_iface_is_sap() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/lib/shell/ |
D | stats.c | 47 static void print_eth_stats(struct net_if *iface, struct net_stats_eth *data, in print_eth_stats() argument 50 PR("Statistics for Ethernet interface %p [%d]\n", iface, in print_eth_stats() 51 net_if_get_by_iface(iface)); in print_eth_stats() 115 iface, net_if_get_by_iface(iface)); in print_eth_stats() 130 static void print_ppp_stats(struct net_if *iface, struct net_stats_ppp *data, in print_ppp_stats() argument 147 static char *get_net_pkt_tc_stats_detail(struct net_if *iface, int i, in get_net_pkt_tc_stats_detail() argument 163 count = GET_STAT(iface, in get_net_pkt_tc_stats_detail() 168 count = GET_STAT(iface, in get_net_pkt_tc_stats_detail() 179 avg = (uint32_t)(GET_STAT(iface, in get_net_pkt_tc_stats_detail() 185 avg = (uint32_t)(GET_STAT(iface, in get_net_pkt_tc_stats_detail() [all …]
|
D | iface.c | 62 const struct shell *sh, struct net_if *iface) in print_supported_ethernet_capabilities() argument 64 enum ethernet_hw_caps caps = net_eth_get_hw_capabilities(iface); in print_supported_ethernet_capabilities() 95 static const char *iface_flags2str(struct net_if *iface) in iface_flags2str() argument 103 if (net_if_flag_is_set(iface, NET_IF_POINTOPOINT)) { in iface_flags2str() 108 if (net_if_flag_is_set(iface, NET_IF_PROMISC)) { in iface_flags2str() 113 if (net_if_flag_is_set(iface, NET_IF_NO_AUTO_START)) { in iface_flags2str() 121 if (net_if_flag_is_set(iface, NET_IF_FORWARD_MULTICASTS)) { in iface_flags2str() 126 if (net_if_flag_is_set(iface, NET_IF_IPV4)) { in iface_flags2str() 131 if (net_if_flag_is_set(iface, NET_IF_IPV6)) { in iface_flags2str() 136 if (net_if_flag_is_set(iface, NET_IF_IPV6_NO_ND)) { in iface_flags2str() [all …]
|
/Zephyr-Core-3.7.0/tests/net/dhcpv6/src/ |
D | main.c | 24 typedef void (*test_dhcpv6_pkt_fn_t)(struct net_if *iface, 27 typedef int (*test_dhcpv6_options_fn_t)(struct net_if *iface, 33 struct net_if *iface; member 42 static void test_iface_init(struct net_if *iface) in test_iface_init() argument 44 struct test_dhcpv6_context *ctx = net_if_get_device(iface)->data; in test_iface_init() 55 net_if_set_link_addr(iface, ctx->mac, sizeof(ctx->mac), NET_LINK_ETHERNET); in test_iface_init() 85 static void set_test_addr_on_iface(struct net_if *iface) in set_test_addr_on_iface() argument 87 memcpy(&test_ctx.iface->config.dhcpv6.addr, &test_addr, in set_test_addr_on_iface() 88 sizeof(test_ctx.iface->config.dhcpv6.addr)); in set_test_addr_on_iface() 89 memcpy(&test_ctx.iface->config.dhcpv6.prefix, &test_prefix, in set_test_addr_on_iface() [all …]
|
/Zephyr-Core-3.7.0/drivers/modem/ |
D | modem_iface_uart_interrupt.c | 31 static void modem_iface_uart_flush(struct modem_iface *iface) in modem_iface_uart_flush() argument 35 while (uart_fifo_read(iface->dev, &c, 1) > 0) { in modem_iface_uart_flush() 64 if (!ctx || !ctx->iface.iface_data) { in modem_iface_uart_isr() 68 data = (struct modem_iface_uart_data *)(ctx->iface.iface_data); in modem_iface_uart_isr() 70 while (uart_irq_update(ctx->iface.dev) && in modem_iface_uart_isr() 71 uart_irq_rx_ready(ctx->iface.dev)) { in modem_iface_uart_isr() 78 uart_irq_rx_disable(ctx->iface.dev); in modem_iface_uart_isr() 81 modem_iface_uart_flush(&ctx->iface); in modem_iface_uart_isr() 86 rx = uart_fifo_read(ctx->iface.dev, dst, partial_size); in modem_iface_uart_isr() 104 static int modem_iface_uart_read(struct modem_iface *iface, in modem_iface_uart_read() argument [all …]
|
/Zephyr-Core-3.7.0/tests/subsys/usb/uac2/src/ |
D | uac2_desc.c | 174 const struct usb_if_descriptor *iface; in ZTEST() local 190 iface = (const struct usb_if_descriptor *)*ptr; in ZTEST() 191 zassert_equal(iface->bLength, sizeof(struct usb_if_descriptor)); in ZTEST() 192 zassert_equal(iface->bDescriptorType, USB_DESC_INTERFACE); in ZTEST() 193 zassert_equal(iface->bInterfaceNumber, FIRST_INTERFACE_NUMBER); in ZTEST() 194 zassert_equal(iface->bAlternateSetting, 0); in ZTEST() 195 zassert_equal(iface->bNumEndpoints, 0); in ZTEST() 196 zassert_equal(iface->bInterfaceClass, AUDIO); in ZTEST() 197 zassert_equal(iface->bInterfaceSubClass, AUDIOCONTROL); in ZTEST() 198 zassert_equal(iface->bInterfaceProtocol, IP_VERSION_02_00); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/conn_mgr/ |
D | conn_mgr_connectivity.c | 17 int conn_mgr_if_connect(struct net_if *iface) in conn_mgr_if_connect() argument 23 LOG_DBG("iface %p connect", iface); in conn_mgr_if_connect() 25 binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_connect() 37 if (!net_if_is_admin_up(iface)) { in conn_mgr_if_connect() 38 status = net_if_up(iface); in conn_mgr_if_connect() 52 static void conn_mgr_conn_if_auto_admin_down(struct net_if *iface); 54 int conn_mgr_if_disconnect(struct net_if *iface) in conn_mgr_if_disconnect() argument 60 LOG_DBG("iface %p disconnect", iface); in conn_mgr_if_disconnect() 62 binding = conn_mgr_if_get_binding(iface); in conn_mgr_if_disconnect() 74 if (!net_if_is_admin_up(iface)) { in conn_mgr_if_disconnect() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/l2/ethernet/dsa/ |
D | dsa.c | 26 int dsa_register_master_tx(struct net_if *iface, dsa_send_t fn) in dsa_register_master_tx() argument 28 struct ethernet_context *ctx = net_if_l2_data(iface); in dsa_register_master_tx() 35 bool dsa_is_port_master(struct net_if *iface) in dsa_is_port_master() argument 38 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in dsa_is_port_master() 40 if (net_eth_get_hw_capabilities(iface) & in dsa_is_port_master() 49 bool dsa_is_port_master(struct net_if *iface) in dsa_is_port_master() argument 59 static int dsa_check_iface(struct net_if *iface) in dsa_check_iface() argument 61 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET)) { in dsa_check_iface() 65 if (!((net_eth_get_hw_capabilities(iface) & ETHERNET_DSA_MASTER_PORT) || in dsa_check_iface() 66 (net_eth_get_hw_capabilities(iface) & ETHERNET_DSA_SLAVE_PORT))) { in dsa_check_iface() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/l2/ppp/ |
D | ppp_stats.h | 16 static inline void ppp_stats_update_bytes_rx(struct net_if *iface, in ppp_stats_update_bytes_rx() argument 20 net_if_get_device(iface)->api; in ppp_stats_update_bytes_rx() 27 stats = api->get_stats(net_if_get_device(iface)); in ppp_stats_update_bytes_rx() 35 static inline void ppp_stats_update_bytes_tx(struct net_if *iface, in ppp_stats_update_bytes_tx() argument 39 net_if_get_device(iface)->api; in ppp_stats_update_bytes_tx() 46 stats = api->get_stats(net_if_get_device(iface)); in ppp_stats_update_bytes_tx() 54 static inline void ppp_stats_update_pkts_rx(struct net_if *iface) in ppp_stats_update_pkts_rx() argument 57 net_if_get_device(iface)->api; in ppp_stats_update_pkts_rx() 64 stats = api->get_stats(net_if_get_device(iface)); in ppp_stats_update_pkts_rx() 72 static inline void ppp_stats_update_pkts_tx(struct net_if *iface) in ppp_stats_update_pkts_tx() argument [all …]
|
D | ppp_l2.c | 41 static void ppp_update_rx_stats(struct net_if *iface, in ppp_update_rx_stats() argument 45 ppp_stats_update_bytes_rx(iface, length); in ppp_update_rx_stats() 46 ppp_stats_update_pkts_rx(iface); in ppp_update_rx_stats() 50 static void ppp_update_tx_stats(struct net_if *iface, in ppp_update_tx_stats() argument 54 ppp_stats_update_bytes_tx(iface, length); in ppp_update_tx_stats() 55 ppp_stats_update_pkts_tx(iface); in ppp_update_tx_stats() 60 typedef enum net_verdict (*ppp_l2_callback_t)(struct net_if *iface, 71 static enum net_verdict process_ppp_msg(struct net_if *iface, in process_ppp_msg() argument 74 struct ppp_context *ctx = net_if_l2_data(iface); in process_ppp_msg() 103 return proto->handler(ctx, iface, pkt); in process_ppp_msg() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/lib/dhcpv6/ |
D | dhcpv6.c | 66 static void dhcpv6_generate_tid(struct net_if *iface) in dhcpv6_generate_tid() argument 68 sys_rand_get(iface->config.dhcpv6.tid, sizeof(iface->config.dhcpv6.tid)); in dhcpv6_generate_tid() 71 static void dhcvp6_update_deadlines(struct net_if *iface, int64_t now, in dhcvp6_update_deadlines() argument 127 if (iface->config.dhcpv6.t1 > t1_abs) { in dhcvp6_update_deadlines() 128 iface->config.dhcpv6.t1 = t1_abs; in dhcvp6_update_deadlines() 131 if (iface->config.dhcpv6.t2 > t2_abs) { in dhcvp6_update_deadlines() 132 iface->config.dhcpv6.t2 = t2_abs; in dhcvp6_update_deadlines() 135 if (iface->config.dhcpv6.expire < expire_abs) { in dhcvp6_update_deadlines() 136 iface->config.dhcpv6.expire = expire_abs; in dhcvp6_update_deadlines() 140 static void dhcpv6_set_timeout(struct net_if *iface, uint64_t timeout) in dhcpv6_set_timeout() argument [all …]
|
/Zephyr-Core-3.7.0/samples/boards/nxp_s32/netc/src/ |
D | main.c | 20 static int setup_iface(struct net_if *iface, const char *ipv6_addr, in setup_iface() argument 27 LOG_INF("Configuring iface %d (%p)", net_if_get_by_iface(iface), iface); in setup_iface() 29 if (IS_ENABLED(CONFIG_NET_IPV6) && net_if_flag_is_set(iface, NET_IF_IPV6)) { in setup_iface() 35 ifaddr = net_if_ipv6_addr_add(iface, &addr6, NET_ADDR_MANUAL, 0); in setup_iface() 37 LOG_ERR("Cannot add %s to interface %p", ipv6_addr, iface); in setup_iface() 43 if (IS_ENABLED(CONFIG_NET_IPV4) && net_if_flag_is_set(iface, NET_IF_IPV4)) { in setup_iface() 49 ifaddr = net_if_ipv4_addr_add(iface, &addr4, NET_ADDR_MANUAL, 0); in setup_iface() 51 LOG_ERR("Cannot add %s to interface %p", ipv4_addr, iface); in setup_iface() 64 net_if_ipv4_set_netmask_by_addr(iface, &addr4, &nm); in setup_iface() 72 uint32_t mgmt_event, struct net_if *iface) in iface_up_handler() argument [all …]
|
/Zephyr-Core-3.7.0/drivers/ethernet/ |
D | eth_raw.c | 17 __weak void ethernet_init(struct net_if *iface) in ethernet_init() argument 19 ARG_UNUSED(iface); in ethernet_init() 22 __weak void net_eth_carrier_on(struct net_if *iface) in net_eth_carrier_on() argument 24 ARG_UNUSED(iface); in net_eth_carrier_on() 27 __weak void net_eth_carrier_off(struct net_if *iface) in net_eth_carrier_off() argument 29 ARG_UNUSED(iface); in net_eth_carrier_off() 32 __weak int net_recv_data(struct net_if *iface, struct net_pkt *pkt) in net_recv_data() argument 34 ARG_UNUSED(iface); in net_recv_data() 40 __weak void net_if_carrier_on(struct net_if *iface) in net_if_carrier_on() argument 42 ARG_UNUSED(iface); in net_if_carrier_on() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/lib/dhcpv4/ |
D | dhcpv4.c | 234 static struct net_pkt *dhcpv4_create_message(struct net_if *iface, uint8_t type, in dhcpv4_create_message() argument 287 pkt = net_pkt_alloc_with_buffer(iface, size, AF_INET, in dhcpv4_create_message() 307 msg->hlen = net_if_get_link_addr(iface)->len; in dhcpv4_create_message() 308 msg->xid = htonl(iface->config.dhcpv4.xid); in dhcpv4_create_message() 320 memcpy(msg->chaddr, net_if_get_link_addr(iface)->addr, in dhcpv4_create_message() 321 net_if_get_link_addr(iface)->len); in dhcpv4_create_message() 335 !dhcpv4_add_server_id(pkt, &iface->config.dhcpv4.server_id)) || in dhcpv4_create_message() 337 !dhcpv4_add_req_ipaddr(pkt, &iface->config.dhcpv4.requested_ip))) { in dhcpv4_create_message() 429 static uint32_t dhcpv4_request_timeleft(struct net_if *iface, int64_t now) in dhcpv4_request_timeleft() argument 431 uint32_t request_time = iface->config.dhcpv4.request_time; in dhcpv4_request_timeleft() [all …]
|
/Zephyr-Core-3.7.0/samples/net/lldp/src/ |
D | main.c | 25 static void set_optional_tlv(struct net_if *iface) in set_optional_tlv() argument 32 net_lldp_config_optional(iface, (uint8_t *)&tlv, sizeof(tlv)); in set_optional_tlv() 41 static void iface_cb(struct net_if *iface, void *user_data) in iface_cb() argument 45 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb() 50 ud->first = iface; in iface_cb() 55 ud->second = iface; in iface_cb() 61 struct net_if *iface, in setup_iface() argument 81 ifaddr = net_if_ipv6_addr_add(iface, &addr6, NET_ADDR_MANUAL, 0); in setup_iface() 83 LOG_ERR("Cannot add %s to interface %p", ipv6_addr, iface); in setup_iface() 92 ifaddr = net_if_ipv4_addr_add(iface, &addr4, NET_ADDR_MANUAL, 0); in setup_iface() [all …]
|