Snapdragon® Telematics Application Framework (TelAF) Interface Specification
|
Go to the source code of this file.
le_msg_ServiceRef_t taf_net_GetServiceRef | ( | void | ) |
Get the server service reference
le_msg_SessionRef_t taf_net_GetClientSessionRef | ( | void | ) |
Get the client session reference for the current message
void taf_net_AdvertiseService | ( | void | ) |
Initialize the server and advertise the service.
taf_net_RouteChangeHandlerRef_t taf_net_AddRouteChangeHandler | ( | taf_net_RouteChangeHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
IP protocol. Network action. Network IP type. The technology. The state. L2TP encapsulation protocols. Preferred IP family for the connection. The VLAN interface type. Binding action. The device mode. The SOCKS authentication type. The GSB interface type. The destination NAT change indication. The interface information. The DNS server addresses. The route change indication. The gateway change indication. The DNS change indication. L2TP tunnel session configuration. Destination NAT entry list reference. VLAN reference. VLAN entry list reference. VLAN entry reference. VLAN interface list reference. VLAN interface reference. Tunnel entry list reference. Tunnel entry reference. Tunnel reference. The reference of a GSB list. The reference of a GSB. Handler for route changes. Reference type used by Add/Remove functions for EVENT 'taf_net_RouteChange' Handler for gateway changes. Reference type used by Add/Remove functions for EVENT 'taf_net_GatewayChange' Handler for DNS changes. Reference type used by Add/Remove functions for EVENT 'taf_net_DNSChange' Handler for destination NAT changes. Handler for asynchronous starting or stopping tunnel result response. Handler for asynchronous enabling or disabling L2TP result response. Handler for asynchronous enabling or disabling SOCKS result response. Reference type used by Add/Remove functions for EVENT 'taf_net_DestNatChange' Add handler function for EVENT 'taf_net_RouteChange'
Event to report route changes.
Add handler function for EVENT 'taf_net_RouteChange'
Event to report route changes.
[in] | handlerPtr | Handler for route changes. |
[in] | contextPtr |
void taf_net_RemoveRouteChangeHandler | ( | taf_net_RouteChangeHandlerRef_t | handlerRef | ) |
Remove handler function for EVENT 'taf_net_RouteChange'
[in] | handlerRef |
taf_net_GatewayChangeHandlerRef_t taf_net_AddGatewayChangeHandler | ( | taf_net_GatewayChangeHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
Add handler function for EVENT 'taf_net_GatewayChange'
Event to report gateway changes.
[in] | handlerPtr | Handler for gateway changes. |
[in] | contextPtr |
void taf_net_RemoveGatewayChangeHandler | ( | taf_net_GatewayChangeHandlerRef_t | handlerRef | ) |
Remove handler function for EVENT 'taf_net_GatewayChange'
[in] | handlerRef |
taf_net_DNSChangeHandlerRef_t taf_net_AddDNSChangeHandler | ( | taf_net_DNSChangeHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
Add handler function for EVENT 'taf_net_DNSChange'
Event to report DNS changes.
[in] | handlerPtr | Handler for DNS changes. |
[in] | contextPtr |
void taf_net_RemoveDNSChangeHandler | ( | taf_net_DNSChangeHandlerRef_t | handlerRef | ) |
Remove handler function for EVENT 'taf_net_DNSChange'
[in] | handlerRef |
taf_net_DestNatChangeHandlerRef_t taf_net_AddDestNatChangeHandler | ( | taf_net_DestNatChangeHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
Add handler function for EVENT 'taf_net_DestNatChange'
Event to report destination NAT change.
[in] | handlerPtr | Handler for destination NAT changes. |
[in] | contextPtr |
void taf_net_RemoveDestNatChangeHandler | ( | taf_net_DestNatChangeHandlerRef_t | handlerRef | ) |
Remove handler function for EVENT 'taf_net_DestNatChange'
[in] | handlerRef |
le_result_t taf_net_GetInterfaceList | ( | taf_net_InterfaceInfo_t * | ifInfoListPtr, |
size_t * | ifInfoListSizePtr | ||
) |
Gets the interface information list.
[out] | ifInfoListPtr | Interface information list. |
[in,out] | ifInfoListSizePtr |
le_result_t taf_net_ChangeRoute | ( | const char *LE_NONNULL | interfaceName, |
const char *LE_NONNULL | destAddr, | ||
const char *LE_NONNULL | subnetMask, | ||
uint16_t | metric, | ||
taf_net_NetAction_t | isAdd | ||
) |
Adds or removes a route.
[in] | interfaceName | The interface name. |
[in] | destAddr | Destination IP address. |
[in] | subnetMask | Destination's subnet mask or length string. |
[in] | metric | Metric. |
[in] | isAdd | Add or delete. |
le_result_t taf_net_BackupDefaultGW | ( | void | ) |
Backs up the current default gateway of the system into DB, including both IPv4 and IPv6.
le_result_t taf_net_RestoreDefaultGW | ( | void | ) |
Restores the default gateway of the system from the last backed up one, including IPv4 and/or IPv6. Only gateways backed up and set by the same client session can be restored.
le_result_t taf_net_SetDefaultGW | ( | const char *LE_NONNULL | ifName | ) |
Sets the default gateway address received from the interface into the system.
[in] | ifName | The interface from which to get the default gateway addresses. |
le_result_t taf_net_GetInterfaceGW | ( | const char *LE_NONNULL | ifName, |
char * | ipv4Addr, | ||
size_t | ipv4AddrSize, | ||
char * | ipv6Addr, | ||
size_t | ipv6AddrSize | ||
) |
Gets the gateway addresses from the specified interface.
[in] | ifName | Interaface name to get the gateway. |
[out] | ipv4Addr | IPv4 address. |
[in] | ipv4AddrSize | |
[out] | ipv6Addr | IPv6 address. |
[in] | ipv6AddrSize |
le_result_t taf_net_SetDNS | ( | const char *LE_NONNULL | ifName | ) |
Sets the DNS addresses received from the interface into the system.
[in] | ifName | The interface from which to get the DNS addresses. |
le_result_t taf_net_GetInterfaceDNS | ( | const char *LE_NONNULL | ifName, |
taf_net_DnsServerAddresses_t * | dnsServerAddressesPtr | ||
) |
Gets the DNS addresses from the interface, including IPv4 and IPv6 addresses.
[in] | ifName | The interface name from which to get the DNS addresses. |
[out] | dnsServerAddressesPtr | DNS addresses structure. |
le_result_t taf_net_AddDestNatEntryOnDefaultPdn | ( | const char *LE_NONNULL | privateIpAddr, |
uint16_t | privatePort, | ||
uint16_t | globalPort, | ||
taf_net_IpProto_t | ipProto | ||
) |
Adds a destination NAT entry on the default PDN.
[in] | privateIpAddr | Private IP address. |
[in] | privatePort | Private port. |
[in] | globalPort | Global port. |
[in] | ipProto | IP protocol number. |
le_result_t taf_net_RemoveDestNatEntryOnDefaultPdn | ( | const char *LE_NONNULL | privateIpAddr, |
uint16_t | privatePort, | ||
uint16_t | globalPort, | ||
taf_net_IpProto_t | ipProto | ||
) |
Deletes a destination NAT entry on the default PDN.
[in] | privateIpAddr | Private IP address. |
[in] | privatePort | Private port. |
[in] | globalPort | Global port. |
[in] | ipProto | IP protocol number. |
le_result_t taf_net_AddDestNatEntryOnDemandPdn | ( | uint32_t | profileId, |
const char *LE_NONNULL | privateIpAddr, | ||
uint16_t | privatePort, | ||
uint16_t | globalPort, | ||
taf_net_IpProto_t | ipProto | ||
) |
Adds a destination NAT entry to the specified PDN.
[in] | profileId | Profile ID. |
[in] | privateIpAddr | Private IP address. |
[in] | privatePort | Private port. |
[in] | globalPort | Global port. |
[in] | ipProto | IP protocol number. |
le_result_t taf_net_RemoveDestNatEntryOnDemandPdn | ( | uint32_t | profileId, |
const char *LE_NONNULL | privateIpAddr, | ||
uint16_t | privatePort, | ||
uint16_t | globalPort, | ||
taf_net_IpProto_t | ipProto | ||
) |
Deletes a destination NAT entry from the specified PDN.
[in] | profileId | Profile ID. |
[in] | privateIpAddr | Private IP address. |
[in] | privatePort | Private port. |
[in] | globalPort | Global port. |
[in] | ipProto | IP protocol number. |
taf_net_DestNatEntryListRef_t taf_net_GetDestNatEntryListOnDefaultPdn | ( | void | ) |
Gets the reference to the destination NAT entry list on the default PDN.
taf_net_DestNatEntryListRef_t taf_net_GetDestNatEntryListOnDemandPdn | ( | uint32_t | profileId | ) |
Gets the reference to the destination NAT entry list on the specified PDN.
[in] | profileId | The profile ID. |
taf_net_DestNatEntryRef_t taf_net_GetFirstDestNatEntry | ( | taf_net_DestNatEntryListRef_t | destNatEntryListRef | ) |
Gets the reference to the first destination NAT entry with a list reference.
[in] | destNatEntryListRef | The reference of a destination entry list. |
taf_net_DestNatEntryRef_t taf_net_GetNextDestNatEntry | ( | taf_net_DestNatEntryListRef_t | destNatEntryListRef | ) |
Gets the reference to the next destination NAT entry with a list reference.
[in] | destNatEntryListRef | The reference of a destination entry list. |
le_result_t taf_net_GetDestNatEntryDetails | ( | taf_net_DestNatEntryRef_t | destNatEntryRef, |
char * | privateIpAddr, | ||
size_t | privateIpAddrSize, | ||
uint16_t * | privatePortPtr, | ||
uint16_t * | globalPortPtr, | ||
taf_net_IpProto_t * | ipProtoPtr | ||
) |
Gets the information of a destination NAT entry with an entry reference.
[in] | destNatEntryRef | Entry reference. |
[out] | privateIpAddr | Private IP address. |
[in] | privateIpAddrSize | |
[out] | privatePortPtr | Private port. |
[out] | globalPortPtr | Global port. |
[out] | ipProtoPtr | IP protocol number. |
le_result_t taf_net_DeleteDestNatEntryList | ( | taf_net_DestNatEntryListRef_t | destNatEntryListRef | ) |
Deletes the reference to the destination NAT entry list.
[in] | destNatEntryListRef | The reference of a destination entry list. |
taf_net_VlanRef_t taf_net_CreateVlan | ( | uint16_t | vlanId, |
bool | isAccelerated | ||
) |
Creates a VLAN.
[in] | vlanId | VLAN identifier, i.e., 1-4094. |
[in] | isAccelerated | Is acceleration allowed. |
le_result_t taf_net_SetVlanPriority | ( | taf_net_VlanRef_t | vlanRef, |
uint8_t | priority | ||
) |
Sets the priority to a VLAN.
[in] | vlanRef | VLAN reference. |
[in] | priority | Priority. |
le_result_t taf_net_RemoveVlan | ( | taf_net_VlanRef_t | vlanRef | ) |
Removes a VLAN.
[in] | vlanRef | VLAN reference. |
taf_net_VlanRef_t taf_net_GetVlanById | ( | uint16_t | vlanId | ) |
Gets VLAN by the VLAN ID.
[in] | vlanId | VLAN ID. |
le_result_t taf_net_AddVlanInterface | ( | taf_net_VlanRef_t | vlanRef, |
taf_net_VlanIfType_t | ifType | ||
) |
Adds a VLAN interface into the VLAN interface list.
[in] | vlanRef | VLAN reference. |
[in] | ifType | Interface type. |
le_result_t taf_net_RemoveVlanInterface | ( | taf_net_VlanRef_t | vlanRef, |
taf_net_VlanIfType_t | ifType | ||
) |
Removes a VLAN interface from the VLAN interface list.
[in] | vlanRef | VLAN reference. |
[in] | ifType | Interface type. |
taf_net_VlanIfListRef_t taf_net_GetVlanInterfaceList | ( | taf_net_VlanRef_t | vlanRef | ) |
Gets the VLAN interface list.
[in] | vlanRef | VLAN reference. |
taf_net_VlanIfRef_t taf_net_GetFirstVlanInterface | ( | taf_net_VlanIfListRef_t | vlanIfListRef | ) |
Gets the first VLAN interface reference with a list.
[in] | vlanIfListRef | Reference of a VLAN interface list. |
taf_net_VlanIfRef_t taf_net_GetNextVlanInterface | ( | taf_net_VlanIfListRef_t | vlanIfListRef | ) |
Gets the next VLAN interface reference with a list.
[in] | vlanIfListRef | Reference of a VLAN interface list. |
le_result_t taf_net_DeleteVlanInterfaceList | ( | taf_net_VlanIfListRef_t | vlanIfListRef | ) |
Deletes the VLAN interface list.
[in] | vlanIfListRef | Reference of a VLAN interface list. |
taf_net_VlanIfType_t taf_net_GetVlanInterfaceType | ( | taf_net_VlanIfRef_t | vlanIfRef | ) |
Gets the interface type of a VLAN interface.
[in] | vlanIfRef | VLAN interface reference. |
le_result_t taf_net_GetVlanPriority | ( | taf_net_VlanIfRef_t | vlanIfRef, |
uint8_t * | priorityPtr | ||
) |
Gets the VLAN priority of a VLAN interface.
[in] | vlanIfRef | VLAN interface reference. |
[out] | priorityPtr | Priority. |
taf_net_VlanEntryListRef_t taf_net_GetVlanEntryList | ( | void | ) |
Gets the VLAN entry list.
taf_net_VlanEntryRef_t taf_net_GetFirstVlanEntry | ( | taf_net_VlanEntryListRef_t | vlanEntryListRef | ) |
Gets the reference of the first VLAN entry with a list.
[in] | vlanEntryListRef | Reference of a VLAN entry list. |
taf_net_VlanEntryRef_t taf_net_GetNextVlanEntry | ( | taf_net_VlanEntryListRef_t | vlanEntryListRef | ) |
Gets the reference of the next VLAN entry with a list.
[in] | vlanEntryListRef | Reference of a VLAN entry list. |
le_result_t taf_net_DeleteVlanEntryList | ( | taf_net_VlanEntryListRef_t | vlanEntryListRef | ) |
Deletes the VLAN entry list.
[in] | vlanEntryListRef | Reference of a VLAN entry list. |
int16_t taf_net_GetVlanId | ( | taf_net_VlanEntryRef_t | vlanEntryRef | ) |
Gets the VLAN ID by the VLAN entry reference.
[in] | vlanEntryRef | VLAN entry reference. |
le_result_t taf_net_IsVlanAccelerated | ( | taf_net_VlanEntryRef_t | vlanEntryRef, |
bool * | isAcceleratedPtr | ||
) |
Determines if the VLAN is accelerated or not by the VLAN entry reference.
[in] | vlanEntryRef | VLAN entry reference. |
[out] | isAcceleratedPtr | Is accelerated or not. |
int32_t taf_net_GetVlanBoundProfileId | ( | taf_net_VlanEntryRef_t | vlanEntryRef | ) |
Gets the profile ID bound with a VLAN by the VLAN entry reference.
[in] | vlanEntryRef | VLAN entry reference. |
le_result_t taf_net_GetVlanBoundPhoneId | ( | taf_net_VlanEntryRef_t | vlanEntryRef, |
uint8_t * | phoneIdPtr | ||
) |
Gets the phone ID bound with a VLAN by the VLAN entry reference.
[in] | vlanEntryRef | VLAN entry reference. |
[out] | phoneIdPtr | Phone ID for VLAN association. |
le_result_t taf_net_BindVlanWithProfile | ( | taf_net_VlanRef_t | vlanRef, |
uint32_t | profileId | ||
) |
Binds a VLAN with a specified profile ID.
[in] | vlanRef | VLAN reference. |
[in] | profileId | Profile ID for VLAN association. |
le_result_t taf_net_BindVlanWithProfileEx | ( | taf_net_VlanRef_t | vlanRef, |
uint8_t | phoneId, | ||
uint32_t | profileId | ||
) |
Binds a VLAN with a specified phone ID and profile index.
[in] | vlanRef | VLAN reference. |
[in] | phoneId | Phone for VLAN association. |
[in] | profileId | Profile ID for VLAN association. |
le_result_t taf_net_UnbindVlanFromProfile | ( | taf_net_VlanRef_t | vlanRef | ) |
Unbinds a VLAN from previous profile ID.
[in] | vlanRef | VLAN reference. |
le_result_t taf_net_EnableL2tp | ( | bool | enableMss, |
bool | enableMtu, | ||
uint32_t | mtuSize | ||
) |
Enables (synchronously) L2TP for unmanaged tunnel state.
[in] | enableMss | Enable TCP MSS to be clamped on L2TP interfaces. |
[in] | enableMtu | Enable MTU size to be set on underlying interfaces. |
[in] | mtuSize | Optional MTU size in bytes; default is 1422. |
void taf_net_EnableL2tpAsync | ( | bool | enableMss, |
bool | enableMtu, | ||
uint32_t | mtuSize, | ||
taf_net_AsyncL2tpHandlerFunc_t | handlerPtr, | ||
void * | contextPtr | ||
) |
Enables (asynchronously) L2TP for unmanaged tunnel state.
[in] | enableMss | Enable TCP MSS to be clamped on L2TP interfaces. |
[in] | enableMtu | Enable MTU size to be set on underlying interfaces. |
[in] | mtuSize | optional MTU size in bytes; default is 1422. |
[in] | handlerPtr | The handler. |
[in] | contextPtr |
le_result_t taf_net_DisableL2tp | ( | void | ) |
Disables (synchronously) L2TP for unmanaged tunnel state.
void taf_net_DisableL2tpAsync | ( | taf_net_AsyncL2tpHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
Disables (asynchronously) L2TP for unmanaged tunnel state.
[in] | handlerPtr | The handler. |
[in] | contextPtr |
bool taf_net_IsL2tpEnabled | ( | void | ) |
Determines if L2TP is enabled.
bool taf_net_IsL2tpMssEnabled | ( | void | ) |
Determines if maximum segment size (MSS) is enabled.
bool taf_net_IsL2tpMtuEnabled | ( | void | ) |
Determines if maximum transmission unit (MTU) is enabled.
uint32_t taf_net_GetL2tpMtuSize | ( | void | ) |
Gets L2TP MTU size.
taf_net_TunnelRef_t taf_net_CreateTunnel | ( | taf_net_L2tpEncapProtocol_t | encaProto, |
uint32_t | locId, | ||
uint32_t | peerId, | ||
const char *LE_NONNULL | peerIpAddr, | ||
const char *LE_NONNULL | ifName | ||
) |
Creates an L2TP tunnel.
[in] | encaProto | Encapsulation protocol, UDP or IP. |
[in] | locId | Local tunnel ID. |
[in] | peerId | Peer tunnel ID. |
[in] | peerIpAddr | Peer IP address. |
[in] | ifName | Interface name. |
le_result_t taf_net_RemoveTunnel | ( | taf_net_TunnelRef_t | tunnelRef | ) |
Removes an L2TP tunnel.
[in] | tunnelRef | Tunnel reference. |
le_result_t taf_net_SetTunnelUdpPort | ( | taf_net_TunnelRef_t | tunnelRef, |
uint32_t | localUdpPort, | ||
uint32_t | peerUdpPort | ||
) |
Sets UDP ports for a tunnel.
[in] | tunnelRef | Tunnel reference. |
[in] | localUdpPort | Local UDP port, if UDP encapsulation is used. |
[in] | peerUdpPort | Peer UDP port, if IP encapsulation is used. |
le_result_t taf_net_AddSession | ( | taf_net_TunnelRef_t | tunnelRef, |
uint32_t | locId, | ||
uint32_t | peerId | ||
) |
Adds a session into a tunnel.
[in] | tunnelRef | Tunnel reference. |
[in] | locId | Local session ID. |
[in] | peerId | Peer session ID. |
le_result_t taf_net_RemoveSession | ( | taf_net_TunnelRef_t | tunnelRef, |
uint32_t | locId, | ||
uint32_t | peerId | ||
) |
Removes a session from a tunnel.
[in] | tunnelRef | Tunnel reference. |
[in] | locId | Local session ID. |
[in] | peerId | Peer session ID. |
le_result_t taf_net_StartTunnel | ( | taf_net_TunnelRef_t | tunnelRef | ) |
Starts (synchronously) a tunnel.
[in] | tunnelRef | Tunnel reference. |
void taf_net_StartTunnelAsync | ( | taf_net_TunnelRef_t | tunnelRef, |
taf_net_AsyncTunnelHandlerFunc_t | handlerPtr, | ||
void * | contextPtr | ||
) |
Starts (asynchronously) a tunnel.
[in] | tunnelRef | Tunnel reference. |
[in] | handlerPtr | The handler. |
[in] | contextPtr |
le_result_t taf_net_StopTunnel | ( | taf_net_TunnelRef_t | tunnelRef | ) |
Stops (synchronously) a tunnel.
[in] | tunnelRef | Tunnel reference. |
void taf_net_StopTunnelAsync | ( | taf_net_TunnelRef_t | tunnelRef, |
taf_net_AsyncTunnelHandlerFunc_t | handlerPtr, | ||
void * | contextPtr | ||
) |
Stops (asynchronously) a tunnel.
[in] | tunnelRef | Tunnel reference. |
[in] | handlerPtr | The handler. |
[in] | contextPtr |
taf_net_TunnelRef_t taf_net_GetTunnelRefById | ( | uint32_t | locId | ) |
Gets tunnel reference by the local tunnel ID.
[in] | locId | Local tunnel ID. |
taf_net_TunnelEntryListRef_t taf_net_GetTunnelEntryList | ( | void | ) |
Gets the tunnel entry list.
taf_net_TunnelEntryRef_t taf_net_GetFirstTunnelEntry | ( | taf_net_TunnelEntryListRef_t | tunnelEntryListRef | ) |
Gets the reference of the first tunnel entry.
[in] | tunnelEntryListRef | Reference of a tunnel entry list. |
taf_net_TunnelEntryRef_t taf_net_GetNextTunnelEntry | ( | taf_net_TunnelEntryListRef_t | tunnelEntryListRef | ) |
Gets the reference of the next tunnel entry.
[in] | tunnelEntryListRef | Reference of a tunnel entry list. |
le_result_t taf_net_DeleteTunnelEntryList | ( | taf_net_TunnelEntryListRef_t | tunnelEntryListRef | ) |
Deletes a tunnel entry list.
[in] | tunnelEntryListRef | Reference of a tunnel entry list. |
taf_net_L2tpEncapProtocol_t taf_net_GetTunnelEncapProto | ( | taf_net_TunnelEntryRef_t | tunnelEntryRef | ) |
Gets the encapsulation protocol of a tunnel.
[in] | tunnelEntryRef | Tunnel entry reference. |
uint32_t taf_net_GetTunnelLocalId | ( | taf_net_TunnelEntryRef_t | tunnelEntryRef | ) |
Gets the local ID of a tunnel.
[in] | tunnelEntryRef | Tunnel entry reference. |
uint32_t taf_net_GetTunnelPeerId | ( | taf_net_TunnelEntryRef_t | tunnelEntryRef | ) |
Gets the peer ID of a tunnel.
[in] | tunnelEntryRef | Tunnel entry reference. |
uint32_t taf_net_GetTunnelLocalUdpPort | ( | taf_net_TunnelEntryRef_t | tunnelEntryRef | ) |
Gets the local UDP port of a tunnel.
[in] | tunnelEntryRef | Tunnel entry reference. |
uint32_t taf_net_GetTunnelPeerUdpPort | ( | taf_net_TunnelEntryRef_t | tunnelEntryRef | ) |
Gets the peer UDP port of a tunnel.
[in] | tunnelEntryRef | Tunnel entry reference. |
le_result_t taf_net_GetTunnelPeerIpv6Addr | ( | taf_net_TunnelEntryRef_t | tunnelEntryRef, |
char * | peerIpv6Addr, | ||
size_t | peerIpv6AddrSize | ||
) |
Gets the peer IPv6 address of a tunnel.
[in] | tunnelEntryRef | Tunnel entry reference. |
[out] | peerIpv6Addr | Peer IPv6 address. |
[in] | peerIpv6AddrSize |
le_result_t taf_net_GetTunnelPeerIpv4Addr | ( | taf_net_TunnelEntryRef_t | tunnelEntryRef, |
char * | peerIpv4Addr, | ||
size_t | peerIpv4AddrSize | ||
) |
Gets the peer IPv4 address of a tunnel.
[in] | tunnelEntryRef | Tunnel entry reference. |
[out] | peerIpv4Addr | Peer IPv4 address. |
[in] | peerIpv4AddrSize |
le_result_t taf_net_GetTunnelInterfaceName | ( | taf_net_TunnelEntryRef_t | tunnelEntryRef, |
char * | ifName, | ||
size_t | ifNameSize | ||
) |
Gets the interface name of a tunnel.
[in] | tunnelEntryRef | Tunnel entry reference. |
[out] | ifName | Interface name. |
[in] | ifNameSize |
taf_net_IpFamilyType_t taf_net_GetTunnelIpType | ( | taf_net_TunnelEntryRef_t | tunnelEntryRef | ) |
Gets the IP type of a tunnel.
[in] | tunnelEntryRef | Tunnel entry reference. |
le_result_t taf_net_GetSessionConfig | ( | taf_net_TunnelEntryRef_t | tunnelEntryRef, |
taf_net_L2tpSessionConfig_t * | sessionConfigPtr, | ||
size_t * | sessionConfigSizePtr | ||
) |
Gets the session configuration of a tunnel.
[in] | tunnelEntryRef | Tunnel entry reference. |
[out] | sessionConfigPtr | Session configuration. |
[in,out] | sessionConfigSizePtr |
le_result_t taf_net_EnableSocks | ( | void | ) |
Enables (synchronously) the SOCKS proxy service.
void taf_net_EnableSocksAsync | ( | taf_net_AsyncSocksHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
Enables (asynchronously) the SOCKS proxy service.
[in] | handlerPtr | The handler. |
[in] | contextPtr |
le_result_t taf_net_DisableSocks | ( | void | ) |
Disables (synchronously) the SOCKS proxy service.
void taf_net_DisableSocksAsync | ( | taf_net_AsyncSocksHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
Disables (asynchronously) the SOCKS proxy service.
[in] | handlerPtr | The handler. |
[in] | contextPtr |
le_result_t taf_net_SetSocksAuthMethod | ( | taf_net_AuthMethod_t | authMethod | ) |
Sets the SOCKS authentication method.
[in] | authMethod | Authentication method. |
taf_net_AuthMethod_t taf_net_GetSocksAuthMethod | ( | void | ) |
Gets the SOCKS authentication method.
le_result_t taf_net_SetSocksLanInterface | ( | const char *LE_NONNULL | ifName | ) |
Sets SOCKS LAN interface.
[in] | ifName | Interface name. |
le_result_t taf_net_GetSocksLanInterface | ( | char * | ifName, |
size_t | ifNameSize | ||
) |
Gets SOCKS LAN interface.
[out] | ifName | Interface name. |
[in] | ifNameSize |
le_result_t taf_net_AddSocksAssociation | ( | const char *LE_NONNULL | userName, |
uint32_t | profileId | ||
) |
Adds a username/profile association.
[in] | userName | Username. |
[in] | profileId | Profile ID. |
le_result_t taf_net_RemoveSocksAssociation | ( | const char *LE_NONNULL | userName | ) |
Deletes a username/profile association.
[in] | userName | Username. |
le_result_t taf_net_AddGsb | ( | const char *LE_NONNULL | ifName, |
taf_net_GsbIfType_t | ifType, | ||
uint32_t | bandwidth | ||
) |
Adds GSB configuration for an interface.
[in] | ifName | Interface name. |
[in] | ifType | Interface type. |
[in] | bandwidth | Bandwidth (in Mbps). |
le_result_t taf_net_RemoveGsb | ( | const char *LE_NONNULL | ifName | ) |
Removes GSB configuration for an interface.
[in] | ifName | Interface name. |
le_result_t taf_net_EnableGsb | ( | void | ) |
Enables GSB in the system.
le_result_t taf_net_DisableGsb | ( | void | ) |
Disables GSB in the system.
taf_net_GsbListRef_t taf_net_GetGsbList | ( | void | ) |
Gets GSB list.
taf_net_GsbRef_t taf_net_GetFirstGsb | ( | taf_net_GsbListRef_t | gsbListRef | ) |
Gets the reference of the first GSB.
[in] | gsbListRef | Reference of a GSB list. |
taf_net_GsbRef_t taf_net_GetNextGsb | ( | taf_net_GsbListRef_t | gsbListRef | ) |
Gets the reference of the next GSB.
[in] | gsbListRef | Reference of a GSB list. |
le_result_t taf_net_DeleteGsbList | ( | taf_net_GsbListRef_t | gsbListRef | ) |
Deletes the GSB list.
[in] | gsbListRef | Reference of a GSB list. |
le_result_t taf_net_GetGsbInterfaceName | ( | taf_net_GsbRef_t | gsbRef, |
char * | IfName, | ||
size_t | IfNameSize | ||
) |
Gets the interface name of a GSB.
[in] | gsbRef | GSB reference. |
[out] | IfName | Interface name. |
[in] | IfNameSize |
taf_net_GsbIfType_t taf_net_GetGsbInterfaceType | ( | taf_net_GsbRef_t | gsbRef | ) |
Gets the interface type of a GSB.
[in] | gsbRef | GSB reference. |
int32_t taf_net_GetGsbBandWidth | ( | taf_net_GsbRef_t | gsbRef | ) |
Gets the bandwidth of a GSB.
[in] | gsbRef | GSB reference. |