/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() 41 static inline void net_stats_update_ip_errors_protoerr(struct net_if *iface) 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() 51 static inline void net_stats_update_bytes_recv(struct net_if *iface, in net_stats_update_bytes_recv() 57 static inline void net_stats_update_bytes_sent(struct net_if *iface, in net_stats_update_bytes_sent() 63 #define net_stats_update_processing_error(iface) argument [all …]
|
D | net_if.c | 93 struct net_if *iface; member 100 struct net_if *iface; member 161 struct net_if *iface; in z_vrfy_net_if_get_by_index() local 216 static bool net_if_tx(struct net_if *iface, struct net_pkt *pkt) in net_if_tx() 332 struct net_if *iface; in net_process_tx_packet() local 345 void net_if_queue_tx(struct net_if *iface, struct net_pkt *pkt) in net_if_queue_tx() 389 void net_if_stats_reset(struct net_if *iface) in net_if_stats_reset() 416 static inline void init_iface(struct net_if *iface) in init_iface() 452 enum net_verdict net_if_send_data(struct net_if *iface, struct net_pkt *pkt) in net_if_send_data() 558 int net_if_set_link_addr_locked(struct net_if *iface, in net_if_set_link_addr_locked() [all …]
|
D | net_stats.c | 72 static inline void stats(struct net_if *iface) in stats() 228 void net_print_statistics_iface(struct net_if *iface) in net_print_statistics_iface() 236 static void iface_cb(struct net_if *iface, void *user_data) in iface_cb() 255 static int net_stats_get(uint32_t mgmt_request, struct net_if *iface, in net_stats_get() 406 void net_stats_reset(struct net_if *iface) in net_stats_reset() 418 static void register_prometheus_metrics(struct net_if *iface) in register_prometheus_metrics() 489 struct net_if *iface = user_data; in net_stats_prometheus_scrape() local 569 void net_stats_prometheus_init(struct net_if *iface) in net_stats_prometheus_init()
|
/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() 36 static inline void eth_stats_update_bytes_tx(struct net_if *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() 73 static inline void eth_stats_update_pkts_tx(struct net_if *iface) in eth_stats_update_pkts_tx() 91 static inline void eth_stats_update_broadcast_rx(struct net_if *iface) in eth_stats_update_broadcast_rx() 109 static inline void eth_stats_update_broadcast_tx(struct net_if *iface) in eth_stats_update_broadcast_tx() 127 static inline void eth_stats_update_multicast_rx(struct net_if *iface) in eth_stats_update_multicast_rx() 145 static inline void eth_stats_update_multicast_tx(struct net_if *iface) in eth_stats_update_multicast_tx() 164 static inline void eth_stats_update_errors_rx(struct net_if *iface) in eth_stats_update_errors_rx() 188 static inline void eth_stats_update_errors_tx(struct net_if *iface) in eth_stats_update_errors_tx() [all …]
|
D | vlan.c | 48 struct net_if *iface; member 155 static struct vlan_context *get_vlan(struct net_if *iface, in get_vlan() 211 struct net_if *net_eth_get_vlan_iface(struct net_if *iface, uint16_t tag) in net_eth_get_vlan_iface() 223 struct net_if *net_eth_get_vlan_main(struct net_if *iface) in net_eth_get_vlan_main() 236 struct net_if *iface) in enable_vlan_iface() 267 struct net_if *iface) in disable_vlan_iface() 288 static bool is_vlan_enabled_for_iface(struct net_if *iface) in is_vlan_enabled_for_iface() 309 struct net_if *iface) in net_eth_is_vlan_enabled() 316 uint16_t net_eth_get_vlan_tag(struct net_if *iface) in net_eth_get_vlan_tag() 338 bool net_eth_is_vlan_interface(struct net_if *iface) in net_eth_is_vlan_interface() [all …]
|
D | ethernet_mgmt.c | 29 struct net_if *iface, in ethernet_set_config() 262 struct net_if *iface, in ethernet_get_config() 495 void ethernet_mgmt_raise_carrier_on_event(struct net_if *iface) in ethernet_mgmt_raise_carrier_on_event() 500 void ethernet_mgmt_raise_carrier_off_event(struct net_if *iface) in ethernet_mgmt_raise_carrier_off_event() 505 void ethernet_mgmt_raise_vlan_enabled_event(struct net_if *iface, uint16_t tag) in ethernet_mgmt_raise_vlan_enabled_event() 516 void ethernet_mgmt_raise_vlan_disabled_event(struct net_if *iface, uint16_t tag) in ethernet_mgmt_raise_vlan_disabled_event()
|
D | ethernet.c | 121 static inline void ethernet_update_length(struct net_if *iface, in ethernet_update_length() 152 static void ethernet_update_rx_stats(struct net_if *iface, in ethernet_update_rx_stats() 167 static inline bool eth_is_vlan_tag_stripped(struct net_if *iface) in eth_is_vlan_tag_stripped() 190 static void ethernet_mcast_monitor_cb(struct net_if *iface, const struct net_addr *addr, in ethernet_mcast_monitor_cb() 235 static enum net_verdict ethernet_recv(struct net_if *iface, in ethernet_recv() 456 static struct net_pkt *ethernet_ll_prepare_on_ipv4(struct net_if *iface, in ethernet_ll_prepare_on_ipv4() 521 static inline size_t get_reserve_ll_header_size(struct net_if *iface) in get_reserve_ll_header_size() 548 struct net_if *iface, in ethernet_fill_header() 646 static void ethernet_update_tx_stats(struct net_if *iface, struct net_pkt *pkt) in ethernet_update_tx_stats() 680 static int ethernet_send(struct net_if *iface, struct net_pkt *pkt) in ethernet_send() [all …]
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_raw.c | 17 __weak void ethernet_init(struct net_if *iface) in ethernet_init() 22 __weak void net_eth_carrier_on(struct net_if *iface) in net_eth_carrier_on() 27 __weak void net_eth_carrier_off(struct net_if *iface) in net_eth_carrier_off() 32 __weak int net_recv_data(struct net_if *iface, struct net_pkt *pkt) in net_recv_data() 40 __weak void net_if_carrier_on(struct net_if *iface) in net_if_carrier_on() 45 __weak void net_if_carrier_off(struct net_if *iface) in net_if_carrier_off()
|
/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() 35 static inline void ppp_stats_update_bytes_tx(struct net_if *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() 72 static inline void ppp_stats_update_pkts_tx(struct net_if *iface) in ppp_stats_update_pkts_tx() 90 static inline void ppp_stats_update_drop_rx(struct net_if *iface) in ppp_stats_update_drop_rx() 108 static inline void ppp_stats_update_fcs_error_rx(struct net_if *iface) in ppp_stats_update_fcs_error_rx() 128 #define ppp_stats_update_bytes_rx(iface, bytes) argument 129 #define ppp_stats_update_bytes_tx(iface, bytes) argument 130 #define ppp_stats_update_pkts_rx(iface) argument 131 #define ppp_stats_update_pkts_tx(iface) argument [all …]
|
D | ppp_mgmt.c | 9 void ppp_mgmt_raise_carrier_on_event(struct net_if *iface) in ppp_mgmt_raise_carrier_on_event() 14 void ppp_mgmt_raise_carrier_off_event(struct net_if *iface) in ppp_mgmt_raise_carrier_off_event() 19 void ppp_mgmt_raise_phase_running_event(struct net_if *iface) in ppp_mgmt_raise_phase_running_event() 24 void ppp_mgmt_raise_phase_dead_event(struct net_if *iface) in ppp_mgmt_raise_phase_dead_event()
|
D | ppp_l2.c | 41 static void ppp_update_rx_stats(struct net_if *iface, in ppp_update_rx_stats() 50 static void ppp_update_tx_stats(struct net_if *iface, in ppp_update_tx_stats() 71 static enum net_verdict process_ppp_msg(struct net_if *iface, in process_ppp_msg() 130 static enum net_verdict ppp_recv(struct net_if *iface, in ppp_recv() 166 static int ppp_send(struct net_if *iface, struct net_pkt *pkt) in ppp_send() 193 static enum net_l2_flags ppp_flags(struct net_if *iface) in ppp_flags() 211 static int ppp_up(struct net_if *iface) in ppp_up() 268 static int ppp_down(struct net_if *iface) in ppp_down() 293 static int ppp_enable(struct net_if *iface, bool state) in ppp_enable() 320 struct net_if **iface) in get_ppp_context() [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() 36 static inline int ieee802154_radio_cca(struct net_if *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() 60 static inline int ieee802154_radio_set_tx_power(struct net_if *iface, int16_t dbm) in ieee802154_radio_set_tx_power() 72 static inline int ieee802154_radio_tx(struct net_if *iface, enum ieee802154_tx_mode mode, in ieee802154_radio_tx() 85 static inline int ieee802154_radio_start(struct net_if *iface) in ieee802154_radio_start() 97 static inline int ieee802154_radio_stop(struct net_if *iface) in ieee802154_radio_stop() 109 static inline int ieee802154_radio_attr_get(struct net_if *iface, in ieee802154_radio_attr_get() 129 static inline void ieee802154_radio_filter_ieee_addr(struct net_if *iface, uint8_t *ieee_addr) in ieee802154_radio_filter_ieee_addr() 148 static inline void ieee802154_radio_filter_short_addr(struct net_if *iface, uint16_t short_addr) in ieee802154_radio_filter_short_addr() [all …]
|
D | ieee802154_mgmt.c | 35 enum net_verdict ieee802154_handle_beacon(struct net_if *iface, in ieee802154_handle_beacon() 77 static int ieee802154_cancel_scan(uint32_t mgmt_request, struct net_if *iface, in ieee802154_cancel_scan() 97 static int ieee802154_scan(uint32_t mgmt_request, struct net_if *iface, in ieee802154_scan() 236 static inline void update_net_if_link_addr(struct net_if *iface, struct ieee802154_context *ctx) in update_net_if_link_addr() 249 static inline void set_linkaddr_to_ext_addr(struct net_if *iface, struct ieee802154_context *ctx) in set_linkaddr_to_ext_addr() 258 static inline void set_association(struct net_if *iface, struct ieee802154_context *ctx, in set_association() 282 static inline void remove_association(struct net_if *iface, struct ieee802154_context *ctx) in remove_association() 313 enum net_verdict ieee802154_handle_mac_command(struct net_if *iface, in ieee802154_handle_mac_command() 440 static int ieee802154_associate(uint32_t mgmt_request, struct net_if *iface, in ieee802154_associate() 634 static int ieee802154_disassociate(uint32_t mgmt_request, struct net_if *iface, in ieee802154_disassociate() [all …]
|
D | ieee802154_shell.c | 35 struct net_if *iface = net_if_get_ieee802154(); in cmd_ieee802154_ack() local 81 struct net_if *iface = net_if_get_ieee802154(); in cmd_ieee802154_associate() local 134 struct net_if *iface = net_if_get_ieee802154(); in cmd_ieee802154_disassociate() local 212 uint32_t mgmt_event, struct net_if *iface) in scan_result_cb() 226 struct net_if *iface = net_if_get_ieee802154(); in cmd_ieee802154_scan() local 304 struct net_if *iface = net_if_get_ieee802154(); in cmd_ieee802154_set_chan() local 337 struct net_if *iface = net_if_get_ieee802154(); in cmd_ieee802154_get_chan() local 366 struct net_if *iface = net_if_get_ieee802154(); in cmd_ieee802154_set_pan_id() local 401 struct net_if *iface = net_if_get_ieee802154(); in cmd_ieee802154_get_pan_id() local 430 struct net_if *iface = net_if_get_ieee802154(); in cmd_ieee802154_set_ext_addr() local [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() 47 unsigned char wifi_nm_get_type_iface(struct net_if *iface) in wifi_nm_get_type_iface() 67 bool wifi_nm_iface_is_sta(struct net_if *iface) in wifi_nm_iface_is_sta() 72 bool wifi_nm_iface_is_sap(struct net_if *iface) in wifi_nm_iface_is_sap() 77 int wifi_nm_register_mgd_iface(struct wifi_nm_instance *nm, struct net_if *iface) in wifi_nm_register_mgd_iface() 106 enum wifi_nm_iface_type type, struct net_if *iface) in wifi_nm_register_mgd_type_iface() 136 int wifi_nm_unregister_mgd_iface(struct wifi_nm_instance *nm, struct net_if *iface) in wifi_nm_unregister_mgd_iface()
|
D | wifi_mgmt.c | 322 static const struct wifi_mgmt_ops *const get_wifi_api(struct net_if *iface) in get_wifi_api() 337 static int wifi_connect(uint32_t mgmt_request, struct net_if *iface, in wifi_connect() 387 static void scan_result_cb(struct net_if *iface, int status, in scan_result_cb() 411 static int wifi_scan(uint32_t mgmt_request, struct net_if *iface, in wifi_scan() 436 static int wifi_disconnect(uint32_t mgmt_request, struct net_if *iface, in wifi_disconnect() 451 void wifi_mgmt_raise_connect_result_event(struct net_if *iface, int status) in wifi_mgmt_raise_connect_result_event() 462 void wifi_mgmt_raise_disconnect_result_event(struct net_if *iface, int status) in wifi_mgmt_raise_disconnect_result_event() 474 static int wifi_start_roaming(uint32_t mgmt_request, struct net_if *iface, in wifi_start_roaming() 512 static int wifi_neighbor_rep_complete(uint32_t mgmt_request, struct net_if *iface, in wifi_neighbor_rep_complete() 537 void wifi_mgmt_raise_neighbor_rep_recv_event(struct net_if *iface, char *inbuf, size_t buf_len) in wifi_mgmt_raise_neighbor_rep_recv_event() [all …]
|
/Zephyr-latest/subsys/net/l2/virtual/ |
D | virtual.c | 23 static enum net_verdict virtual_recv(struct net_if *iface, in virtual_recv() 77 static int virtual_send(struct net_if *iface, struct net_pkt *pkt) in virtual_send() 109 static int virtual_enable(struct net_if *iface, bool state) in virtual_enable() 161 enum net_l2_flags virtual_flags(struct net_if *iface) in virtual_flags() 172 static int virtual_l2_alloc(struct net_if *iface, struct net_pkt *pkt, in virtual_l2_alloc() 193 struct net_if *iface) in net_virtual_interface_attach() 278 void net_virtual_disable(struct net_if *iface) in net_virtual_disable() 296 void net_virtual_enable(struct net_if *iface) in net_virtual_enable() 314 struct net_if *net_virtual_get_iface(struct net_if *iface) in net_virtual_get_iface() 331 char *net_virtual_get_name(struct net_if *iface, char *buf, size_t len) in net_virtual_get_name() [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() 35 bool dsa_is_port_master(struct net_if *iface) in dsa_is_port_master() 49 bool dsa_is_port_master(struct net_if *iface) in dsa_is_port_master() 59 static int dsa_check_iface(struct net_if *iface) in dsa_check_iface() 74 int dsa_register_recv_callback(struct net_if *iface, dsa_net_recv_cb_t cb) in dsa_register_recv_callback() 92 struct net_if *dsa_net_recv(struct net_if *iface, struct net_pkt **pkt) in dsa_net_recv() 145 struct net_if *iface_master, *iface; in dsa_tx() local 186 struct net_if *dsa_get_slave_port(struct net_if *iface, int slave_num) in dsa_get_slave_port() 206 int dsa_switch_read(struct net_if *iface, uint16_t reg_addr, uint8_t *value) in dsa_switch_read() 216 int dsa_switch_write(struct net_if *iface, uint16_t reg_addr, uint8_t value) in dsa_switch_write() [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() 31 static inline int custom_l2_send(struct net_if *iface, struct net_pkt *pkt) in custom_l2_send() 38 static int custom_l2_enable(struct net_if *iface, bool state) in custom_l2_enable() 45 static enum net_l2_flags custom_l2_flags(struct net_if *iface) in custom_l2_flags() 53 static void dummy_iface_init(struct net_if *iface) in dummy_iface_init() 75 struct net_if *iface = net_if_get_first_by_type( in ZTEST() local 99 struct net_if *iface = net_if_get_first_by_type( in ZTEST() local 122 struct net_if *iface = net_if_get_first_by_type( in ZTEST() local 140 struct net_if *iface = net_if_get_first_by_type( in ZTEST() local
|
/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() 54 int conn_mgr_if_disconnect(struct net_if *iface) in conn_mgr_if_disconnect() 96 bool conn_mgr_if_is_bound(struct net_if *iface) in conn_mgr_if_is_bound() 103 int conn_mgr_if_get_opt(struct net_if *iface, int optname, void *optval, size_t *optlen) in conn_mgr_if_get_opt() 139 int conn_mgr_if_set_opt(struct net_if *iface, int optname, const void *optval, size_t optlen) in conn_mgr_if_set_opt() 168 int conn_mgr_if_set_flag(struct net_if *iface, enum conn_mgr_if_flag flag, bool value) in conn_mgr_if_set_flag() 186 bool conn_mgr_if_get_flag(struct net_if *iface, enum conn_mgr_if_flag flag) in conn_mgr_if_get_flag() 202 int conn_mgr_if_get_timeout(struct net_if *iface) in conn_mgr_if_get_timeout() 220 int conn_mgr_if_set_timeout(struct net_if *iface, int timeout) in conn_mgr_if_set_timeout() 244 static void conn_mgr_conn_handle_iface_admin_up(struct net_if *iface) in conn_mgr_conn_handle_iface_admin_up() [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() 128 static void iface_cb(struct net_if *iface, void *user_data) in iface_cb() 139 static void print_eth_stats(struct net_if *iface, struct net_stats_eth *data) in print_eth_stats() 154 static void eth_iface_cb(struct net_if *iface, void *user_data) in eth_iface_cb()
|
/Zephyr-latest/subsys/net/l2/dummy/ |
D | dummy.c | 17 static inline enum net_verdict dummy_recv(struct net_if *iface, in dummy_recv() 33 static inline int dummy_send(struct net_if *iface, struct net_pkt *pkt) in dummy_send() 51 static inline int dummy_enable(struct net_if *iface, bool state) in dummy_enable() 73 static enum net_l2_flags dummy_flags(struct net_if *iface) in dummy_flags()
|
/Zephyr-latest/samples/net/sockets/echo_server/src/ |
D | tunnel.c | 22 bool is_tunnel(struct net_if *iface) in is_tunnel() 33 static void iface_cb(struct net_if *iface, void *user_data) in iface_cb() 43 static int setup_iface(struct net_if *iface, const char *ipaddr) in setup_iface() 105 struct net_if *iface; in init_tunnel() local 116 struct net_if *iface; in init_tunnel() local
|
/Zephyr-latest/subsys/net/lib/config/ |
D | init.c | 58 static void setup_dhcpv4(struct net_if *iface) in setup_dhcpv4() 65 static void print_dhcpv4_info(struct net_if *iface) in print_dhcpv4_info() 106 struct net_if *iface) in ipv4_addr_add_handler() 123 static void setup_vlan(struct net_if *iface) in setup_vlan() 142 static void setup_ipv4(struct net_if *iface) in setup_ipv4() 223 static void setup_dhcpv6(struct net_if *iface) in setup_dhcpv6() 247 uint32_t mgmt_event, struct net_if *iface) in ipv6_event_handler() 310 static void setup_ipv6(struct net_if *iface, uint32_t flags) in setup_ipv6() 366 uint32_t mgmt_event, struct net_if *iface) in iface_up_handler() 377 static bool check_interface(struct net_if *iface) in check_interface() [all …]
|
/Zephyr-latest/subsys/net/l2/ethernet/lldp/ |
D | lldp.c | 32 static int lldp_find(struct ethernet_context *ctx, struct net_if *iface) in lldp_find() 199 struct net_if *iface, in lldp_start_timer() 218 static int lldp_check_iface(struct net_if *iface) in lldp_check_iface() 231 static int lldp_start(struct net_if *iface, uint32_t mgmt_event) in lldp_start() 267 enum net_verdict net_lldp_recv(struct net_if *iface, struct net_pkt *pkt) in net_lldp_recv() 293 int net_lldp_register_callback(struct net_if *iface, net_lldp_recv_cb_t recv_cb) in net_lldp_register_callback() 316 uint32_t mgmt_event, struct net_if *iface) in iface_event_handler() 321 static void iface_cb(struct net_if *iface, void *user_data) in iface_cb() 332 int net_lldp_config(struct net_if *iface, const struct net_lldpdu *lldpdu) in net_lldp_config() 347 int net_lldp_config_optional(struct net_if *iface, const uint8_t *tlv, size_t len) in net_lldp_config_optional() [all …]
|