// // $Copyright$ // // $Name: $ // // $Id: HTR_E_PadLen255.def,v 1.1.1.1 2000/10/31 22:38:51 sekiya Exp $ // #define IPSEC_ECHO_DATA echo_data_pad255 Payload echo_data_pad255 { data = repeat(0xff, 247); } #include "./HTR_E_common.def" ESPAlgorithm ealgo_descbc_012_pad_255 { crypt = descbc("01234567", "00000000", 32); //pad = sequential(); //pad = allzero(); //pad = random(); } Hdr_ESP esp_from_host1_pad_255 { SPI = 0x1000; SequenceNumber = 1; algorithm = ealgo_descbc_012_pad_255; } Hdr_ESP esp_to_host1_pad_255 { SPI = 0x1000; SequenceNumber = any; // 1; algorithm = ealgo_descbc_012_pad_255; } //====================================================================== // // Echo Request from Host1 IPsec ESP (Padding Length = 0) // FEM_icmpX_echo_request_exth( echo_request_from_host1_esp_pad_255, hether_router2nut, { _SRC(vX(IPSEC_HOST1_NET5_ADDR)); _DST(vX(IPSEC_NUT_NET3_ADDR)); }, { header = _HDR_IPVX_NAME(echo_request_from_host1_esp_pad_255); exthdr = esp_from_host1_pad_255; upper = _ICMPVX_NAME(echo_request_from_host1_esp_pad_255); }, { payload = IPSEC_ECHO_DATA; } ) //====================================================================== // // Echo Reply to Host1 IPsec ESP (Padding Length = 0) // FEM_icmpX_echo_reply_exth( echo_reply_to_host1_esp_pad_255, hether_nut2router, { _SRC(vX(IPSEC_HOST1_NET5_ADDR)); _DST(vX(IPSEC_NUT_NET3_ADDR)); }, { header = _HDR_IPVX_NAME(echo_reply_to_host1_esp_pad_255); exthdr = esp_from_host1_pad_255; upper = _ICMPVX_NAME(echo_reply_to_host1_esp_pad_255); }, { payload = IPSEC_ECHO_DATA; } )