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

#include "./HTR_A_common.def"
#include "./HTR_E_common.def"

//======================================================================
//
// Echo Request from Host1 IPsec AH-ESP
//

FEM_icmpX_echo_request_exth(
	echo_request_from_host1_ah_esp,
	hether_router2nut,
	{
		_SRC(vX(IPSEC_HOST1_NET5_ADDR));
		_DST(vX(IPSEC_NUT_NET3_ADDR));
	},
	{
		header = _HDR_IPVX_NAME(echo_request_from_host1_ah_esp);
		exthdr = AH_FROM_HOST1;
		exthdr = ESP_FROM_HOST1;
		upper = _ICMPVX_NAME(echo_request_from_host1_ah_esp);
	},
	{
		payload = IPSEC_ECHO_DATA;
	}
)

//======================================================================
//
// Echo Reply to Host1 IPsec AH-ESP
//

FEM_icmpX_echo_reply_exth(
	echo_reply_to_host1_ah_esp,
	hether_nut2router,
	{
		_SRC(vX(IPSEC_NUT_NET3_ADDR));
		_DST(vX(IPSEC_HOST1_NET5_ADDR));
	},
	{
		header = _HDR_IPVX_NAME(echo_reply_to_host1_ah_esp);
		exthdr = AH_TO_HOST1;
		exthdr = ESP_TO_HOST1;
		upper = _ICMPVX_NAME(echo_reply_to_host1_ah_esp);
	},
	{
		payload = IPSEC_ECHO_DATA;
	}
)
