/third_party/lwip/src/include/lwip/ |
D | netif.h | 152 struct netif; 168 typedef err_t (*netif_init_fn)(struct netif *netif); 178 typedef err_t (*netif_input_fn)(struct pbuf *p, struct netif *inp); 189 typedef err_t (*netif_output_fn)(struct netif *netif, struct pbuf *p, 202 typedef err_t (*netif_output_ip6_fn)(struct netif *netif, struct pbuf *p, 212 typedef err_t (*netif_linkoutput_fn)(struct netif *netif, struct pbuf *p); 214 typedef void (*netif_status_callback_fn)(struct netif *netif); 217 typedef err_t (*netif_igmp_mac_filter_fn)(struct netif *netif, 222 typedef err_t (*netif_mld_mac_filter_fn)(struct netif *netif, 233 #define netif_set_client_data(netif, id, data) netif_get_client_data(netif, id) = (data) argument [all …]
|
D | dhcp.h | 143 void dhcp_set_struct(struct netif *netif, struct dhcp *dhcp); 145 #define dhcp_remove_struct(netif) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, N… argument 146 void dhcp_cleanup(struct netif *netif); 147 err_t dhcp_start(struct netif *netif); 148 err_t dhcp_renew(struct netif *netif); 149 err_t dhcp_release(struct netif *netif); 150 void dhcp_stop(struct netif *netif); 151 void dhcp_release_and_stop(struct netif *netif); 152 void dhcp_inform(struct netif *netif); 153 void dhcp_network_changed(struct netif *netif); [all …]
|
D | autoip.h | 78 void autoip_set_struct(struct netif *netif, struct autoip *autoip); 80 #define autoip_remove_struct(netif) do { (netif)->autoip = NULL; } while (0) argument 81 err_t autoip_start(struct netif *netif); 82 err_t autoip_stop(struct netif *netif); 83 void autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr); 85 void autoip_network_changed(struct netif *netif); 86 u8_t autoip_supplied_address(const struct netif *netif); 89 u8_t autoip_accept_packet(struct netif *netif, const ip4_addr_t *addr); 91 #define netif_autoip_data(netif) ((struct autoip*)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DA… argument
|
D | etharp.h | 78 ssize_t etharp_find_addr(struct netif *netif, const ip4_addr_t *ipaddr, 80 int etharp_get_entry(size_t i, ip4_addr_t **ipaddr, struct netif **netif, struct eth_addr **eth_ret… 81 err_t etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr); 82 err_t etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q); 83 err_t etharp_request(struct netif *netif, const ip4_addr_t *ipaddr); 88 #define etharp_gratuitous(netif) etharp_request((netif), netif_ip4_addr(netif)) argument 89 void etharp_cleanup_netif(struct netif *netif); 96 void etharp_input(struct pbuf *p, struct netif *netif);
|
D | dhcp6.h | 76 void dhcp6_set_struct(struct netif *netif, struct dhcp6 *dhcp6); 78 #define dhcp6_remove_struct(netif) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP6,… argument 79 void dhcp6_cleanup(struct netif *netif); 81 err_t dhcp6_enable_stateful(struct netif *netif); 82 err_t dhcp6_enable_stateless(struct netif *netif); 83 void dhcp6_disable(struct netif *netif); 87 void dhcp6_nd6_ra_trigger(struct netif *netif, u8_t managed_addr_config, u8_t other_config); 96 #define netif_dhcp6_data(netif) ((struct dhcp6*)netif_get_client_data(netif, LWIP_NETIF_CLIENT_DATA… argument
|
D | snmp.h | 48 struct netif; 119 #define MIB2_INIT_NETIF(netif, type, speed) do { \ argument 120 (netif)->link_type = (type); \ 121 (netif)->link_speed = (speed);\ 122 (netif)->ts = 0; \ 123 (netif)->mib2_counters.ifinoctets = 0; \ 124 (netif)->mib2_counters.ifinucastpkts = 0; \ 125 (netif)->mib2_counters.ifinnucastpkts = 0; \ 126 (netif)->mib2_counters.ifindiscards = 0; \ 127 (netif)->mib2_counters.ifinerrors = 0; \ [all …]
|
D | nd6.h | 67 struct netif; 70 void nd6_input(struct pbuf *p, struct netif *inp); 72 struct netif *nd6_find_route(const ip6_addr_t *ip6addr); 73 err_t nd6_get_next_hop_addr_or_queue(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr… 74 u16_t nd6_get_destination_mtu(const ip6_addr_t *ip6addr, struct netif *netif); 78 void nd6_cleanup_netif(struct netif *netif); 80 void nd6_adjust_mld_membership(struct netif *netif, s8_t addr_idx, u8_t new_state); 82 void nd6_restart_netif(struct netif *netif);
|
/third_party/lwip/src/core/ |
D | netif.c | 110 struct netif *netif_list; 112 struct netif *netif_default; 123 static void netif_issue_reports(struct netif *netif, u8_t report_type); 126 static err_t netif_null_output_ip6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipaddr); 129 static err_t netif_null_output_ip4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr); 134 static err_t netif_loop_output_ipv4(struct netif *netif, struct pbuf *p, const ip4_addr_t *addr); 137 static err_t netif_loop_output_ipv6(struct netif *netif, struct pbuf *p, const ip6_addr_t *addr); 141 static struct netif loop_netif; 151 netif_loopif_init(struct netif *netif) in netif_loopif_init() argument 153 LWIP_ASSERT("netif_loopif_init: invalid netif", netif != NULL); in netif_loopif_init() [all …]
|
/third_party/lwip/src/core/ipv4/ |
D | autoip.c | 76 #define LWIP_AUTOIP_RAND(netif) ( (((u32_t)((netif->hwaddr[5]) & 0xff) << 24) | \ argument 77 ((u32_t)((netif->hwaddr[3]) & 0xff) << 16) | \ 78 ((u32_t)((netif->hwaddr[2]) & 0xff) << 8) | \ 79 ((u32_t)((netif->hwaddr[4]) & 0xff))) + \ 80 … (netif_autoip_data(netif)? netif_autoip_data(netif)->tried_llipaddr : 0)) 88 #define LWIP_AUTOIP_CREATE_SEED_ADDR(netif) \ argument 89 lwip_htonl(AUTOIP_RANGE_START + ((u32_t)(((u8_t)(netif->hwaddr[4])) | \ 90 ((u32_t)((u8_t)(netif->hwaddr[5]))) << 8))) 94 static err_t autoip_arp_announce(struct netif *netif); 95 static void autoip_start_probing(struct netif *netif); [all …]
|
D | igmp.c | 99 static struct igmp_group *igmp_lookup_group(struct netif *ifp, const ip4_addr_t *addr); 100 static err_t igmp_remove_group(struct netif *netif, struct igmp_group *group); 101 static void igmp_timeout(struct netif *netif, struct igmp_group *group); 104 …p_ip_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, struct netif *netif); 105 static void igmp_send(struct netif *netif, struct igmp_group *group, u8_t type); 128 igmp_start(struct netif *netif) in igmp_start() argument 132 LWIP_DEBUGF(IGMP_DEBUG, ("igmp_start: starting IGMP processing on if %p\n", (void *)netif)); in igmp_start() 134 group = igmp_lookup_group(netif, &allsystems); in igmp_start() 141 if (netif->igmp_mac_filter != NULL) { in igmp_start() 144 LWIP_DEBUGF(IGMP_DEBUG, (") on if %p\n", (void *)netif)); in igmp_start() [all …]
|
D | dhcp.c | 89 #define LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, state, msg, msg_type, options_len_ptr) argument 92 #define LWIP_HOOK_DHCP_PARSE_OPTION(netif, dhcp, state, msg, msg_type, option, len, pbuf, offset) d… argument 113 #define DHCP_MAX_MSG_LEN(netif) (netif->mtu) argument 191 static err_t dhcp_discover(struct netif *netif); 192 static err_t dhcp_select(struct netif *netif); 193 static void dhcp_bind(struct netif *netif); 195 static err_t dhcp_decline(struct netif *netif); 197 static err_t dhcp_rebind(struct netif *netif); 198 static err_t dhcp_reboot(struct netif *netif); 205 static void dhcp_timeout(struct netif *netif); [all …]
|
D | ip4.c | 111 static struct netif *ip4_default_multicast_netif; 117 ip4_set_default_multicast_netif(struct netif *default_multicast_netif) in ip4_set_default_multicast_netif() 128 struct netif * 133 struct netif *netif = LWIP_HOOK_IP4_ROUTE_SRC(src, dest); in ip4_route_src() local 134 if (netif != NULL) { in ip4_route_src() 135 return netif; in ip4_route_src() 151 struct netif * 155 struct netif *netif; in ip4_route() local 170 NETIF_FOREACH(netif) { in ip4_route() 172 …if (netif_is_up(netif) && netif_is_link_up(netif) && !ip4_addr_isany_val(*netif_ip4_addr(netif))) { in ip4_route() [all …]
|
D | etharp.c | 99 struct netif *netif; member 120 #define ETHARP_SET_ADDRHINT(netif, addrhint) do { if (((netif) != NULL) && ((netif)->hints != NULL… argument 121 (netif)->hints->addr_hint = (addrhint); }} while(0) 123 #define ETHARP_SET_ADDRHINT(netif, addrhint) (etharp_cached_entry = (addrhint)) argument 133 static err_t etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_add… 134 static err_t etharp_raw(struct netif *netif, 171 mib2_remove_arp_entry(arp_table[i].netif, &arp_table[i].ipaddr); in etharp_free_entry() 184 arp_table[i].netif = NULL; in etharp_free_entry() 228 etharp_request(arp_table[i].netif, &arp_table[i].ipaddr); in etharp_tmr() 256 etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif *netif) in etharp_find_entry() argument [all …]
|
/third_party/lwip/doc/ |
D | NO_SYS_SampleCode.c | 22 netif_output(struct netif *netif, struct pbuf *p) in netif_output() argument 27 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); in netif_output() 30 MIB2_STATS_NETIF_INC(netif, ifoutucastpkts); in netif_output() 32 MIB2_STATS_NETIF_INC(netif, ifoutnucastpkts); in netif_output() 44 netif_status_callback(struct netif *netif) in netif_status_callback() argument 46 printf("netif status changed %s\n", ip4addr_ntoa(netif_ip4_addr(netif))); in netif_status_callback() 50 netif_init(struct netif *netif) in netif_init() argument 52 netif->linkoutput = netif_output; in netif_init() 53 netif->output = etharp_output; in netif_init() 54 netif->output_ip6 = ethip6_output; in netif_init() [all …]
|
/third_party/lwip/src/netif/ |
D | slipif.c | 116 slipif_output(struct netif *netif, struct pbuf *p) in slipif_output() argument 123 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_output() 124 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL)); in slipif_output() 128 priv = (struct slipif_priv *)netif->state; in slipif_output() 172 slipif_output_v4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr) in slipif_output_v4() argument 175 return slipif_output(netif, p); in slipif_output_v4() 191 slipif_output_v6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipaddr) in slipif_output_v6() argument 194 return slipif_output(netif, p); in slipif_output_v6() 207 slipif_rxbyte(struct netif *netif, u8_t c) in slipif_rxbyte() argument 212 LWIP_ASSERT("netif != NULL", (netif != NULL)); in slipif_rxbyte() [all …]
|
D | lowpan6_ble.c | 176 rfc7668_set_local_addr_eui64(struct netif *netif, const u8_t *local_addr, size_t local_addr_len) in rfc7668_set_local_addr_eui64() argument 179 LWIP_UNUSED_ARG(netif); in rfc7668_set_local_addr_eui64() 187 rfc7668_set_local_addr_mac48(struct netif *netif, const u8_t *local_addr, size_t local_addr_len, in… in rfc7668_set_local_addr_mac48() argument 190 LWIP_UNUSED_ARG(netif); in rfc7668_set_local_addr_mac48() 198 rfc7668_set_peer_addr_eui64(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len) in rfc7668_set_peer_addr_eui64() argument 201 LWIP_UNUSED_ARG(netif); in rfc7668_set_peer_addr_eui64() 209 rfc7668_set_peer_addr_mac48(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len, int i… in rfc7668_set_peer_addr_mac48() argument 212 LWIP_UNUSED_ARG(netif); in rfc7668_set_peer_addr_mac48() 230 rfc7668_compress(struct netif *netif, struct pbuf *p) in rfc7668_compress() argument 239 LWIP_ASSERT("lowpan6_frag: netif->linkoutput not set", netif->linkoutput != NULL); in rfc7668_compress() [all …]
|
D | bridgeif.c | 100 struct netif *port_netif; 111 struct netif *netif; member 135 bridgeif_fdb_add(struct netif *bridgeif, const struct eth_addr *addr, bridgeif_portmask_t ports) in bridgeif_fdb_add() 168 bridgeif_fdb_remove(struct netif *bridgeif, const struct eth_addr *addr) in bridgeif_fdb_remove() 230 if (!memcmp(br->netif->hwaddr, addr, sizeof(struct eth_addr))) { in bridgeif_is_local_mac() 235 struct netif *portif = br->ports[i].port_netif; in bridgeif_is_local_mac() 254 struct netif *portif = br->ports[dstport_idx].port_netif; in bridgeif_send_to_port() 298 bridgeif_output(struct netif *netif, struct pbuf *p) in bridgeif_output() argument 301 bridgeif_private_t *br = (bridgeif_private_t *)netif->state; in bridgeif_output() 307 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p->tot_len); in bridgeif_output() [all …]
|
/third_party/lwip/src/core/ipv6/ |
D | mld6.c | 84 static struct mld_group *mld6_new_group(struct netif *ifp, const ip6_addr_t *addr); 85 static err_t mld6_remove_group(struct netif *netif, struct mld_group *group); 87 static void mld6_send(struct netif *netif, struct mld_group *group, u8_t type); 96 mld6_stop(struct netif *netif) in mld6_stop() argument 98 struct mld_group *group = netif_mld6_data(netif); in mld6_stop() 100 netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_MLD6, NULL); in mld6_stop() 106 if (netif->mld_mac_filter != NULL) { in mld6_stop() 107 netif->mld_mac_filter(netif, &(group->group_address), NETIF_DEL_MAC_FILTER); in mld6_stop() 125 mld6_report_groups(struct netif *netif) in mld6_report_groups() argument 127 struct mld_group *group = netif_mld6_data(netif); in mld6_report_groups() [all …]
|
D | nd6.c | 112 static int nd6_is_prefix_in_netif(const ip6_addr_t *ip6addr, struct netif *netif); 113 static s8_t nd6_select_router(const ip6_addr_t *ip6addr, struct netif *netif); 114 static s8_t nd6_get_router(const ip6_addr_t *router_addr, struct netif *netif); 115 static s8_t nd6_new_router(const ip6_addr_t *router_addr, struct netif *netif); 116 static s8_t nd6_get_onlink_prefix(const ip6_addr_t *prefix, struct netif *netif); 117 static s8_t nd6_new_onlink_prefix(const ip6_addr_t *prefix, struct netif *netif); 118 static s8_t nd6_get_next_hop_entry(const ip6_addr_t *ip6addr, struct netif *netif); 124 static void nd6_send_ns(struct netif *netif, const ip6_addr_t *target_addr, u8_t flags); 125 static void nd6_send_na(struct netif *netif, const ip6_addr_t *target_addr, u8_t flags); 128 static err_t nd6_send_rs(struct netif *netif); [all …]
|
D | ip6.c | 85 struct netif * 92 struct netif *netif; in ip6_route() 116 NETIF_FOREACH(netif) { in ip6_route() 117 if (ip6_addr_test_zone(dest, netif) && in ip6_route() 118 netif_is_up(netif) && netif_is_link_up(netif)) { in ip6_route() 119 return netif; in ip6_route() 153 NETIF_FOREACH(netif) { in ip6_route() 154 if (netif_is_up(netif) && netif_is_link_up(netif) && in ip6_route() 155 ip6_addr_test_zone(src, netif)) { in ip6_route() 156 return netif; in ip6_route() [all …]
|
D | dhcp6.c | 74 #define LWIP_HOOK_DHCP6_APPEND_OPTIONS(netif, dhcp6, state, msg, msg_type, options_len_ptr, max_len) argument 77 #define LWIP_HOOK_DHCP6_PARSE_OPTION(netif, dhcp6, state, msg, msg_type, option, len, pbuf, offset)… argument 185 dhcp6_set_struct(struct netif *netif, struct dhcp6 *dhcp6) in dhcp6_set_struct() argument 187 LWIP_ASSERT("netif != NULL", netif != NULL); in dhcp6_set_struct() 189 LWIP_ASSERT("netif already has a struct dhcp6 set", netif_dhcp6_data(netif) == NULL); in dhcp6_set_struct() 194 netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP6, dhcp6); in dhcp6_set_struct() 206 void dhcp6_cleanup(struct netif *netif) in dhcp6_cleanup() argument 208 LWIP_ASSERT("netif != NULL", netif != NULL); in dhcp6_cleanup() 210 if (netif_dhcp6_data(netif) != NULL) { in dhcp6_cleanup() 211 mem_free(netif_dhcp6_data(netif)); in dhcp6_cleanup() [all …]
|
/third_party/lwip/test/fuzz/ |
D | fuzz.c | 61 static err_t lwip_tx_func(struct netif *netif, struct pbuf *p) in lwip_tx_func() argument 63 LWIP_UNUSED_ARG(netif); in lwip_tx_func() 68 static err_t testif_init(struct netif *netif) in testif_init() argument 70 netif->name[0] = 'f'; in testif_init() 71 netif->name[1] = 'z'; in testif_init() 72 netif->output = etharp_output; in testif_init() 73 netif->linkoutput = lwip_tx_func; in testif_init() 74 netif->mtu = 1500; in testif_init() 75 netif->hwaddr_len = 6; in testif_init() 76 netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_IGMP; in testif_init() [all …]
|
/third_party/lwip/src/include/lwip/apps/ |
D | mdns.h | 70 typedef void (*mdns_name_result_cb_t)(struct netif* netif, u8_t result); 76 err_t mdns_resp_add_netif(struct netif *netif, const char *hostname, u32_t dns_ttl); 77 err_t mdns_resp_remove_netif(struct netif *netif); 78 err_t mdns_resp_rename_netif(struct netif *netif, const char *hostname); 80 s8_t mdns_resp_add_service(struct netif *netif, const char *name, const char *service, enum mdns_s… 81 err_t mdns_resp_del_service(struct netif *netif, s8_t slot); 82 err_t mdns_resp_rename_service(struct netif *netif, s8_t slot, const char *name); 86 void mdns_resp_restart(struct netif *netif); 87 void mdns_resp_announce(struct netif *netif); 97 #define mdns_resp_netif_settings_changed(netif) mdns_resp_announce(netif) argument
|
/third_party/lwip/src/apps/snmp/ |
D | snmp_mib2_interfaces.c | 68 struct netif *netif; in interfaces_get_value() local 69 NETIF_FOREACH(netif) { in interfaces_get_value() 98 struct netif *netif; in interfaces_Table_get_cell_instance() local 111 NETIF_FOREACH(netif) { in interfaces_Table_get_cell_instance() 112 if (netif_to_num(netif) == ifIndex) { in interfaces_Table_get_cell_instance() 114 cell_instance->reference.ptr = netif; in interfaces_Table_get_cell_instance() 126 struct netif *netif; in interfaces_Table_get_next_cell_instance() local 136 NETIF_FOREACH(netif) { in interfaces_Table_get_next_cell_instance() 138 test_oid[0] = netif_to_num(netif); in interfaces_Table_get_next_cell_instance() 141 snmp_next_oid_check(&state, test_oid, LWIP_ARRAYSIZE(interfaces_Table_oid_ranges), netif); in interfaces_Table_get_next_cell_instance() [all …]
|
/third_party/lwip/src/include/netif/ |
D | lowpan6_ble.h | 56 err_t rfc7668_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr); 57 err_t rfc7668_input(struct pbuf * p, struct netif *netif); 58 err_t rfc7668_set_local_addr_eui64(struct netif *netif, const u8_t *local_addr, size_t local_addr_l… 59 err_t rfc7668_set_local_addr_mac48(struct netif *netif, const u8_t *local_addr, size_t local_addr_l… 60 err_t rfc7668_set_peer_addr_eui64(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len); 61 err_t rfc7668_set_peer_addr_mac48(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len,… 63 err_t rfc7668_if_init(struct netif *netif); 66 err_t tcpip_rfc7668_input(struct pbuf *p, struct netif *inp);
|