//
// $Copyright$
//
// $Id: SAD_a_prm_prb_GA.def,v 1.1.1.1 2000/09/28 00:14:45 sekiya Exp $

#include "icmp.def"


FEM_hdr_ipv6_exth(
        ipv6_tn2nut_unknown_nextheader_GA,
        _HETHER_tn2nut,
        {
                _SRC(TN_GLOBAL_ADDRESS);
                _DST(NUT_GLOBAL_ADDRESS);
        },
        {
                header = _HDR_IPV6_NAME(ipv6_tn2nut_unknown_nextheader_GA);
                exthdr = _dst;
                upper = apl;
        }
)

Hdr_Destination _dst {
        NextHeader = 128;
        option = _Pad6;
}

Opt_PadN _Pad6 {
        pad = {0,0,0,0};
}

// ICMP error from NUT

FEM_icmp6_parameter_problem(
        parameter_problem_nut2tn_GA_code_1_pointer_fourty,
        _HETHER_nut2tn,
        {
                _SRC(NUT_GLOBAL_ADDRESS);
                _DST(TN_GLOBAL_ADDRESS);
        },
        {
                Code = 1;       // unrecognized Next Header type encounted
                Pointer = 40;
                payload = err;
        }
)

////////////////////////////////////////////////////////////////////////
// data
//

Payload apl {
        data = {};
}

Payload err {
        data = right(_PACKET_IPV6_NAME(ipv6_tn2nut_unknown_nextheader_GA), 0);
}






