TFlowInfo Class Reference

class TFlowInfo

Collects the information which defines a flow (The Upper Layer Flow Information). This is a member of CFlowContext.

Since
v7.0s

Member Data Documentation

TUint iForwardingFlow

TUint iForwardingFlow

Set when flow is used for packet forwarding.

This flag, when set, disables the source address checking. Normally the stack works in "strong model" and requires that a packet has a valid source address on the interface. Forwarded packets have other than local source address and the check must be disabled.

This can only be set internally or from the hooks. There is no application level socket option to set this.

TUint8 iIcmpCode

TUint8 iIcmpCode

ICMP code, when protocol is ICMP (or similar).

See RFlowContext::SetIcmpType, CFlowContext::GetIcmpTypeCode

TUint8 iIcmpType

TUint8 iIcmpType

ICMP type, when protocol is ICMP (or similar).

See RFlowContext::SetIcmpType, CFlowContext::GetIcmpTypeCode

TInetAddr iLocal

TInetAddr iLocal

Current local address (system or application selected).

See RFlowContext::SetLocalAddr, CFlowContext::LocalAddr

TUint iLocalSet

TUint iLocalSet

Set when upper layer set the local address.

When set, the stack assumes the upper layer has specified the source address of the flow. When not set, the stack chooses the source address.

This flag is cleared or set by the RFlowContext::SetLocalAddr(). The flag is cleared when address is unspecified and set otherwise. Initial value is unset, if SetLocalAddr is never called.

See also CFlowContext::IsLocalSet

TUint32 iLockId

TUint32 iLockId

Current Locking Id.

Value ZERO is unlocked. Non-Zero value is a zone id in the scope specified by iLockType.

TUint iLockType

TUint iLockType

Locked scope-1 (0..15) [TScopeType].

This valid only when iLockId is non-zero.

TUint iNoInterfaceError

TUint iNoInterfaceError

Set when interface errors should not affect the flow.

When an interface goes down (or reports an error), all flows that are currently connected (routed) to this interface, are also set into error error state (effectively, causing a socket error to the applications).

When this flag is set, flow is not set to the error state. However, if interface is going down, the flow is put into hold/pending state (until another or same interface becomes again available).

See also the socket option: KSoNoInterfaceError

TUint iNoInterfaceUp

TUint iNoInterfaceUp

Set when this flow should not try to bring up the interface.

When a connect is attempted on a flow and it fails due to missing routes (no suitable interfaces up or configured yet), the stack signals the NIFMAN (NoBearer notify function).

When this flag is set, NIFMAN is not notified and the flow is just placed into hold/pending state to wait for possible interface or route to appear.

Note:

NoBearer does not exisit in pre 7.0s systems. In such systems the stack itself activates the "netdial process" in this situation.

TUint8 iProtocol

TUint8 iProtocol

The protocol associated with the flow.

See RFlowContext::SetProtocol, CFlowContext::Protocol

TInetAddr iRemote

TInetAddr iRemote

Current remote addess as set by upper layer.

Must always be specified before a flow can be connecte or used for sending packets.

See RFlowContext::SetRemoteAddr, CFlowContext::RemoteAddr