2025-04-08 18:46:12 +08:00

26 lines
836 B
C

#ifndef _NET_H_
#define _NET_H_
#include "lwip_netif_address.h"
#include "lwip/pbuf.h"
extern void uap_ip_down(void);
extern void uap_ip_start(void);
extern void sta_ip_down(void);
extern void sta_ip_start(void);
extern uint32_t uap_ip_is_start(void);
extern uint32_t sta_ip_is_start(void);
extern void *net_get_sta_handle(void);
extern void *net_get_uap_handle(void);
extern void net_wlan_remove_netif(void *mac);
extern int net_get_if_macaddr(void *macaddr, void *intrfc_handle);
extern int net_get_if_addr(struct wlan_ip_config *addr, void *intrfc_handle);
extern void ip_address_set(int iface, int dhcp, char *ip, char *mask, char *gw, char *dns);
//err_t low_level_output(struct netif *netif, struct pbuf *p);
void ethernetif_input(int iface, struct pbuf *p);
void net_set_sta_ipup_callback(void *fn);
#endif // _NET_H_
// eof