TIpHeader Class Reference

#include <in_pkt.h>

Link against: addressinfo.lib

class TIpHeader
Public Attributes
union TIpHeader::@36@37
TInet6HeaderIP4 ip4
TInet6HeaderIP ip6
Public Member Functions
TInt MaxHeaderLength()
TInt MinHeaderLength()

Detailed Description

A simple help class that uses a union to merge handling of either an IPv4 or an IPv6 header.
Since
v7.0

Member Attribute Documentation

@37

union TIpHeader::@36@37

ip4

ip6

Member Function Documentation

MaxHeaderLength ( )

TInt MaxHeaderLength()[static, inline]

Gets the maximum header length.

IPv6 header always shorter than maximum IPv4 header, thus returned value is for IPv4. This function is only defined because "header mapping" classes are expected to have it.

Returns: Maximum IPv4 header length

MinHeaderLength ( )

TInt MinHeaderLength()[static, inline]

Gets the minimum header length.

IPv6 header is longer than minimum IPv4 header, thus returned value is for IPv4. This function only defined because it is required when this class is used as template parameter in TInet6Packet.

Returns: Minimum IPv4 header length