// $Copyright$
//
// $Id: routerRecvRsInvalid.def,v 1.1.1.1 2000/10/31 22:39:03 sekiya Exp $

// the packet definitions for RS
#include "ncStateByRs.def"

// the packet definitions for RA
#include "ra.def"

// the packet definitions for dn.pm
#include "nd.def"

//----------------------------------------------------------------------
//  RS from link-local
//      TN(link-local) ==> all-router
//      w/o SLLA option
//      *invalid hop limit
//----------------------------------------------------------------------
FEM_icmp6_rs(rs_tn2allrouter_invalid_hlimit, _HETHER_tn2allrouters,
        {
         _SRC(tnv6());
         _DST(v6(_ALLROUTERS_MCAST_ADDR));
         HopLimit=2;
        },
        {
         option=_SLLOPT_tn;
        }
)

//----------------------------------------------------------------------
//  RS from link-local
//      TN(link-local) ==> all-router
//      w/o SLLA option
//      *invalid checksum
//----------------------------------------------------------------------
FEM_icmp6_rs(rs_tn2allrouter_invalid_chksum, _HETHER_tn2allrouters,
        {
         _SRC(tnv6());
         _DST(v6(_ALLROUTERS_MCAST_ADDR));
         HopLimit=255;
        },
        {
         Checksum=0xaaaa;
         option=_SLLOPT_tn;
        }
)

//----------------------------------------------------------------------
//  RS from link-local
//      TN(link-local) ==> all-router
//      w/o SLLA option
//      *invalid icmpcode
//----------------------------------------------------------------------
FEM_icmp6_rs(rs_tn2allrouter_invalid_icmpcode, _HETHER_tn2allrouters,
        {
         _SRC(tnv6());
         _DST(v6(_ALLROUTERS_MCAST_ADDR));
         HopLimit=255;
        },
        {
         Code=2;
         option=_SLLOPT_tn;
        }
)

//----------------------------------------------------------------------
//  RS from link-local
//      TN(*unspec) ==> all-router
//      *w/ SLLA option
//----------------------------------------------------------------------
FEM_icmp6_rs(rs_unspec2allrouter_sll_invalid, _HETHER_tn2allrouters,
        {
         _SRC(v6(_UNSPEC_ADDR));
         _DST(v6(_ALLROUTERS_MCAST_ADDR));
         HopLimit=255;
        },
        {
         option=_SLLOPT_tn;
        }
)

//----------------------------------------------------------------------
