/Zephyr-latest/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_if.c | 93 struct net_if *iface; member 100 struct net_if *iface; member 133 "iface %d (%p)", \ 161 struct net_if *iface; in z_vrfy_net_if_get_by_index() local 163 iface = net_if_get_by_index(index); in z_vrfy_net_if_get_by_index() 164 if (!iface) { in z_vrfy_net_if_get_by_index() 168 if (!k_object_is_valid(iface, K_OBJ_NET_IF)) { in z_vrfy_net_if_get_by_index() 172 return iface; in z_vrfy_net_if_get_by_index() 216 static bool net_if_tx(struct net_if *iface, struct net_pkt *pkt) in net_if_tx() argument 253 if (net_if_flag_is_set(iface, NET_IF_LOWER_UP)) { in net_if_tx() [all …]
|
D | net_stats.c | 72 static inline void stats(struct net_if *iface) in stats() argument 80 if (iface) { in stats() 81 NET_INFO("Interface %p [%d]", iface, in stats() 82 net_if_get_by_iface(iface)); in stats() 89 GET_STAT(iface, ipv6.recv), in stats() 90 GET_STAT(iface, ipv6.sent), in stats() 91 GET_STAT(iface, ipv6.drop), in stats() 92 GET_STAT(iface, ipv6.forwarded)); in stats() 95 GET_STAT(iface, ipv6_nd.recv), in stats() 96 GET_STAT(iface, ipv6_nd.sent), in stats() [all …]
|
/Zephyr-latest/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-latest/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 115 virt = net_if_get_device(iface)->api; in virtual_enable() [all …]
|
/Zephyr-latest/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) & BIT(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) & BIT(WIFI_TYPE_SAP); in wifi_nm_iface_is_sap() [all …]
|
/Zephyr-latest/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) 155 static struct vlan_context *get_vlan(struct net_if *iface, in get_vlan() argument 163 if (iface == NULL) { in get_vlan() 181 if (net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in get_vlan() [all …]
|
D | bridge.c | 49 static void iface_cb(struct net_if *iface, void *user_data) in iface_cb() argument 55 if (net_if_l2(iface) != &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb() 59 caps = net_virtual_get_iface_capabilities(iface); in iface_cb() 64 ctx = net_if_get_device(iface)->data; in iface_cb() 89 int eth_bridge_iface_add(struct net_if *br, struct net_if *iface) in eth_bridge_iface_add() argument 92 struct ethernet_context *eth_ctx = net_if_l2_data(iface); in eth_bridge_iface_add() 97 if (net_if_l2(iface) != &NET_L2_GET_NAME(ETHERNET) || in eth_bridge_iface_add() 98 !(net_eth_get_hw_capabilities(iface) & ETHERNET_PROMISC_MODE)) { in eth_bridge_iface_add() 116 ctx->eth_iface[i] = iface; in eth_bridge_iface_add() 137 ret = net_eth_promisc_mode(iface, true); in eth_bridge_iface_add() [all …]
|
/Zephyr-latest/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 …]
|
D | events_handler.c | 23 struct net_if *iface) in conn_mgr_iface_events_handler() argument 27 NET_DBG("%s event 0x%x received on iface %d (%p)", "Iface", mgmt_event, in conn_mgr_iface_events_handler() 28 net_if_get_by_iface(iface), iface); in conn_mgr_iface_events_handler() 34 idx = net_if_get_by_iface(iface) - 1; in conn_mgr_iface_events_handler() 36 NET_DBG("Iface index %u", idx); in conn_mgr_iface_events_handler() 59 struct net_if *iface) in conn_mgr_ipv6_events_handler() argument 63 NET_DBG("%s event 0x%x received on iface %d (%p)", "IPv6", mgmt_event, in conn_mgr_ipv6_events_handler() 64 net_if_get_by_iface(iface), iface); in conn_mgr_ipv6_events_handler() 70 idx = net_if_get_by_iface(iface) - 1; in conn_mgr_ipv6_events_handler() 72 NET_DBG("Iface index %u", idx); in conn_mgr_ipv6_events_handler() [all …]
|
/Zephyr-latest/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-latest/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-latest/drivers/modem/ |
D | modem_iface_uart_interrupt.c | 27 * @param iface: modem interface. 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() [all …]
|
/Zephyr-latest/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-latest/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 …]
|
/Zephyr-latest/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-latest/subsys/net/lib/dhcpv6/ |
D | dhcpv6.c | 68 static void dhcpv6_generate_tid(struct net_if *iface) in dhcpv6_generate_tid() argument 70 sys_rand_get(iface->config.dhcpv6.tid, sizeof(iface->config.dhcpv6.tid)); in dhcpv6_generate_tid() 73 static void dhcvp6_update_deadlines(struct net_if *iface, int64_t now, in dhcvp6_update_deadlines() argument 129 if (iface->config.dhcpv6.t1 > t1_abs) { in dhcvp6_update_deadlines() 130 iface->config.dhcpv6.t1 = t1_abs; in dhcvp6_update_deadlines() 133 if (iface->config.dhcpv6.t2 > t2_abs) { in dhcvp6_update_deadlines() 134 iface->config.dhcpv6.t2 = t2_abs; in dhcvp6_update_deadlines() 137 if (iface->config.dhcpv6.expire < expire_abs) { in dhcvp6_update_deadlines() 138 iface->config.dhcpv6.expire = expire_abs; in dhcvp6_update_deadlines() 142 static void dhcpv6_set_timeout(struct net_if *iface, uint64_t timeout) in dhcpv6_set_timeout() argument [all …]
|
/Zephyr-latest/tests/net/ieee802154/custom_l2/src/ |
D | main.c | 23 static inline enum net_verdict custom_l2_recv(struct net_if *iface, in custom_l2_recv() argument 31 static inline int custom_l2_send(struct net_if *iface, struct net_pkt *pkt) in custom_l2_send() argument 38 static int custom_l2_enable(struct net_if *iface, bool state) in custom_l2_enable() argument 45 static enum net_l2_flags custom_l2_flags(struct net_if *iface) in custom_l2_flags() argument 53 static void dummy_iface_init(struct net_if *iface) in dummy_iface_init() argument 58 net_if_set_link_addr(iface, mac, 8, NET_LINK_IEEE802154); in dummy_iface_init() 75 struct net_if *iface = net_if_get_first_by_type( in ZTEST() local 78 zassert_not_null(net_if_l2(iface), "No L2 found"); in ZTEST() 79 zassert_not_null(net_if_l2(iface)->send, "No send() found"); in ZTEST() 81 tx_pkt = net_pkt_alloc_with_buffer(iface, sizeof(TEST_PAYLOAD), in ZTEST() [all …]
|
/Zephyr-latest/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-latest/include/zephyr/net/ |
D | conn_mgr_monitor.h | 40 * @brief Mark an iface to be ignored by conn_mgr. 42 * Ignoring an iface forces conn_mgr to consider it unready/disconnected. 44 * This means that events related to the iface connecting/disconnecting will not be fired, 45 * and if the iface was connected before being ignored, events will be fired as though it 48 * @param iface iface to be ignored. 50 void conn_mgr_ignore_iface(struct net_if *iface); 53 * @brief Watch (stop ignoring) an iface. 55 * conn_mgr will no longer be forced to consider the iface unreadly/disconnected. 57 * Events related to the iface connecting/disconnecting will no longer be blocked, 58 * and if the iface was connected before being watched, events will be fired as though [all …]
|
/Zephyr-latest/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-latest/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 37 /* First check if iface points to ETH interface */ in dsa_is_port_master() 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() [all …]
|
/Zephyr-latest/tests/net/offloaded_netdev/src/ |
D | main.c | 37 static void sock_offload_l2_iface_init(struct net_if *iface) in sock_offload_l2_iface_init() argument 40 * or the iface will not be recognized as offloaded in sock_offload_l2_iface_init() 42 net_if_socket_offload_set(iface, offload_socket); in sock_offload_l2_iface_init() 43 net_if_flag_set(iface, NET_IF_NO_AUTO_START); in sock_offload_l2_iface_init() 44 net_if_flag_set(iface, NET_IF_IPV4); in sock_offload_l2_iface_init() 45 net_if_flag_set(iface, NET_IF_IPV6); in sock_offload_l2_iface_init() 49 static void net_offload_l2_iface_init(struct net_if *iface) in net_offload_l2_iface_init() argument 54 iface->if_dev->offload = &net_offload_api; in net_offload_l2_iface_init() 55 net_if_flag_set(iface, NET_IF_NO_AUTO_START); in net_offload_l2_iface_init() 56 net_if_flag_set(iface, NET_IF_IPV4); in net_offload_l2_iface_init() [all …]
|