加入收藏
举报
02-14 20:02
#0
文件名称:
NetDeviceInterFace.md
所在目录:
Openharmony v1.0 / docs / api / api-SmartVision-Devices
文件大小:
8.01 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# NetDeviceInterFace
## **Overview**
**Related Modules:**
[WLAN](WLAN.md)
**Description:**
Defines interfaces that need to be implemented externally by network devices, including initializing, opening, and closing a network device.
**Since:**
1.0
## **Summary**
## Data Fields













































Variable Name


Description


init )(struct NetDevice *netDev)


int32_t(* 


deInit )(struct NetDevice *netDev)


void(* 


open )(struct NetDevice *netDev)


int32_t(* 


stop )(struct NetDevice *netDev)


int32_t(* 


xmit )(struct NetDevice *netDev, struct NetBuf *netBuff)


NetDevTxResult(* 


ioctl )(struct NetDevice *netDev, IfReq *req, int32_t cmd)


int32_t(* 


setMacAddr )(struct NetDevice *netDev, void *addr)


int32_t(* 


getStats )(struct NetDevice *netDev)


struct NetDevStats *(* 


setNetIfStatus )(struct NetDevice *netDev, NetIfStatus status)


void(* 


selectQueue )(struct NetDevice *netDev, struct NetBuf *netBuff)


uint16_t(* 


netifNotify )(struct NetDevice *netDev, NetDevNotify *notify)


uint32_t(* 


changeMtu )(struct NetDevice *netDev, int32_t newMtu)


int32_t(* 


specialEtherTypeProcess )(const struct NetDevice *netDev, struct NetBuf *buff)


ProcessingResult(* 


点赞 回复
回帖
支持markdown部分语法 ?