/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/network/src/ |
H A D | net_device_adapter.c | 106 static int32_t LwipSendCheck(struct netif *netif, const struct pbuf *lwipBuf) in LwipSendCheck() argument 120 static void LwipSend(struct netif *netif, struct pbuf *lwipBuf) in LwipSend() argument 143 static uint8_t LwipSetHwaddr(struct netif *netif, uint8_t *addr, uint8_t len) in LwipSetHwaddr() argument 169 static void LwipDrvConfig(struct netif *netif, uint32_t conFlags, uint8_t bit) in LwipDrvConfig() argument 171 (void)netif; in LwipDrvConfig() 183 struct netif *lwipNf = NULL; in CreateLwipNetIf() 184 lwipNf = (struct netif *)OsalMemCalloc(sizeof(struct netif)); in CreateLwipNetIf() 189 (void)memset_s(lwipNf, sizeof(struct netif), 0, sizeof(struct netif)); in CreateLwipNetIf() 237 static void LiteNetifLinkChangeCallback(struct netif *netif) in LiteNetifLinkChangeCallback() argument 239 if (netif == NULL || netif->state == NULL) { in LiteNetifLinkChangeCallback() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/network/src/ |
H A D | net_device_adapter.c | 129 static int32_t LwipSendCheck(struct netif *netif, const struct pbuf *lwipBuf) in LwipSendCheck() argument 143 static void LwipSend(struct netif *netif, struct pbuf *lwipBuf) in LwipSend() argument 166 static uint8_t LwipSetHwaddr(struct netif *netif, uint8_t *addr, uint8_t len) in LwipSetHwaddr() argument 168 if (netif == NULL || addr == NULL) { in LwipSetHwaddr() 192 static void LwipDrvConfig(struct netif *netif, uint32_t conFlags, uint8_t bit) in LwipDrvConfig() argument 194 (void)netif; in LwipDrvConfig() 206 struct netif *lwipNf = NULL; in CreateLwipNetIf() 207 lwipNf = (struct netif *)OsalMemCalloc(sizeof(struct netif)); in CreateLwipNetIf() 259 static void LiteNetifLinkChangeCallback(struct netif *netif) in LiteNetifLinkChangeCallback() argument 261 if (netif == NULL || netif->state == NULL) { in LiteNetifLinkChangeCallback() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/model/misc/dsoftbus/src/ |
H A D | softbus_lwip_monitor.c | 74 static void NetifStatusCallback(struct netif *netif, netif_nsc_reason_t reason, in NetifStatusCallback() argument 80 if (netif == NULL || args == NULL) { in NetifStatusCallback() 84 dprintf("NetifStatusCallback(%s): nsc event: 0x%x\n", netif->full_name, (uint32_t)reason); in NetifStatusCallback() 85 …if (strncpy_s(reportInfo.ifName, NETIF_NAME_LENGTH, netif->full_name, strlen(netif->full_name)) !=… in NetifStatusCallback() 86 dprintf("NetifStatusCallback(%s): copy netif full name fail: %s\n", netif->full_name); in NetifStatusCallback() 93 …dprintf("NetifStatusCallback(%s): nsc status changed: %d\n", netif->full_name, args->status_change… in NetifStatusCallback() 97 dprintf("NetifStatusCallback(%s): nsc ipv4 addr changed\n", netif->full_name); in NetifStatusCallback() 100 … dprintf("NetifStatusCallback(%s): nsc netif added: %d\n", netif->full_name, netif_is_up(netif)); in NetifStatusCallback() 101 if (netif_is_up(netif)) { in NetifStatusCallback() 107 dprintf("NetifStatusCallback(%s): nsc netif removed\n", netif->full_name); in NetifStatusCallback()
|
/ohos5.0/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/ |
H A D | lnn_ip_utils_adapter.c | 28 struct netif *netif = NULL; in GetNetworkIpByIfName() local 34 netif = netif_find(ifName); in GetNetworkIpByIfName() 35 if (netif == NULL) { in GetNetworkIpByIfName() 40 netifapi_netif_get_addr(netif, ipAddr, netMask, NULL); in GetNetworkIpByIfName() 42 ipAddr = (ip4_addr_t *)netif_ip4_addr(netif); in GetNetworkIpByIfName() 43 netMask = (ip4_addr_t *)netif_ip4_netmask(netif); in GetNetworkIpByIfName()
|
/ohos5.0/foundation/communication/dsoftbus/adapter/common/bus_center/network/ |
H A D | lnn_lwip_monitor.c | 27 struct netif *netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t *args) in NetifStatusCallback() argument 30 if (netif == NULL) { in NetifStatusCallback() 38 char *ifName = lwip_if_indextoname(netif->num, ifnameBuffer); in NetifStatusCallback()
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-debug-shell-net-dhclient.md | 11 - dhclient <*netif name*> 13 - dhclient -x <*netif name*> 23 | <netif name> | Enables Dynamic Host Configuration Protocol (DHCP) for a networ… 24 | -x <netif name> | Disables DHCP for a NIC. | NIC name, **eth0*…
|
/ohos5.0/docs/zh-cn/device-dev/kernel/ |
H A D | kernel-small-debug-shell-net-dhclient.md | 23 | <netif name> | 启动对应网卡的dhcp请求。 | 网卡名字,eth0。 | 24 | -x <netif name> | 关闭对应网卡的dhcp功能。 | 网卡名字,eth0。 |
|
/ohos5.0/docs/zh-cn/device-dev/porting/ |
H A D | porting-bes2600w-on-minisystem-display-demo.md | 780 ethernetif_init(struct netif *netif) 787 netif->linkoutput = low_level_output; 789 netif->drv_send = liteos_low_level_output; 790 netif->hwaddr_len = NETIF_MAX_HWADDR_LEN; 791 low_level_init(netif); 792 driverif_init(netif); 890 static void RpcServerWifiDHCPSucCB(struct netif *netif, netif_nsc_reason_t reason, 894 if (netif == NULL) { 895 printf("%s %d, error: input netif is NULL!\n", __FUNCTION__, __LINE__); 899 if (netif_is_up(netif) && !ip_addr_isany(&netif->ip_addr)) {
|
H A D | porting-cst85f01-combo-demo.md | 611 static err_t net_if_init(struct netif *net_if)
|
/ohos5.0/base/security/selinux_adapter/sepolicy/base/system/ |
H A D | initial_sid_contexts | 23 sid netif u:object_r:netif:s0
|
H A D | initial_sids | 23 sid netif
|
H A D | security_classes | 32 class netif
|
H A D | access_vectors | 194 class netif
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/model/misc/dsoftbus/ |
H A D | Kconfig | 44 bool "enable dsoftbus lwip netif status changed monitor" 48 control hdf dsoftbus lwip netif status monitor capability.
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/network/include/ |
H A D | net_device_adapter.h | 46 struct netif *lwipNetif;
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/network/include/ |
H A D | net_device_adapter.h | 46 struct netif *lwipNetif;
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_buscenter/src/ |
H A D | lnn_network_manager.c | 792 LnnNetIfMgr *netif = NULL; in LnnGetNetIfTypeByName() local 793 LIST_FOR_EACH_ENTRY(netif, &g_netIfNameList, LnnNetIfMgr, node) { in LnnGetNetIfTypeByName() 794 if (strncmp(ifName, netif->ifName, sizeof(netif->ifName)) == 0) { in LnnGetNetIfTypeByName() 795 *type = netif->type; in LnnGetNetIfTypeByName()
|
/ohos5.0/base/security/selinux_adapter/sepolicy/base/public/ |
H A D | basetype.te | 16 type netif;
|
/ohos5.0/docs/en/device-dev/porting/ |
H A D | porting-bes2600w-on-minisystem-display-demo.md | 779 ethernetif_init(struct netif *netif) 786 netif->linkoutput = low_level_output; 788 netif->drv_send = liteos_low_level_output; 789 netif->hwaddr_len = NETIF_MAX_HWADDR_LEN; 790 low_level_init(netif); 791 driverif_init(netif); 889 static void RpcServerWifiDHCPSucCB(struct netif *netif, netif_nsc_reason_t reason, 893 if (netif == NULL) { 894 printf("%s %d, error: input netif is NULL!\n", __FUNCTION__, __LINE__); 898 if (netif_is_up(netif) && !ip_addr_isany(&netif->ip_addr)) {
|
H A D | porting-cst85f01-combo-demo.md | 609 static err_t net_if_init(struct netif *net_if)
|
/ohos5.0/base/security/selinux_adapter/sepolicy/min/ |
H A D | security_classes | 32 class netif
|
H A D | access_vectors | 194 class netif
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/discovery/dfinder/ |
H A D | nstackx_test.c | 82 struct netif *wifiNetIf = NULL; in GetLocalWifiIp()
|
/ohos5.0/foundation/communication/ipc/ipc/test/rpc/socket_trans/src/ |
H A D | rpc_mini_socket_trans.c | 371 extern struct netif if_wifi; in GetSocketLocalDeviceID()
|