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

#include "./HTR_A_common.def"
//======================================================================
//
// AH/ESP definition
//


//======================================================================
//
// Real packet definition with IPsec AH
//

FEM_icmp6_echo_request_exth(
	echo_request_from_host1_ah_real1,
	hether_router2nut,
	{
		_SRC(v6(IPSEC_HOST1_NET5_ADDR));
		_DST(v6(IPSEC_NUT_NET3_ADDR));
	},
	{
		header = _HDR_IPV6_NAME(echo_request_from_host1_ah_real1);
		exthdr = ah_from_host_sn2;
		upper = _ICMPV6_NAME(echo_request_from_host1_ah_real1);
	},
	{
		payload = IPSEC_ECHO_DATA;
	}
)


//======================================================================
//
// Modified packet definition with IPsec AH
//

// Common use Ether Header
Hdr_Ether hether_router2nut_0x86dd {
	SourceAddress=ether(IPSEC_ROUTER_NET3_MAC_ADDR);
	DestinationAddress=nutether();
	Type=0x86dd; // need to specify IPv6
}


// payload is modified
Frame_Ether echo_request_from_host1_ah_dm_payload {
	header=hether_router2nut_0x86dd;
	packet=echo_request_from_host1_ah_modpkt1;
}

Payload echo_request_from_host1_ah_modpkt1 {
	data=substr(echo_request_from_host1_ah_real1, 14, 72);
	data={0x63, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x20}; // echo request data "cracked "
}


//end





