//
// $Copyright$
//
// $Name:  $
//
// $Id: RTU_E_PadLen255.def,v 1.1.1.1 2000/10/31 22:38:52 sekiya Exp $
//

#define IPSEC_ECHO_DATA	echo_data_pad255

#include "./RTU_E_common.def"

Payload echo_data_pad255 {
#if (IPSEC_IPVERSION == 4)
	data = repeat(0xff, 227);
#else
	data = repeat(0xff, 207);
#endif
}

ESPAlgorithm ealgo_descbc_012_pad_255 {
	crypt = descbc("01234567", "00000000", 32);
	//pad = sequential();
	//pad = allzero();
	//pad = random();
}

Hdr_ESP esp_from_sg_pad_255 {
	SPI = 0x1000;
	SequenceNumber = 1;
	algorithm = ealgo_descbc_012_pad_255;
	//PadLength = 255;
}

//======================================================================
//
// ESP Tunnel from SG1_NET2 (Echo Request from HOST1_NET4 to HOST1_NET1)
//

FEM_hdr_ipvX_exth(
	esptun_from_sg1_net2_echo_request_from_host1_net4_to_host1_net1_on_net0_pad_255 ,
	hether_router2nut,
	{
		_SRC(vX(IPSEC_SG1_NET2_ADDR));
		_DST(vX(IPSEC_NUT_NET0_ADDR));
	},
	{
		header = _HDR_IPVX_NAME(esptun_from_sg1_net2_echo_request_from_host1_net4_to_host1_net1_on_net0_pad_255);
		exthdr = esp_from_sg_pad_255;
		upper = _PACKET_IPVX_NAME(echo_request_from_host1_net4_to_host1_net1_on_net0);
	}
)

//end


