#include <in_sock.h>
class TSoInetIfQuery |
Public Attributes | |
---|---|
TInetAddr | iDstAddr |
TUint32 | iIndex |
TUint | iIsUp |
TName | iName |
TInetAddr | iSrcAddr |
TInetScopeIds | iZone |
Interface query.
Returns, KErrNotFound, if interface is not found
Returns, KErrNone, if interface is located, and fills fields from the interface with following logic
iDstAddr: not touched, left as is
iSrcAddr is result of the Select Source Address algorithm for the interface using the iDstAddr as input. If there is no valid source address, the value will be KAFUnspec.
iIndex is loaded with the interface index of the interface
iName is loaded from the name of the interface
iIsUp is set 1, if interface has CNifIfBase pointer attached, and 0 otherwise.
TInetAddr | iDstAddr |
input: If the option is KSoInetIfQueryByDstAddr, select interface by finding a route for this address; otherwise, ignored.
output: not changed.
On returning interface information, regardless of the option used, the content of this is used to select a matching source address (iSrcAddr).
TUint32 | iIndex |
Interface Index.
input: If the option is KSoInetIfQueryByIndex, select interface by this interface index; otherwise, ignored.
output: The interface index the located interface. (always same as iZone[0] in 7.0s).
TUint | iIsUp |
input: ignored
output: set as indicated.
TName | iName |
input: If the option is KSoInetIfQueryByName, select interface by this name; otherwise, ignored.
output: The name of the located interface.
TInetAddr | iSrcAddr |
input: If the option is KSoInetIfQueryBySrcAddr, select interface by source address; otherwise, ignored.
output: The result of the source address selection algorithm based on the content of the iDstAddr.
TInetScopeIds | iZone |
input: ignored