Home
last modified time | relevance | path

Searched refs:netif (Results 1 - 25 of 206) sorted by relevance

123456789

/third_party/lwip/src/include/lwip/
H A Dnetif.h3 * netif API (to be used from TCPIP thread)
69 /** The size of a fully constructed netif name which the
70 * netif can be identified by in APIs. Composed of
77 * @ingroup netif
84 * It must be set by the startup code before this netif can be used
88 /** If set, the netif has broadcast capability.
89 * Set by the netif driver in its init function. */
93 * Either set by the netif driver in its init function (if the link
97 /** If set, the netif is an ethernet device using ARP.
98 * Set by the netif drive
263 struct netif { global() struct
[all...]
H A Dautoip.h48 #include "lwip/netif.h"
60 /** AutoIP state information per netif */
78 void autoip_set_struct(struct netif *netif, struct autoip *autoip);
79 /** Remove a struct autoip previously set to the netif using autoip_set_struct() */
80 #define autoip_remove_struct(netif) do { (netif)->autoip = NULL; } while (0)
81 err_t autoip_start(struct netif *netif);
82 err_t autoip_stop(struct netif *neti
[all...]
H A Ddhcp.h45 #include "lwip/netif.h"
143 void dhcp_set_struct(struct netif *netif, struct dhcp *dhcp);
144 /** Remove a struct dhcp previously set to the netif using dhcp_set_struct() */
145 #define dhcp_remove_struct(netif) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, NULL)
146 void dhcp_cleanup(struct netif *netif);
147 err_t dhcp_start(struct netif *netif);
[all...]
H A Dsnmp.h48 struct netif;
52 * @ingroup netif
114 * Init MIB2 statistic counters in netif
115 * @param netif Netif to init
119 #define MIB2_INIT_NETIF(netif, type, speed) do { \
120 (netif)->link_type = (type); \
121 (netif)->link_speed = (speed);\
122 (netif)->ts = 0; \
123 (netif)->mib2_counters.ifinoctets = 0; \
124 (netif)
[all...]
/third_party/lwip/src/core/
H A Dnetif.c5 * @defgroup netif Network interface (NETIF)
9 * @ingroup netif
12 * @ingroup netif
15 * Store data (void*) on a netif for application usage.
17 * @ingroup netif
59 #include "lwip/netif.h"
75 #include "netif/ethernet.h"
111 struct netif *netif_list;
113 struct netif *netif_default;
127 static void netif_issue_reports(struct netif *neti
146 get_net_group_from_netif(struct netif *netif) get_net_group_from_netif() argument
164 netif_loopif_init(struct netif *netif) netif_loopif_init() argument
279 netif_add_noaddr(struct netif *netif, struct net_group *group, void *state, netif_init_fn init, netif_input_fn input) netif_add_noaddr() argument
324 netif_add(struct netif *netif, struct net_group *group, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, void *state, netif_init_fn init, netif_input_fn input) global() argument
540 netif_do_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr, ip_addr_t *old_addr) global() argument
583 netif_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr) global() argument
606 netif_do_set_netmask(struct netif *netif, const ip4_addr_t *netmask, ip_addr_t *old_nm) global() argument
643 netif_set_netmask(struct netif *netif, const ip4_addr_t *netmask) global() argument
670 netif_do_set_gw(struct netif *netif, const ip4_addr_t *gw, ip_addr_t *old_gw) global() argument
704 netif_set_gw(struct netif *netif, const ip4_addr_t *gw) global() argument
741 netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw) global() argument
820 netif_remove(struct netif *netif) global() argument
929 netif_set_default(struct netif *netif, struct net_group *group) global() argument
954 netif_set_default2(struct netif *netif) global() argument
965 netif_set_up(struct netif *netif) global() argument
996 netif_issue_reports(struct netif *netif, u8_t report_type) global() argument
1040 netif_set_down(struct netif *netif) global() argument
1078 netif_set_status_callback(struct netif *netif, netif_status_callback_fn status_callback) global() argument
1094 netif_set_remove_callback(struct netif *netif, netif_status_callback_fn remove_callback) global() argument
1109 netif_set_link_up(struct netif *netif) global() argument
1147 netif_set_link_down(struct netif *netif) global() argument
1176 netif_set_link_callback(struct netif *netif, netif_status_callback_fn link_callback) global() argument
1203 netif_loop_output(struct netif *netif, struct pbuf *p) global() argument
1313 netif_loop_output_ipv4(struct netif *netif, struct pbuf *p, const ip4_addr_t *addr) global() argument
1322 netif_loop_output_ipv6(struct netif *netif, struct pbuf *p, const ip6_addr_t *addr) global() argument
1338 netif_poll(struct netif *netif) global() argument
1414 struct netif *netif; global() local
1458 netif_ip6_addr_set(struct netif *netif, s8_t addr_idx, const ip6_addr_t *addr6) global() argument
1480 netif_ip6_addr_set_parts(struct netif *netif, s8_t addr_idx, u32_t i0, u32_t i1, u32_t i2, u32_t i3) global() argument
1497 ip6_addr_assign_zone(ip_2_ip6(&new_ipaddr), IP6_UNICAST, netif); global() local
1537 netif_ip6_addr_set_state(struct netif *netif, s8_t addr_idx, u8_t state) global() argument
1568 IP6_ADDR_ZONECHECK_NETIF(netif_ip6_addr(netif, addr_idx), netif); global() local
1608 netif_get_ip6_addr_match(struct netif *netif, const ip6_addr_t *ip6addr) global() argument
1641 netif_create_ip6_linklocal_address(struct netif *netif, u8_t from_mac_48bit) global() argument
1709 netif_add_ip6_address(struct netif *netif, const ip6_addr_t *ip6addr, s8_t *chosen_idx) global() argument
1749 netif_null_output_ip6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipaddr) global() argument
1763 netif_null_output_ip4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr) global() argument
1783 struct netif *netif = netif_find(name); global() local
1807 struct netif *netif = netif_get_by_index(idx, group); global() local
1834 struct netif *netif; global() local
1865 struct netif *netif; global() local
1951 netif_invoke_ext_callback(struct netif *netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t *args) global() argument
[all...]
/kernel/liteos_a/net/lwip-2.1/porting/src/
H A Ddriverif.c33 #include <lwip/netif.h>
55 driverif_init_ifname(struct netif *netif) argument
57 struct netif *tmpnetif = NULL;
58 const char *prefix = (netif->link_layer_type == WIFI_DRIVER_IF) ? "wlan" : "eth";
60 netif->name[0] = prefix[0];
61 netif->name[1] = prefix[1];
64 if (snprintf_s(netif->full_name, sizeof(netif->full_name), sizeof(netif
101 driverif_output(struct netif *netif, struct pbuf *p) global() argument
141 driverif_input(struct netif *netif, struct pbuf *p) global() argument
248 driverif_init(struct netif *netif) global() argument
326 netif_veth_output(struct netif *netif, struct pbuf *p, const ip4_addr_t *addr) global() argument
332 veth_init_fullname(struct netif *netif) global() argument
353 netif_vethif_init(struct netif *netif) global() argument
374 veth_init(struct netif *netif, struct net_group *group) global() argument
[all...]
H A Dsockets.c190 struct netif *netif = NULL; in ip_addr_isbroadcast_bysock() local
191 NETIF_FOREACH(netif) { in ip_addr_isbroadcast_bysock()
192 if (ip_addr_cmp(&netif->ip_addr, &addr)) { in ip_addr_isbroadcast_bysock()
193 return ip_addr_isbroadcast(ipaddr, netif); in ip_addr_isbroadcast_bysock()
196 if (ip_addr_cmp(&netif->ip6_addr[i], &addr)) { in ip_addr_isbroadcast_bysock()
197 return ip_addr_isbroadcast(ipaddr, netif); in ip_addr_isbroadcast_bysock()
379 #define SIOCSIPV6DAD _IOW('z', 0, unsigned long) /* set DAD enable/disable on netif */
383 #define SIOCGIPV6DAD _IOR('z', 1, unsigned long) /* get DAD status on netif */
413 struct netif *neti local
486 struct netif *netif = NULL; global() local
544 struct netif *netif = NULL; global() local
584 struct netif *netif = NULL; global() local
680 struct netif *netif = NULL; global() local
739 struct netif *netif = NULL; global() local
760 struct netif *netif = NULL; global() local
846 struct netif *netif = NULL; global() local
886 struct netif *netif = NULL; global() local
909 struct netif *netif = NULL; global() local
993 struct netif *netif = NULL; global() local
1071 struct netif *netif = NULL; global() local
1147 struct netif *netif = NULL; global() local
1184 struct netif *netif = NULL; global() local
1197 struct netif *netif = NULL; global() local
1227 struct netif *netif = NULL; global() local
1241 struct netif *netif = NULL; global() local
1264 struct netif *netif; global() local
[all...]
/kernel/liteos_m/components/net/lwip-2.1/porting/src/
H A Ddriverif.c33 #include <lwip/netif.h>
56 LWIP_STATIC void driverif_get_ifname_prefix(struct netif *netif, char *prefix, int prefixLen) in driverif_get_ifname_prefix() argument
58 if (prefix == NULL || netif == NULL) { in driverif_get_ifname_prefix()
62 switch (netif->link_layer_type) { in driverif_get_ifname_prefix()
78 LWIP_STATIC void driverif_init_ifname(struct netif *netif) in driverif_init_ifname() argument
80 struct netif *tmpnetif = NULL; in driverif_init_ifname()
83 driverif_get_ifname_prefix(netif, prefix, NETIF_NAME_PREFIX_MAX_LENGTH); in driverif_init_ifname()
84 netif in driverif_init_ifname()
125 driverif_output(struct netif *netif, struct pbuf *p) driverif_output() argument
153 driverif_input_proc(struct netif *netif, struct pbuf *p) driverif_input_proc() argument
211 driverif_input(struct netif *netif, struct pbuf *p) driverif_input() argument
278 driverif_init(struct netif *netif) driverif_init() argument
[all...]
H A Dsockets_porting.c297 struct netif *netif = NULL; in lwip_ioctl_internal_SIOCGIFCONF() local
310 for (netif = netif_list; netif != NULL; netif = netif->next) { in lwip_ioctl_internal_SIOCGIFCONF()
320 if (netif->link_layer_type == LOOPBACK_IF) { in lwip_ioctl_internal_SIOCGIFCONF()
321 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name); in lwip_ioctl_internal_SIOCGIFCONF()
327 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif)); in lwip_ioctl_internal_SIOCGIFCONF()
336 sock_in->sin_addr.s_addr = ip_2_ip4(&netif in lwip_ioctl_internal_SIOCGIFCONF()
351 struct netif *netif = NULL; lwip_ioctl_internal_SIOCGIFADDR() local
368 struct netif *netif = NULL; lwip_ioctl_internal_SIOCGIFNETMASK() local
385 struct netif *netif = NULL; lwip_ioctl_internal_SIOCGIFHWADDR() local
408 struct netif *netif = NULL; lwip_ioctl_internal_SIOCSIFFLAGS() local
486 struct netif *netif = NULL; lwip_ioctl_internal_SIOCGIFFLAGS() local
560 struct netif *netif = NULL; lwip_ioctl_internal_SIOCGIFNAME() local
633 struct netif *netif = NULL; lwip_ioctl_internal_SIOCSIFNAME() local
664 struct netif *netif = NULL; lwip_ioctl_internal_SIOCGIFINDEX() local
677 struct netif *netif = NULL; lwip_ioctl_internal_SIOCGIFMTU() local
691 struct netif *netif = NULL; lwip_ioctl_internal_SIOCGIFBRDADDR() local
[all...]
/kernel/uniproton/src/net/lwip-2.1/src/
H A Ddriverif.c17 #include <lwip/netif.h>
38 static void OsDriverifGetIfnamePrefix(struct netif *netif, char *prefix, int prefixLen) in OsDriverifGetIfnamePrefix() argument
40 if (prefix == NULL || netif == NULL) { in OsDriverifGetIfnamePrefix()
44 switch (netif->link_layer_type) { in OsDriverifGetIfnamePrefix()
60 static void OsDriverifInitIfname(struct netif *netif) in OsDriverifInitIfname() argument
62 struct netif *tmpNetif = NULL; in OsDriverifInitIfname()
65 OsDriverifGetIfnamePrefix(netif, prefix, NETIF_NAME_PREFIX_MAX_LENGTH); in OsDriverifInitIfname()
66 netif in OsDriverifInitIfname()
107 OsDriverifOutput(struct netif *netif, struct pbuf *p) OsDriverifOutput() argument
135 OsDriverifInputProc(struct netif *netif, struct pbuf *p) OsDriverifInputProc() argument
190 driverif_input(struct netif *netif, struct pbuf *p) driverif_input() argument
257 driverif_init(struct netif *netif) driverif_init() argument
[all...]
H A Dsockets.c288 struct netif *netif = NULL; in OsLwipIoctlInternalSiocgifConf() local
299 for (netif = netif_list; netif != NULL; netif = netif->next) { in OsLwipIoctlInternalSiocgifConf()
311 if (netif->link_layer_type == LOOPBACK_IF) { in OsLwipIoctlInternalSiocgifConf()
312 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%.2s", netif->name); in OsLwipIoctlInternalSiocgifConf()
318 ret = snprintf_s(ifreq.ifr_name, IFNAMSIZ, (IFNAMSIZ - 1), "%s", netif_get_name(netif)); in OsLwipIoctlInternalSiocgifConf()
327 sockIn->sin_addr.s_addr = ip_2_ip4(&netif in OsLwipIoctlInternalSiocgifConf()
344 struct netif *netif = netif_find(ifr->ifr_name); OsLwipIoctlInternalSiocgifAddr() local
359 struct netif *netif = netif_find(ifr->ifr_name); OsLwipIoctlInternalSiocgifNetmask() local
372 struct netif *netif = netif_find(ifr->ifr_name); OsLwipIoctlInternalSiocgifHwAddr() local
393 struct netif *netif = netif_find(ifr->ifr_name); OsLwipIoctlInternalSiocsifFlags() local
469 struct netif *netif = netif_find(ifr->ifr_name); OsLwipIoctlInternalSiocgifFlags() local
540 struct netif *netif = NULL; OsLwipIoctlInternalSiocgifName() local
613 struct netif *netif = netif_find(ifr->ifr_name); OsLwipIoctlInternalSiocsifName() local
641 struct netif *netif = netif_find(ifr->ifr_name); OsLwipIoctlInternalSiocgifIndex() local
653 struct netif *netif = netif_find(ifr->ifr_name); OsLwipIoctlInternalSiocgifMtu() local
667 struct netif *netif = netif_find(ifr->ifr_name); OsLwipIoctlInternalSiocgifBrdAddr() local
[all...]
/third_party/lwip/src/core/ipv4/
H A Dautoip.c66 #include "lwip/netif.h"
73 /** Pseudo random macro based on netif informations.
76 #define LWIP_AUTOIP_RAND(netif) ( (((u32_t)((netif->hwaddr[5]) & 0xff) << 24) | \
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) \
106 autoip_set_struct(struct netif *netif, struct autoip *autoip) autoip_set_struct() argument
125 autoip_restart(struct netif *netif) autoip_restart() argument
136 autoip_handle_arp_conflict(struct netif *netif) autoip_handle_arp_conflict() argument
169 autoip_create_addr(struct netif *netif, ip4_addr_t *ipaddr) autoip_create_addr() argument
204 autoip_arp_probe(struct netif *netif) autoip_arp_probe() argument
217 autoip_arp_announce(struct netif *netif) autoip_arp_announce() argument
228 autoip_bind(struct netif *netif) autoip_bind() argument
255 autoip_start(struct netif *netif) autoip_start() argument
299 autoip_start_probing(struct netif *netif) autoip_start_probing() argument
333 autoip_network_changed(struct netif *netif) autoip_network_changed() argument
349 autoip_stop(struct netif *netif) autoip_stop() argument
368 struct netif *netif = NULL; autoip_tmr_tick() local
392 struct netif *netif; autoip_tmr() local
476 autoip_arp_reply(struct netif *netif, struct etharp_hdr *hdr) autoip_arp_reply() argument
534 autoip_supplied_address(const struct netif *netif) autoip_supplied_address() argument
544 autoip_accept_packet(struct netif *netif, const ip4_addr_t *addr) autoip_accept_packet() argument
[all...]
H A Digmp.c93 #include "lwip/netif.h"
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 static err_t igmp_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, struc
128 igmp_start(struct netif *netif) igmp_start() argument
160 igmp_stop(struct netif *netif) igmp_stop() argument
192 igmp_report_groups(struct netif *netif) igmp_report_groups() argument
295 igmp_remove_group(struct netif *netif, struct igmp_group *group) igmp_remove_group() argument
452 struct netif *netif; global() local
489 igmp_joingroup_netif(struct netif *netif, const ip4_addr_t *groupaddr) global() argument
553 struct netif *netif; global() local
589 igmp_leavegroup_netif(struct netif *netif, const ip4_addr_t *groupaddr) global() argument
651 struct netif *netif; global() local
676 struct netif *netif = NULL; global() local
704 igmp_timeout(struct netif *netif, struct igmp_group *group) global() argument
778 igmp_ip_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, struct netif *netif) global() argument
795 igmp_send(struct netif *netif, struct igmp_group *group, u8_t type) global() argument
[all...]
H A Ddhcp.c74 #include "lwip/netif.h"
89 #define LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, state, msg, msg_type, options_len_ptr)
92 #define LWIP_HOOK_DHCP_PARSE_OPTION(netif, dhcp, state, msg, msg_type, option, len, pbuf, offset) do { LWIP_UNUSED_ARG(msg); } while(0)
113 #define DHCP_MAX_MSG_LEN(netif) (netif->mtu)
197 static err_t dhcp_discover(struct netif *netif);
198 static err_t dhcp_select(struct netif *netif);
199 static void dhcp_bind(struct netif *neti
283 dhcp_handle_nak(struct netif *netif) dhcp_handle_nak() argument
309 dhcp_check(struct netif *netif) dhcp_check() argument
338 dhcp_handle_offer(struct netif *netif, struct dhcp_msg *msg_in) dhcp_handle_offer() argument
372 dhcp_select(struct netif *netif) dhcp_select() argument
438 struct netif *netif; global() local
476 struct netif *netif; global() local
509 struct netif *netif; global() local
539 struct netif *netif; global() local
572 dhcp_timeout(struct netif *netif) global() argument
619 dhcp_t1_timeout(struct netif *netif) global() argument
646 dhcp_t2_timeout(struct netif *netif) global() argument
672 dhcp_handle_ack(struct netif *netif, struct dhcp_msg *msg_in) global() argument
763 dhcp_set_struct(struct netif *netif, struct dhcp *dhcp) global() argument
785 dhcp_cleanup(struct netif *netif) global() argument
810 dhcp_start(struct netif *netif) global() argument
887 dhcp_inform(struct netif *netif) global() argument
931 dhcp_network_changed(struct netif *netif) global() argument
976 dhcp_arp_reply(struct netif *netif, const ip4_addr_t *addr) global() argument
1008 dhcp_decline(struct netif *netif) global() argument
1054 dhcp_discover(struct netif *netif) global() argument
1113 dhcp_bind(struct netif *netif) global() argument
1216 dhcp_renew(struct netif *netif) global() argument
1272 dhcp_rebind(struct netif *netif) global() argument
1326 dhcp_reboot(struct netif *netif) global() argument
1384 dhcp_release_and_stop(struct netif *netif) global() argument
1461 dhcp_release(struct netif *netif) global() argument
1473 dhcp_stop(struct netif *netif) global() argument
1540 dhcp_option_hostname(u16_t options_out_len, u8_t *options, struct netif *netif) global() argument
1825 struct netif *netif = ip_current_input_netif(); global() local
1943 dhcp_create_msg(struct netif *netif, struct dhcp *dhcp, u8_t message_type, u16_t *options_out_len) global() argument
2049 dhcp_supplied_address(const struct netif *netif) global() argument
[all...]
H A Detharp.c56 #include "netif/ethernet.h"
99 struct netif *netif; member
120 #define ETHARP_SET_ADDRHINT(netif, addrhint) do { if (((netif) != NULL) && ((netif)->hints != NULL)) { \
121 (netif)->hints->addr_hint = (addrhint); }} while(0)
123 #define ETHARP_SET_ADDRHINT(netif, addrhint) (etharp_cached_entry = (addrhint))
133 static err_t etharp_request_dst(struct netif *netif, cons
285 etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif *netif) etharp_find_entry() argument
451 etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, u8_t flags) global() argument
534 struct netif *netif; global() local
591 etharp_cleanup_netif(struct netif *netif) global() argument
615 etharp_find_addr(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr **eth_ret, const ip4_addr_t **ip_ret) global() argument
644 etharp_get_entry(size_t i, ip4_addr_t **ipaddr, struct netif **netif, struct eth_addr **eth_ret) global() argument
673 etharp_input(struct pbuf *p, struct netif *netif) global() argument
780 etharp_output_to_arp_index(struct netif *netif, struct pbuf *q, netif_addr_idx_t arp_idx) global() argument
823 etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr) global() argument
965 etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q) global() argument
1141 etharp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr, const struct eth_addr *ethdst_addr, const struct eth_addr *hwsrc_addr, const ip4_addr_t *ipsrc_addr, const struct eth_addr *hwdst_addr, const ip4_addr_t *ipdst_addr, const u16_t opcode) global() argument
1221 etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_addr *hw_dst_addr) global() argument
1238 etharp_request(struct netif *netif, const ip4_addr_t *ipaddr) global() argument
[all...]
H A Dip4.c50 #include "lwip/netif.h"
86 * netif is down.
110 /** The default netif used for multicast */
111 static struct netif *ip4_default_multicast_netif;
115 * Set a default netif for IPv4 multicast. */
117 ip4_set_default_multicast_netif(struct netif *default_multicast_netif) in ip4_set_default_multicast_netif()
128 struct netif *
137 struct netif *netif = LWIP_HOOK_IP4_ROUTE_SRC(src, dest); in ip4_route_src() local
138 if (netif ! in ip4_route_src()
167 struct netif *netif; global() local
316 struct netif *netif; global() local
407 ip4_input_accept(struct netif *netif) global() argument
462 struct netif *netif; global() local
828 ip4_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif) global() argument
843 ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, u16_t optlen) global() argument
868 ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif) global() argument
881 ip4_output_if_opt_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, u16_t optlen) global() argument
1072 struct netif *netif; global() local
1114 struct netif *netif; global() local
[all...]
/third_party/lwip/src/netif/
H A Dslipif.c35 * This file is built upon the file: src/arch/rtxc/netif/sioslip.c
46 * This is an arch independent SLIP netif. The specific serial hooks must be
49 * Usage: This netif can be used in three ways:\n
53 * completed packets are fed into netif->input().\n
62 #include "netif/slipif.h"
77 /** Maximum packet size that is received by this netif */
111 * @param netif the lwip network interface structure for this slipif
116 slipif_output(struct netif *netif, struct pbuf *p) in slipif_output() argument
123 LWIP_ASSERT("netif ! in slipif_output()
172 slipif_output_v4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr) slipif_output_v4() argument
191 slipif_output_v6(struct netif *netif, struct pbuf *p, const ip6_addr_t *ipaddr) slipif_output_v6() argument
207 slipif_rxbyte(struct netif *netif, u8_t c) slipif_rxbyte() argument
310 slipif_rxbyte_input(struct netif *netif, u8_t c) slipif_rxbyte_input() argument
333 struct netif *netif = (struct netif *)nf; slipif_loop_thread() local
360 slipif_init(struct netif *netif) slipif_init() argument
426 slipif_poll(struct netif *netif) slipif_poll() argument
449 slipif_process_rxqueue(struct netif *netif) slipif_process_rxqueue() argument
488 slipif_rxbyte_enqueue(struct netif *netif, u8_t data) slipif_rxbyte_enqueue() argument
528 slipif_received_byte(struct netif *netif, u8_t data) slipif_received_byte() argument
547 slipif_received_bytes(struct netif *netif, u8_t *data, u8_t len) slipif_received_bytes() argument
[all...]
H A Dlowpan6_ble.c50 * - add this netif
58 * - call netif->input
69 #include "netif/lowpan6_ble.h"
76 #include "lwip/netif.h"
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
178 /* netif not used for now, the address is stored globally... */ in rfc7668_set_local_addr_eui64()
179 LWIP_UNUSED_ARG(netif); in rfc7668_set_local_addr_eui64()
187 rfc7668_set_local_addr_mac48(struct netif *netif, cons argument
198 rfc7668_set_peer_addr_eui64(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len) rfc7668_set_peer_addr_eui64() argument
209 rfc7668_set_peer_addr_mac48(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len, int is_public_addr) rfc7668_set_peer_addr_mac48() argument
230 rfc7668_compress(struct netif *netif, struct pbuf *p) rfc7668_compress() argument
328 rfc7668_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr) rfc7668_output() argument
347 rfc7668_input(struct pbuf * p, struct netif *netif) rfc7668_input() argument
410 rfc7668_if_init(struct netif *netif) rfc7668_if_init() argument
[all...]
/kernel/liteos_a/net/lwip-2.1/enhancement/src/
H A Dfixme.c51 * @param netif a pre-allocated netif structure
54 err_t netif_dhcp_off(struct netif *netif) in netif_dhcp_off() argument
60 if (netif == NULL) { in netif_dhcp_off()
63 old_ipaddr = netif->ip_addr; in netif_dhcp_off()
64 old_netmask = netif->netmask; in netif_dhcp_off()
65 old_gateway = netif->gw; in netif_dhcp_off()
67 if (netif_dhcp_data(netif)) { in netif_dhcp_off()
68 (void)dhcp_release(netif); in netif_dhcp_off()
82 dhcp_is_bound(struct netif *netif) dhcp_is_bound() argument
114 netifapi_dhcps_start(struct netif *netif, char *start_ip, u16_t ip_num) netifapi_dhcps_start() argument
132 netifapi_dhcps_stop(struct netif *netif) netifapi_dhcps_stop() argument
150 netif_ip6_addr_setinvalid(struct netif *netif, const ip6_addr_t *addr6) netif_ip6_addr_setinvalid() argument
165 netif_do_rmv_ipv6_addr(struct netif *netif, void *arguments) netif_do_rmv_ipv6_addr() argument
187 netifapi_netif_rmv_ip6_address(struct netif *netif, ip_addr_t *ipaddr) netifapi_netif_rmv_ip6_address() argument
211 struct netif *netif = NULL; global() local
256 struct netif *netif = NULL; global() local
283 netif_set_mtu(struct netif *netif, u16_t netif_mtu) global() argument
310 netif_set_hwaddr(struct netif *netif, const unsigned char *hw_addr, int hw_len) global() argument
341 etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, u8_t flags) global() argument
350 etharp_delete_arp_entry(struct netif *netif, ip4_addr_t *ipaddr) global() argument
[all...]
/third_party/lwip/doc/
H A DNO_SYS_SampleCode.c22 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 *neti argument
68 struct netif netif; main() local
[all...]
/third_party/lwip/src/core/ipv6/
H A Dmld6.c10 * netif since it must always be received for correct IPv6 operation (e.g. SLAAC).
11 * Ensure the netif filters are configured accordingly!\n
12 * The netif flags also need NETIF_FLAG_MLD6 flag set to enable MLD6 on a
13 * netif ("netif->flags |= NETIF_FLAG_MLD6;").\n
66 #include "lwip/netif.h"
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 *neti
96 mld6_stop(struct netif *netif) mld6_stop() argument
125 mld6_report_groups(struct netif *netif) mld6_report_groups() argument
194 mld6_remove_group(struct netif *netif, struct mld_group *group) mld6_remove_group() argument
318 struct netif *netif; global() local
351 mld6_joingroup_netif(struct netif *netif, const ip6_addr_t *groupaddr) global() argument
411 struct netif *netif; global() local
445 mld6_leavegroup_netif(struct netif *netif, const ip6_addr_t *groupaddr) global() argument
506 struct netif *netif; global() local
538 struct netif *netif = NULL; global() local
604 mld6_send(struct netif *netif, struct mld_group *group, u8_t type) global() argument
663 MLD6_HL, 0, IP6_NEXTH_HOPBYHOP, netif); global() local
[all...]
H A Dnd6.c58 #include "lwip/netif.h"
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 *neti
147 nd6_duplicate_addr_detected(struct netif *netif, s8_t addr_idx) nd6_duplicate_addr_detected() argument
186 nd6_process_autoconfig_prefix(struct netif *netif, struct prefix_option *prefix_opt, const ip6_addr_t *prefix_addr) nd6_process_autoconfig_prefix() argument
962 struct netif *netif; global() local
1176 struct netif *netif = NULL; global() local
1289 nd6_send_ns(struct netif *netif, const ip6_addr_t *target_addr, u8_t flags) global() argument
1374 nd6_send_na(struct netif *netif, const ip6_addr_t *target_addr, u8_t flags) global() argument
1449 nd6_send_rs(struct netif *netif) global() argument
1750 nd6_is_prefix_in_netif(const ip6_addr_t *ip6addr, struct netif *netif) global() argument
1790 nd6_select_router(const ip6_addr_t *ip6addr, struct netif *netif) global() argument
1864 struct netif *netif; global() local
1898 nd6_get_router(const ip6_addr_t *router_addr, struct netif *netif) global() argument
1925 nd6_new_router(const ip6_addr_t *router_addr, struct netif *netif) global() argument
1988 nd6_get_onlink_prefix(const ip6_addr_t *prefix, struct netif *netif) global() argument
2012 nd6_new_onlink_prefix(const ip6_addr_t *prefix, struct netif *netif) global() argument
2044 nd6_get_next_hop_entry(const ip6_addr_t *ip6addr, struct netif *netif) global() argument
2367 nd6_get_next_hop_addr_or_queue(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr, const u8_t **hwaddrp) global() argument
2408 nd6_get_destination_mtu(const ip6_addr_t *ip6addr, struct netif *netif) global() argument
2482 nd6_cleanup_netif(struct netif *netif) global() argument
2519 nd6_adjust_mld_membership(struct netif *netif, s8_t addr_idx, u8_t new_state) global() argument
2546 nd6_restart_netif(struct netif *netif) global() argument
[all...]
/third_party/lwip/src/include/lwip/apps/
H A Dmdns.h42 #include "lwip/netif.h"
68 * use for the name for the netif or a service and is safe to use, or MDNS_PROBING_CONFLICT
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, cons
[all...]
/third_party/lwip/test/fuzz/
H A Dfuzz.c34 #include "lwip/netif.h"
36 #include "netif/etharp.h"
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 in testif_init()
95 input_pkt(struct netif *netif, const u8_t *data, size_t len) input_pkt() argument
113 input_pkts(struct netif *netif, const u8_t *data, size_t len) input_pkts() argument
[all...]
/kernel/liteos_a/net/lwip-2.1/porting/include/lwip/
H A Dnetif.h35 #include <net/if.h> // For IFNAMSIZ/IF_NAMESIZE and `struct ifreq', by `lwip/netif.h' and `api/sockets.c'
48 void veth_init(struct netif *netif, struct net_group *group);
50 void (*drv_send)(struct netif *netif, struct pbuf *p); \
51 u8_t (*drv_set_hwaddr)(struct netif *netif, u8_t *addr, u8_t len); \
52 void (*drv_config)(struct netif *netif, u32_t config_flags, u8_t setBit); \
55 struct netif *pee
[all...]

Completed in 14 milliseconds

123456789