// $Copyright$
//
// $Id: adrsolvQueuOne.def,v 1.1.1.1 2000/10/31 22:38:59 sekiya Exp $

#include "nd.def"

//----------------------------------------------------------------------
// echo-request
//	TN(link-local) ==> NUT(link-local)
//
//----------------------------------------------------------------------
FEM_icmp6_echo_request(echo_request, _HETHER_tn2nut,
	{
	 _SRC(tnv6());
	 _DST(nutv6());},
	{
	 payload=echo_data;
	}
)

//----------------------------------------------------------------------
// echo-reply
//	NUT(link-local) ==> TN(link-local)
//
//----------------------------------------------------------------------
FEM_icmp6_echo_reply(echo_reply, _HETHER_nut2tn,
	{
	 _SRC(nutv6());
	 _DST(tnv6());
	},
	{
	 payload=echo_data;
	}
)

//----------------------------------------------------------------------
Payload echo_data {
	data=repeat(0x11,10);
}

//----------------------------------------------------------------------
// unicast NA
//	TN(link-local) ==> NUT(link-local)
//	r=0, s=1, o=1
//	target=TN(link-local)
//	w/ TLLA
//
//----------------------------------------------------------------------
FEM_icmp6_na(na, _HETHER_tn2nut,
	{
	 _SRC(tnv6());
	 _DST(nutv6());
	 HopLimit=255;
	},
	{
	 RFlag=0;
	 SFlag=1;
	 OFlag=1;
	 TargetAddress=tnv6();
	 option=_TLLOPT_tn;
	}
)

//----------------------------------------------------------------------
// multicast NS
//	NUT(link-local) ==> TN(solicited-node[link-local])
//	target=TN(link-local)
//	w/ SLLA
//
//----------------------------------------------------------------------
FEM_icmp6_ns(multicast_ns, _HETHER_nut2tnsolnode,
	{
	 _SRC(nutv6());
	 _DST(_IPV6_SOLNODE_MCAST(tnv6()));
	 HopLimit=255;
	},
	{
	 TargetAddress=tnv6();
	 option=_SLLOPT_nut;
	}
)

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