//
// $Copyright$
//
// $Name:  $
//
// $Id: HTR_A_2SA_DspiDip.def,v 1.1.1.1 2000/09/28 00:14:46 sekiya Exp $
//

#include "./HTR_A_common.def"
//======================================================================
//
// Echo Request from Host2
//

FEM_icmpX_echo_request(
	echo_request_from_host2,
	hether_router2nut,
	{
		_SRC(vX(IPSEC_HOST2_NET5_ADDR));
		_DST(vX(IPSEC_NUT_NET3_ADDR));
	},
	{
		payload = IPSEC_ECHO_DATA;
	}
)

//======================================================================
//
// Echo Reply to Host2
//

FEM_icmpX_echo_reply(
	echo_reply_to_host2,
	hether_nut2router,
	{
		_SRC(vX(IPSEC_NUT_NET3_ADDR));
		_DST(vX(IPSEC_HOST2_NET5_ADDR));
	},
	{
		payload = IPSEC_ECHO_DATA;
	}
)

//======================================================================
//
// AH/ESP definition
//
Hdr_AH ah_from_host2 {
	SPI = 0x2000;
	SequenceNumber = 1;
	algorithm = aalgo_hmacmd5_foo;
}

Hdr_AH ah_to_host2 {
	SPI = 0x2000;
	SequenceNumber = any; #1;
	algorithm = aalgo_hmacmd5_foo;
}



//======================================================================
//
// Echo Request from Host2 IPsec AH
//

FEM_icmpX_echo_request_exth(
	echo_request_from_host2_ah,
	hether_router2nut,
	{
		_SRC(vX(IPSEC_HOST2_NET5_ADDR));
		_DST(vX(IPSEC_NUT_NET3_ADDR));
	},
	{
		header = _HDR_IPVX_NAME(echo_request_from_host2_ah);
		exthdr = ah_from_host2;
		upper = _ICMPVX_NAME(echo_request_from_host2_ah);
	},
	{
		payload = IPSEC_ECHO_DATA;
	}
)

//======================================================================
//
// Echo Reply to Host2 IPsec AH
//

FEM_icmpX_echo_reply_exth(
	echo_reply_to_host2_ah,
	hether_nut2router,
	{
		_SRC(vX(IPSEC_NUT_NET3_ADDR));
		_DST(vX(IPSEC_HOST2_NET5_ADDR));
	},
	{
		header = _HDR_IPVX_NAME(echo_reply_to_host2_ah);
		exthdr = ah_to_host2;
		upper = _ICMPVX_NAME(echo_reply_to_host2_ah);
	},
	{
		payload = IPSEC_ECHO_DATA;
	}
)

//end


