Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.11.1.2
Functions
This Code Implements The OpEN IP6 RADV API [OPENAPI_IP6RADV]

Functions

open_error_t openapiIp6RtrRadvAdvLifetimeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
 Get IPv6 router advertise lifetime. More...
 
open_error_t openapiIp6RtrRadvAdvLifetimeSet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t val)
 Set IPv6 router advertise lifetime. More...
 
open_error_t openapiIp6RtrRadvAdvMtuGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
 Get IPv6 router advertise link mtu. More...
 
open_error_t openapiIp6RtrRadvAdvMtuSet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t val)
 Set IPv6 router advertise link mtu. More...
 
open_error_t openapiIp6RtrRadvHopLimitUnspec (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t flag)
 Set IPv6 hop limit advertised on the interface to unspecified(0). More...
 
open_error_t openapiIp6RtrRadvHopLimitUnspecGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *flag)
 Get whether IPv6 hop limit advertised on the interface to unspecified(0) More...
 
open_error_t openapiIp6RtrRadvManagedFlagGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *flag)
 Get IPv6 router advertise managed flag. More...
 
open_error_t openapiIp6RtrRadvManagedFlagSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t flag)
 Set IPv6 router advertise managed flag. More...
 
open_error_t openapiIp6RtrRadvMaxAdvIntGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
 Get IPv6 router advertise Maximum advertisement interval. More...
 
open_error_t openapiIp6RtrRadvMaxAdvIntSet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t val)
 Set IPv6 router advertise Maximum advertisement interval. More...
 
open_error_t openapiIp6RtrRadvMinAdvIntGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
 Get IPv6 router advertise Minimum advertisement interval. More...
 
open_error_t openapiIp6RtrRadvMinAdvIntSet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t val)
 Set IPv6 router advertise Minimum advertisement interval. More...
 
open_error_t openapiIp6RtrRadvOtherCfgFlagGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *flag)
 Get IPv6 router advertise other-config flag. More...
 
open_error_t openapiIp6RtrRadvOtherCfgFlagSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t flag)
 Set IPv6 router advertise other-config flag. More...
 
open_error_t openapiIp6RtrRadvPrefixGet (openapiClientHandle_t *client_handle, uint32_t ifNum, open_inet_addr_t *prefix, uint32_t plen, uint32_t *prefLife, uint32_t *validLife, OPEN_BOOL_t *onLink, OPEN_BOOL_t *autonomous)
 Get IPv6 router as per prefix attributes. More...
 
open_error_t openapiIp6RtrRadvPrefixSet (openapiClientHandle_t *client_handle, uint32_t ifNum, open_inet_addr_t *prefix, uint32_t plen, uint32_t prefLife, uint32_t validLife, uint16_t lifeDecrFlags, OPEN_BOOL_t onLink, OPEN_BOOL_t autonomous)
 Set IPv6 router as per prefix attributes. More...
 
open_error_t openapiIp6RtrRadvRtrPrefGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
 Get IPv6 router preference. More...
 
open_error_t openapiIp6RtrRadvRtrPrefSet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t val)
 Set IPv6 router preference. More...
 
open_error_t openapiIp6RtrRadvSuppressGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *flag)
 Get IPv6 router advertise suppression. More...
 
open_error_t openapiIp6RtrRadvSuppressSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t flag)
 Set IPv6 router advertise suppression. More...
 

Detailed Description

Function Documentation

open_error_t openapiIp6RtrRadvAdvLifetimeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t *  val 
)

Get IPv6 router advertise lifetime.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[out]valPointer to value in seconds
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvAdvLifetimeSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  val 
)

Set IPv6 router advertise lifetime.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[in]valValue in seconds
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvAdvMtuGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t *  val 
)

Get IPv6 router advertise link mtu.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[out]valPointer to MTU value
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvAdvMtuSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  val 
)

Set IPv6 router advertise link mtu.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[in]valMTU value
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvHopLimitUnspec ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t  flag 
)

Set IPv6 hop limit advertised on the interface to unspecified(0).

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[in]flagOPEN_TRUE or OPEN_FALSE
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvHopLimitUnspecGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t flag 
)

Get whether IPv6 hop limit advertised on the interface to unspecified(0)

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[out]flagOPEN_TRUE or OPEN_FALSE
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvManagedFlagGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t flag 
)

Get IPv6 router advertise managed flag.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[out]flagOPEN_TRUE or OPEN_FALSE
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvManagedFlagSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t  flag 
)

Set IPv6 router advertise managed flag.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[in]flagOPEN_TRUE or OPEN_FALSE
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvMaxAdvIntGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t *  val 
)

Get IPv6 router advertise Maximum advertisement interval.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[out]valPointer to value in seconds
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvMaxAdvIntSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  val 
)

Set IPv6 router advertise Maximum advertisement interval.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[in]valValue in seconds
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvMinAdvIntGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t *  val 
)

Get IPv6 router advertise Minimum advertisement interval.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[out]valPointer to value in seconds
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvMinAdvIntSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  val 
)

Set IPv6 router advertise Minimum advertisement interval.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[in]valValue in seconds
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvOtherCfgFlagGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t flag 
)

Get IPv6 router advertise other-config flag.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[out]flagOPEN_TRUE or OPEN_FALSE
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvOtherCfgFlagSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t  flag 
)

Set IPv6 router advertise other-config flag.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[in]flagOPEN_TRUE or OPEN_FALSE
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvPrefixGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
open_inet_addr_t prefix,
uint32_t  plen,
uint32_t *  prefLife,
uint32_t *  validLife,
OPEN_BOOL_t onLink,
OPEN_BOOL_t autonomous 
)

Get IPv6 router as per prefix attributes.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[in]prefixPointer to prefix
[in]plenPrefix length
[out]prefLifePreferred life
[out]validLifeValid life
[out]onLinkOnlink flag (OPEN_TRUE or OPEN_FALSE)
[out]autonomousAutonomous flag (OPEN_TRUE or OPEN_FALSE)
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvPrefixSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
open_inet_addr_t prefix,
uint32_t  plen,
uint32_t  prefLife,
uint32_t  validLife,
uint16_t  lifeDecrFlags,
OPEN_BOOL_t  onLink,
OPEN_BOOL_t  autonomous 
)

Set IPv6 router as per prefix attributes.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[in]prefixPointer to prefix
[in]plenPrefix length
[in]prefLifePreferred life
[in]validLifeValid life
[in]lifeDecrFlagsFlags for lifetime decrement mode
[in]onLinkOnlink flag (OPEN_TRUE or OPEN_FALSE)
[in]autonomousAutonomous flag (OPEN_TRUE or OPEN_FALSE)
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvRtrPrefGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t *  val 
)

Get IPv6 router preference.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[out]valPointer to preference value
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvRtrPrefSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t  val 
)

Set IPv6 router preference.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[in]valPreference value
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvSuppressGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t flag 
)

Get IPv6 router advertise suppression.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[out]flagOPEN_TRUE or OPEN_FALSE
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.
open_error_t openapiIp6RtrRadvSuppressSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t  flag 
)

Set IPv6 router advertise suppression.

Parameters
[in]client_handleClient handle from registration API
[in]ifNumInternal Interface Number
[in]flagOPEN_TRUE or OPEN_FALSE
Return values
OPEN_E_UNAVAILFeature is not supported
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.25

Examples:
ip6radv_example.c.