NetworkProtocolInd

Namespace: inet

class NetworkProtocolInd

This indication specifies the network protocol that was used to receive the packet. It may be present from the network protocol to the application.

Usage diagram

Inheritance diagram

Extends

Name

Type

Description

ProtocolTagBase

class

This is an abstract base class that should not be directly added as a tag.

Fields

Name

Type

Description

protocol

const Protocol *

specifies a protocol (internal class with an artificial identifier)

networkProtocolHeader

ChunkPtr

networkHeaderFrontOffset

b

front offset where the network header starts in the packet

Properties

Name

Value

Description

existingClass

Source code

//
// This indication specifies the network protocol that was used to receive the
// packet. It may be present from the network protocol to the application.
//
class NetworkProtocolInd extends ProtocolTagBase
{
    ChunkPtr networkProtocolHeader;
    b networkHeaderFrontOffset = b(-1);  // front offset where the network header starts in the packet
}

File: src/inet/common/ProtocolTag.msg