XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_netif.h 文件参考
#include "xf_utils.h"
#include "xf_netif_types.h"
xf_netif.h 的引用(Include)关系图:

浏览源代码.

函数

xf_err_t xf_netif_set_hostname (xf_netif_t netif_hdl, const char *hostname, uint32_t len)
 设置当前 netif 句柄对应的主机名。
 
xf_err_t xf_netif_get_hostname (xf_netif_t netif_hdl, char hostname[], uint32_t len)
 获取当前 netif 句柄对应的主机名。
 
bool xf_netif_is_netif_up (xf_netif_t netif_hdl)
 检测当前 netif 句柄对应设备是否上线。
 
xf_err_t xf_netif_get_ip_info (xf_netif_t netif_hdl, xf_netif_ip_info_t *ip_info)
 获取指定 netif 句柄的 IPv4 信息(ip地址、网关、子网掩码)。
 
xf_err_t xf_netif_set_ip_info (xf_netif_t netif_hdl, const xf_netif_ip_info_t *ip_info)
 设置指定 netif 句柄的 IPv4 信息(ip地址、网关、子网掩码)。
 
xf_err_t xf_netif_dhcpc_start (xf_netif_t netif_hdl)
 设置指定 netif 句柄启动 DHCP 客户端。
 
xf_err_t xf_netif_dhcpc_stop (xf_netif_t netif_hdl)
 设置指定 netif 句柄停止 DHCP 客户端。
 
xf_err_t xf_netif_dhcps_start (xf_netif_t netif_hdl)
 设置指定 netif 句柄启动 DHCP 服务端。
 
xf_err_t xf_netif_dhcps_stop (xf_netif_t netif_hdl)
 设置指定 netif 句柄停止 DHCP 服务端。
 
xf_err_t xf_netif_dhcps_get_clients_by_mac (xf_netif_t netif_hdl, xf_netif_pair_mac_ip_t mac_ip_pair_array[], uint32_t pair_array_size)
 根据 MAC 地址获取对应的 IP(对于 DHCP 服务器)。
 
xf_err_t xf_netif_set_dns_info (xf_netif_t netif_hdl, xf_netif_dns_type_t type, xf_netif_dns_info_t *dns)
 设置指定 netif 句柄的 DNS 服务端。
 
xf_err_t xf_netif_get_dns_info (xf_netif_t netif_hdl, xf_netif_dns_type_t type, xf_netif_dns_info_t *dns)
 从指定 netif 句柄获取的 DNS 服务端信息。
 

详细描述

作者
catcatBlue (catca.nosp@m.tblu.nosp@m.e@qq..nosp@m.com)
版本
1.0
日期
2024-06-11

Copyright (c) 2024, CorAL. All rights reserved.

在文件 xf_netif.h 中定义.