Home
last modified time | relevance | path

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

123

/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/
H A Dnetif.h3 * netif API (to be used from TCPIP thread)
52 #include "netif/etharp.h"
53 #include "netif/driverif.h"
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
411 struct netif { global() struct
[all...]
H A Dnetifapi.h3 * netif API (to be used from non-TCPIP threads)
42 #include "lwip/netif.h"
61 typedef void (*netifapi_void_fn)(struct netif *netif);
62 typedef err_t (*netifapi_arg_fn)(struct netif *netif, void *arg);
64 typedef err_t (*netifapi_errt_fn)(struct netif *netif);
77 struct netif *p_netif;
83 struct netif *neti member
[all...]
H A Dnd6.h94 struct netif;
96 void nd6_remove_netif_neighbor_cache_entries(struct netif *netif);
109 void nd6_input(struct pbuf *p, struct netif *inp);
110 void nd6_rs_input(struct pbuf *p, struct netif *inp, u8_t flags);
111 err_t nd6_send_ra(struct netif *netif, const ip6_addr_t *target_addr, u8_t flags);
113 struct netif *nd6_find_route(const ip6_addr_t *ip6addr);
114 err_t nd6_get_next_hop_addr_or_queue(struct netif *netif, struc
[all...]
H A Ddhcp.h45 #include "lwip/netif.h"
126 #define DHCP_MAX_MSG_LEN(netif) (netif->mtu)
229 /* cli_idx = LWIP_DHCP_NATIVE_IDX always means the client for the netif */
266 struct netif *netif; member
276 void dhcp_set_struct(struct netif *netif, struct dhcp *dhcp);
277 /* Remove a struct dhcp previously set to the netif using dhcp_set_struct() */
278 void dhcp_remove_struct(struct netif *neti
[all...]
H A Detharp.h5 * To be used in most low-level netif implementations
51 #include "lwip/netif.h"
119 struct netif *netif; member
127 s8_t etharp_find_addr(struct netif *netif, const ip4_addr_t *ipaddr,
131 u8_t etharp_get_entry(u8_t i, ip4_addr_t **ipaddr, struct netif **netif, struct eth_addr **eth_ret);
133 err_t etharp_output(struct netif *netif, struc
[all...]
H A Dautoip.h48 #include "lwip/netif.h"
59 /* AutoIP state information per netif */
75 void autoip_set_struct(struct netif *netif, struct autoip *autoip);
76 /* Remove a struct autoip previously set to the netif using autoip_set_struct() */
77 #define autoip_remove_struct(netif) do { (netif)->autoip = NULL; } while (0)
78 err_t autoip_start(struct netif *netif);
79 err_t autoip_stop(struct netif *neti
[all...]
H A Dmld6.h51 #include "lwip/netif.h"
78 err_t mld6_stop(struct netif *netif);
79 void mld6_report_groups(struct netif *netif);
81 struct mld_group *mld6_lookfor_group(struct netif *ifp, const ip6_addr_t *addr);
82 void mld6_input(struct pbuf *p, struct netif *inp);
84 err_t mld6_joingroup_netif(struct netif *netif, const ip6_addr_t *groupaddr);
85 err_t mld6_join_staticgroup_netif(struct netif *neti
[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...]
H A Dip4.h64 struct netif;
69 struct netif *ip4_route(const ip4_addr_t *dest, rt_scope_t scope);
71 struct netif *ip4_route_src(const ip4_addr_t *src, const ip4_addr_t *dest, rt_scope_t scope);
76 struct netif *ip4_route(const ip4_addr_t *dest);
78 struct netif *ip4_route_src(const ip4_addr_t *src, const ip4_addr_t *dest);
85 err_t ip4_input(struct pbuf *p, struct netif *inp);
91 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif);
93 u8_t ttl, u8_t tos, u8_t proto, struct netif *netif);
[all...]
H A Digmp.h45 #include "lwip/netif.h"
107 * @param netif network interface on which start IGMP processing
108 * @return ERR_OK if IGMP was started on the netif(s), an err_t otherwise
112 err_t igmp_start(struct netif *netif);
118 * @param netif network interface on which stop IGMP processing
119 * @return ERR_OK if IGMP was stopped on the netif(s), an err_t otherwise
123 err_t igmp_stop(struct netif *netif);
129 * @param netif networ
[all...]
H A Ddhcp6.h14 #include "lwip/netif.h"
115 void dhcp6_set_struct(struct netif *netif, struct dhcp6 *dhcp6);
116 /* Remove a struct dhcp6 previously set to the netif using dhcp6_set_struct() */
117 #define dhcp6_remove_struct(netif) netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP6, NULL)
118 void dhcp6_cleanup(struct netif *netif);
120 err_t dhcp6_enable_stateful(struct netif *netif);
[all...]
H A Dethtool.h39 #include "lwip/netif.h"
42 #include "netif/ifaddrs.h"
114 s32_t (*get_link)(struct netif *netif);
115 s32_t (*get_settings)(struct netif *netif, struct ethtool_cmd *cmd); /**< Gets the current settings */
116 s32_t (*set_settings)(struct netif *netif, struct ethtool_cmd *cmd); /**< Configures settings */
118 int (*begin)(struct netif *netif);
[all...]
H A Dip.h46 #include "lwip/netif.h"
88 /* the netif set by bindtodevice */ \
126 struct netif *current_netif;
128 struct netif *current_input_netif;
154 * This may or may not be the receiving netif, depending on your netif/network setup.
273 * Output IP packet, netif is selected by source address
284 #define ip_output_if(p, src, dest, ttl, tos, proto, netif) \
286 ip6_output_if(p, ip_2_ip6(src), ip_2_ip6(dest), ttl, tos, proto, netif) : \
287 ip4_output_if(p, ip_2_ip4(src), ip_2_ip4(dest), ttl, tos, proto, netif))
[all...]
H A Ddhcps.h39 #include "lwip/netif.h"
64 err_t dhcps_start(struct netif *netif, const char *start_ip, u16_t ip_num);
65 void dhcps_stop(struct netif *netif);
67 err_t dhcps_find_client_lease(struct netif *netif, u8_t *mac, u8_t maclen, ip_addr_t *ip);
69 void dhcps_client_disconnect(struct netif *netif, const u8_t *mac, u8_t maclen);
H A Dip6.h52 #include "lwip/netif.h"
80 struct netif *ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest
106 * @param netif the netif on which to send a packet
112 const ip_addr_t *ip6_select_source_address(struct netif *netif, const ip6_addr_t *dest);
114 const ip6_addr_t *ip6_select_first_valid_address(struct netif *netif);
130 err_t ip6_input(struct pbuf *p, struct netif *inp);
136 u8_t hl, u8_t tc, u8_t nexth, struct netif *neti
[all...]
H A Dip6_zone.h32 * lwIP link layer (everything below netif->output_ip6() and in particular ND6)
167 * the given netif; otherwise, the assigned zone index is "no zone".
178 * @param netif the network interface (const).
180 #define ip6_addr_assign_zone(ip6addr, type, netif) \
182 ip6_addr_has_scope((ip6addr), (type)) ? netif->ifindex : 0))
190 * considered not zone-compatible with any netif.
195 * As such, there is always only one matching netif for a specific zone index,
200 * @param netif the network interface (const).
201 * @return 1 if the address is scope-compatible with the netif, 0 if not.
203 #define ip6_addr_test_zone(ip6addr, netif) \
[all...]
H A Dnat64.h9 #include "lwip/netif.h"
66 err_t nat64_init(struct netif *ntf);
97 int nat64_ip4_input(struct pbuf *p, struct ip_hdr *iphdr, const struct netif *inp);
115 int nat64_ip6_input(struct pbuf *p, struct ip6_hdr *iphdr, const struct netif *inp);
173 struct netif *nat64_netif_get(void);
183 err_t nat64_deinit_netif(const struct netif *ntf);
189 void nat64_proxy_unsolicited_na(const struct netif *netif);
H A Dudp.h46 #include "lwip/netif.h"
140 struct netif *netif);
143 struct netif *netif, const ip_addr_t *src_ip);
151 struct netif *netif, u8_t have_chksum,
159 const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif,
171 void udp_input (struct pbuf *p, struct netif *in
[all...]
H A Dlwip_rpl.h8 #include "lwip/netif.h"
20 uint8_t lwip_rpl_is_rpl_netif(const struct netif *nif);
21 struct netif *lwip_rpl_route_netif_lookup(const ip6_addr_t *src, const ip6_addr_t *dest);
22 err_t lwip_rpl_get_ra_prefix(const struct netif *nif, ip6_addr_t *prefix);
23 const ip6_addr_t *lwip_rpl_route_nexthop_lookup(struct netif *iface, const ip6_addr_t *ip6addr);
28 err_t ip6_update_rpi(struct pbuf *p, const struct netif *inp);
43 int rpl_context_netif_free(const struct netif *nif);
H A Dtcpip.h46 #include "lwip/netif.h"
71 struct netif;
163 err_t tcpip_inpkt(struct pbuf *p, struct netif *inp, netif_input_fn input_fn);
164 err_t tcpip_input(struct pbuf *p, struct netif *inp);
167 err_t tcpip_lln_inpkt(struct netif *iface, struct pbuf *p,
171 err_t tcpip_lln_input(struct netif *iface, struct pbuf *p,
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/netif/
H A Ddriverif.h15 #include "netif/etharp.h"
21 /** Type of link layer, these macros should be used for link_layer_type of struct netif */
24 /** Type of link layer, these macros should be used for link_layer_type of struct netif */
26 /** Type of link layer, these macros should be used for link_layer_type of struct netif */
28 /** Type of link layer, these macros should be used for link_layer_type of struct netif */
30 /** Type of link layer, these macros should be used for link_layer_type of struct netif */
49 typedef void (*drv_send_fn)(struct netif *netif, struct pbuf *p);
52 typedef err_t (*drv_send_lln_fn)(struct netif *netif, struc
[all...]
H A Dlowpan6.h45 #include "netif/lowpan6_opts.h"
52 #include "lwip/netif.h"
66 * Its basically the netif that added the lowpan context
85 err_t lowpan6_set_context(struct netif *hwface, u8_t index, const ip6_addr_t *context);
86 err_t lowpan6_remove_context(struct netif *hwface, u8_t ctxid);
90 err_t lowpan4_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr);
92 err_t lowpan6_output(struct netif *netif, struct pbuf *q, const struct linklayer_addr *dstlinkaddr);
94 err_t lowpan6_input(struct pbuf *p, struct netif *neti
[all...]
H A Dethernet.h4 * To be used in most low-level netif implementations
47 #include "lwip/netif.h"
56 /* Define this to 1 and define LWIP_ARP_FILTER_NETIF_FN(pbuf, netif, type)
57 * to a filter function that returns the correct netif when using multiple
58 * netifs on one hardware interface where the netif's low-level receive
59 * routine cannot decide for the correct netif (e.g. when mapping multiple
66 err_t ethernet_input(struct pbuf *p, struct netif *netif);
67 err_t ethernet_input_list(struct pbuf *p, struct netif *netif);
[all...]
/device/qemu/riscv32_virt/liteos_m/board/driver/
H A Dvirtnet.c63 /* kernel changed lwip 'netif->client_data' size, so this should be prior */
67 #include "lwip/netif.h"
145 struct netif *netif = dev; in Feature0() local
146 struct VirtNetif *nic = netif->state; in Feature0()
155 netif->mtu = conf->mtu; in Feature0()
158 netif->mtu = ETH_DATA_LEN; in Feature0()
163 netif->hwaddr[i] = conf->mac[i]; in Feature0()
165 netif->hwaddr_len = ETHARP_HWADDR_LEN; in Feature0()
345 static err_t LowLevelOutput(struct netif *neti argument
393 LowLevelInput(const struct netif *netif, const struct VirtqUsedElem *e) LowLevelInput() argument
419 VirtnetRxHandle(struct netif *netif) VirtnetRxHandle() argument
468 struct netif *netif = (struct netif *)param; VirtnetIRQhandle() local
482 LowLevelInit(struct netif *netif) LowLevelInit() argument
519 EthernetIfInit(struct netif *netif) EthernetIfInit() argument
547 VirtnetDeInit(struct netif *netif) VirtnetDeInit() argument
572 struct netif *netif = NULL; VirtnetInit() local
[all...]
/device/soc/rockchip/rk2206/adapter/hals/communication/wifi_lite/wifiservice/source/
H A Dwifi_device.c383 struct netif *netif = netif_find("wlan0"); in GetLocalWifiGw() local
384 if (netif == NULL) { in GetLocalWifiGw()
385 LZ_HARDWARE_LOGE(WIFI_DEVICE_TAG, "GetLocalWifiGw: netif get fail\n"); in GetLocalWifiGw()
389 *gw = ip_addr_get_ip4_u32(&netif->gw); in GetLocalWifiGw()
398 struct netif *netif; in SetLocalWifiGw() local
401 netif = netif_get_by_index(i); in SetLocalWifiGw()
402 if (netif != NULL) { in SetLocalWifiGw()
404 netif in SetLocalWifiGw()
421 struct netif *netif = netif_find("wlan0"); GetLocalWifiNetmask() local
433 struct netif *netif = netif_find("wlan0"); GetLocalWifiIp() local
[all...]

Completed in 16 milliseconds

123