#include <in_sock.h>
class TSoInet6InterfaceInfo : public TSoInetInterfaceInfo |
Public Attributes | |
---|---|
TUint | iAlias |
TUint | iDelete |
TUint | iDoAnycast |
TUint | iDoId |
TUint | iDoPrefix |
TUint | iDoProxy |
TUint | iDoState |
Extension for TSoInetInterfaceInfo. Available in Symbian OS v7.0 and later.
no address configuration: iDoId=0, iDoPrefix=0 (iDoProxy, iDoAnycast, iDelete and iAlias are ignored).
configure single IPv6 or IPv4 address: iDoid, iAddress has the address, iNetMask unspecified.
configure IPv6 id part: iDoId, iAddress is IPv6 address (fe80::id) and iNetMask defined (for 64 bits, use ffff:ffff:ffff:ffff::).
configure IPv4 address and netmask: iDoId, iNetMask defined.
configure IPv6 or IPv4 anycast address: iDoId, iDoAnycast, iAddress has the address (iNetMask ignored).
configure IPv6 or IPv4 proxy address: iDoId, iDoProxy, iAddress has the address (iNetMask ignored).
configure IPv6 prefix and id part: iDoId, iDoPrefix, iAddress is the IPv6 address (prefix::id) and iNetMask defined (for 64 bits, use ffff:ffff:ffff:ffff::).
configure IPv6 prefix: iDoPrefix, iAddress is the prefix (prefix::) and iNetMask defined (for 64 bits, use ffff:ffff:ffff:ffff::).
The MTU is updated, if iMtu has non-zero value.
Available in Symbian OS v9.2 and later.
actions: iDoState.
notification from config daemon (e.g., DHCP) that address assignment terminated so a link local should be created if appropriate TCPIP.ini setting is used: iDoState.
TUint | iAlias |
Primary or alias modifier.
0 = primary, 1 = alias.
Always use 1 here (this is a relic, that most likely should be deprecated, and defaulted to 1 always).
TUint | iDoAnycast |
Configure address as Anycast.
The anycast address is defined by iAddress.
Anycast address is recognized as own address for incoming packets, but it cannot be used as a source address for outgoing packets. IPv6 DAD (or IPv4 ARP duplicate address) test is not done for anycast addresses. Anycast address is advertised on the link as an address of this host.
1 = configure anycast (iDoId must also be set, iDoPrefix is ignored)
iDelete=0: Add anycast address.
iDelete=1: Remove the previously configured anycast address.
TUint | iDoId |
Address action.
0 = don't do address, 1= do the address.
iAddress must be specified.
If also either iDoAnycast or iDoProxy is set, then the action is special for them (and the following does not apply).
If iNetMask is specified, then the following applies:
iDelete=0 and iAddress is IPv4 address: iAddress and iNetMask are used to configure additional IPv4 address and netmask for the interface.
iDelete=0 and iAddress is IPv6 address The iNetmask and iAddress define a ID part, which can be combined with any defined prefix to form a full IPv6 address. If iAlias is set, then a new ID is added; otherwise whatever happens to be stored in the primary id slot is overwritten (always use iAlias=1 to avoid confusion).
iDelete=1: The previously configured address or ID is deleted.
The IPv4 netmask alone cannot be added or deleted. Use KSolInetRtCtrl options.
TUint | iDoPrefix |
Prefix action (only for IPv6 addresses).
0 = don't do prefix, 1 = do the prefix.
iAddress must be specified.
If set and iNetMask is defined, then iNetMask and iAddress define a prefix for the interface (link). If iNetMask is unspecified, then the iDoPrefix is ignored.
iDelete=0: Acts as if an IPv6 Router Advertisement with prefix option A=1 and L=1 has arrived (e.g. this prefix can be used in address generation and all addresses with this prefix are onlink on this interface).
iDelete=1: The specified prefix is deleted from the interface (if it existed before).
Current IPv6 specification allows only 64 for the number of prefix bits.
TUint | iDoProxy |
Confiture address as Proxy.
The proxy address is defined by iAddress.
Proxy address is not recognized as own address for incoming packets (nor can it be used as own address for outgoing packets). IPv6 DAD (or IPv4 ARP duplicate address) test is performed for proxy address. Proxy address is advertised on the link as an address of this host.
1 = configure proxy (iDoId must also be set, iDoPrefix is ignored)
iDelete=0: Add proxy address.
iDelete=1: Remove the previously configured proxy address.
TUint | iDoState |
Interface state action.
0 = ignore TSoInetInterfaceInfo::iState,
EIfDown: The interface state is set to KErrNotReady.
EIfUp: The interface state is set to 0 (KErrNone).
Attempt to set any other state results failed operation with KErrArgument result.