40 #include "simplelink.h"
65 #define SL_MAC_ADDR_LEN (6)
66 #define SL_IPV4_VAL(add_3,add_2,add_1,add_0) ((((_u32)add_3 << 24) & 0xFF000000) | (((_u32)add_2 << 16) & 0xFF0000) | (((_u32)add_1 << 8) & 0xFF00) | ((_u32)add_0 & 0xFF) )
67 #define SL_IPV4_BYTE(val,index) ( (val >> (index*8)) & 0xFF )
69 #define IPCONFIG_MODE_DISABLE_IPV4 (0)
70 #define IPCONFIG_MODE_ENABLE_IPV4 (1)
77 SL_MAC_ADDRESS_SET = 1,
78 SL_MAC_ADDRESS_GET = 2,
79 SL_IPV4_STA_P2P_CL_GET_INFO = 3,
80 SL_IPV4_STA_P2P_CL_DHCP_ENABLE = 4,
81 SL_IPV4_STA_P2P_CL_STATIC_ENABLE = 5,
82 SL_IPV4_AP_P2P_GO_GET_INFO = 6,
83 SL_IPV4_AP_P2P_GO_STATIC_ENABLE = 7,
84 SL_SET_HOST_RX_AGGR = 8,
85 SL_IPV4_DHCP_CLIENT = 9,
86 SL_IPV4_DNS_CLIENT = 10,
87 SL_IPV4_ARP_FLUSH = 11,
114 SL_NETCFG_DHCP_CLIENT_UNKNOWN = 0,
115 SL_NETCFG_DHCP_CLIENT_DISABLED,
116 SL_NETCFG_DHCP_CLIENT_ENABLED,
117 SL_NETCFG_DHCP_CLIENT_BOUND,
118 SL_NETCFG_DHCP_CLIENT_RENEW,
119 SL_NETCFG_DHCP_CLIENT_REBIND
120 }SlNetCfgIpv4DhcpClientState_e;
124 _u32 DnsSecondServerAddr;
244 #if _SL_INCLUDE_FUNC(sl_NetCfgSet)
245 _i32
sl_NetCfgSet(
const _u8 ConfigId,
const _u8 ConfigOpt,
const _u8 ConfigLen,
const _u8 *pValues);
356 #if _SL_INCLUDE_FUNC(sl_NetCfgGet)
357 _i32
sl_NetCfgGet(
const _u8 ConfigId ,_u8 *pConfigOpt, _u8 *pConfigLen, _u8 *pValues);
_i32 sl_NetCfgGet(const _u8 ConfigId, _u8 *pConfigOpt, _u8 *pConfigLen, _u8 *pValues)
Internal function for getting network configurations.
_i32 sl_NetCfgSet(const _u8 ConfigId, const _u8 ConfigOpt, const _u8 ConfigLen, const _u8 *pValues)
Internal function for setting network configurations.