SimpleLink CC3120/CC3220 Host Driver  Version 2.0.1.15
Simplifies the implementation of Internet connectivity
NetUtil

Networking related commands and configuration. More...

Functions

_i32 sl_NetUtilSet (const _u16 Option, const _u32 ObjID, const _u8 *pValues, const _u16 ValueLen)
 Function for setting configurations of utilities. More...
 
_i16 sl_NetUtilGet (const _u16 Option, const _u32 ObjID, _u8 *pValues, _u16 *pValueLen)
 Function for getting configurations of utilities. More...
 
_i16 sl_NetUtilCmd (const _u16 Cmd, const _u8 *pAttrib, const _u16 AttribLen, const _u8 *pInputValues, const _u16 InputLen, _u8 *pOutputValues, _u16 *pOutputLen)
 Function for performing utilities-related commands. More...
 

Detailed Description

Networking related commands and configuration.

Function Documentation

_i16 sl_NetUtilCmd ( const _u16  Cmd,
const _u8 *  pAttrib,
const _u16  AttribLen,
const _u8 *  pInputValues,
const _u16  InputLen,
_u8 *  pOutputValues,
_u16 *  pOutputLen 
)

Function for performing utilities-related commands.

Returns
On success, zero is returned. On error, -1 is returned
Parameters
[in]CmdIdentifier of the specific Command to perform
[in]pAttribPointer to the buffer holding the Attribute values
[in]AttribLenLength of the Attribute-values
[in]pInputValuesPointer to the buffer holding the input-value
[in]InputLenLength of the input-value
[out]pOutputValuesPointer to the buffer that the application allocates, and will hold the received data
[in,out]pOutputLenLength of the output-value
On input - provides the length of the buffer that the application allocates, and will hold the output
On output - provides the actual length of the received output-values
Returns
Zero on success, or -1 on failure
See also
sl_NetUtilGet sl_NetUtilSet
Note
Warning
_i16 sl_NetUtilGet ( const _u16  Option,
const _u32  ObjID,
_u8 *  pValues,
_u16 *  pValueLen 
)

Function for getting configurations of utilities.

Parameters
[in]OptionIdentifier of the specific "get" operation to perform
[in]ObjIDID of the relevant object that this set operation will be performed on
[in,out]pValueLenPointer to the length of the value parameter
On input - provides the length of the buffer that the application allocates, and will hold the output
On output - provides the actual length of the received data
[out]pValuesPointer to the buffer that the application allocates, and will hold the received data
Returns
Zero on success, or -1 on failure
See also
sl_NetUtilSet sl_NetUtilCmd
Note
Warning
_i32 sl_NetUtilSet ( const _u16  Option,
const _u32  ObjID,
const _u8 *  pValues,
const _u16  ValueLen 
)

Function for setting configurations of utilities.

Parameters
[in]OptionIdentifier of the specific "set" operation to perform
[in]ObjIDID of the relevant object that this set operation will be performed on
[in]ValueLenLength of the value parameter
[in]pValuesPointer to the buffer holding the configurations values
Returns
Zero on success, or -1 on failure
See also
sl_NetUtilGet sl_NetUtilCmd
Note
Warning

Data Structure Documentation

struct SlNetUtilCryptoEcCustomCurveParam_t

Definition at line 147 of file netutil.h.

Data Fields
_u8 Padding[4]
union SlNetUtilCryptoEcCurveParams_u

Definition at line 154 of file netutil.h.

Data Fields
SlNetUtilCryptoEcCustomCurveParam_t CustomCurveParams
_u8 NamedCurveParams
struct SlNetUtilCryptoEcKeyParams_t

Definition at line 172 of file netutil.h.

Data Fields
SlNetUtilCryptoEcCurveParams_u CurveParams
_u8 CurveType
union SlNetUtilCryptoPubKeyParams_u

Definition at line 179 of file netutil.h.

Data Fields
SlNetUtilCryptoEcKeyParams_t EcParams
struct SlNetUtilCryptoPubKeyInfo_t

Definition at line 191 of file netutil.h.

Data Fields
_u8 CertFileNameLen
_u8 KeyAlgo
_u8 KeyFileNameLen
SlNetUtilCryptoPubKeyParams_u KeyParams
struct SlNetUtilCryptoCmdSignAttrib_t

Definition at line 203 of file netutil.h.

Data Fields
_u32 Flags
_u32 ObjId
_u32 SigType
struct SlNetUtilCryptoCmdVerifyAttrib_t

Definition at line 212 of file netutil.h.

Data Fields
_u32 Flags
_u16 MsgLen
_u32 ObjId
_u16 SigLen
_u32 SigType
struct SlNetUtilCryptoCmdCreateCertAttrib_t

Definition at line 222 of file netutil.h.

Data Fields
_u32 Flags
_u32 ObjId
_u16 SubCmd
struct SlNetUtilCryptoCmdKeyMgnt_t

Definition at line 231 of file netutil.h.

Data Fields
_u32 Flags
_u32 ObjId
_u16 SubCmd