8#ifndef __ETHERNETIF_H__
9#define __ETHERNETIF_H__
14#include "tuya_cloud_types.h"
105#if LWIP_EAPOL_SUPPORT
106extern int tuya_hostap_eapol_input(
int vif_index,
unsigned char *buf,
unsigned short len);
109int tuya_ethernetif_get_ifindex_by_mac(NW_MAC_S *mac, TUYA_NETIF_TYPE *net_if_idx);
111int tuya_ethernetif_get_dns_srv(NW_IP_TYPE type, NW_IP_S *ip);
struct netif * tuya_ethernetif_get_netif_by_index(const TUYA_NETIF_TYPE net_if_idx)
get netif by index
int tuya_ethernetif_mac_set(const TUYA_NETIF_TYPE net_if_idx, NW_MAC_S *mac)
set netif's mac
int tuya_ethernetif_get_ip(const TUYA_NETIF_TYPE net_if_idx, NW_IP_TYPE type, NW_IP_S *ip)
get netif ipaddr from lwip
int tuya_ethernetif_mac_get(const TUYA_NETIF_TYPE net_if_idx, NW_MAC_S *mac)
get netif's mac
err_t tuya_ethernetif_init(struct netif *netif)
netif check(check netif is up/down and ip is valid)
s8_t err_t
Definition: err.h:96
Definition: ethernetif.h:27