Msg File src/networklayer/ipv6/IPv6ExtensionHeaders.msg

Name Description
IPv6HopByHopOptionsHeader (class)

Hop-by-Hop Options Header. RFC 2460 Section 4.3 Next Header Value: 0

IPv6RoutingHeader (class)

Routing Header RFC 2460 Section 4.4 Next Header Value: 43

IPv6FragmentHeader (class)

Fragment Header RFC 2460 Section 4.5 Next Header Value: 44

IPv6DestinationOptionsHeader (class)

Destination Options Header RFC 2460 Section 4.6 Next Header Value: 60

IPv6AuthenticationHeader (class)

Authentication Header RFC 2402 Not Implemented

IPv6EncapsulatingSecurityPayloadHeader (class)

Encapsulating Security Payload Header RFC 2406 Not Implemented

Source code:

//
// Copyright (C) 2005 Wei Yang, Ng
// Copyright (C) 2005 Andras Varga
// Copyright (C) 2001-2004 CTIE, Monash University
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, see <http://www.gnu.org/licenses/>.
//

cplusplus {{
#include "IPv6Address.h"
#include "IPv6Datagram.h"
}}


class noncobject IPv6Address;

class noncobject IPv6ExtensionHeader;

//
// Hop-by-Hop Options Header.
// RFC 2460 Section 4.3
// Next Header Value: 0
//
class IPv6HopByHopOptionsHeader extends IPv6ExtensionHeader
{
}

//
// Routing Header
// RFC 2460 Section 4.4
// Next Header Value: 43
//
class IPv6RoutingHeader extends IPv6ExtensionHeader
{
    unsigned char routingType;
    unsigned char segmentsLeft;
    IPv6Address address[];
}

//
// Fragment Header
// RFC 2460 Section 4.5
// Next Header Value: 44
//
class IPv6FragmentHeader extends IPv6ExtensionHeader
{
    unsigned short fragmentOffset;
    unsigned int identification;  // datagram ID: identifies which datagram this fragment belongs to.
    bool moreFragments; //Is this the last fragment?
}

//
// Destination Options Header
// RFC 2460 Section 4.6
// Next Header Value: 60
//
class IPv6DestinationOptionsHeader extends IPv6ExtensionHeader
{
}

//
// Authentication Header
// RFC 2402
// Not Implemented
//
class IPv6AuthenticationHeader extends IPv6ExtensionHeader
{
}

//
// Encapsulating Security Payload Header
// RFC 2406
// Not Implemented
//
class IPv6EncapsulatingSecurityPayloadHeader extends IPv6ExtensionHeader
{
}