1 Star 0 Fork 4.9K

Cain / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
NetDeviceInterFace.md 8.01 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

NetDeviceInterFace

Overview

Related Modules:

WLAN

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(* 

1
https://gitee.com/cain_qin/docs.git
git@gitee.com:cain_qin/docs.git
cain_qin
docs
docs
master

搜索帮助