// // Copyright (C) 2002, 2003, 2004, 2005 Yokogawa Electric Corporation, // INTAP(Interoperability Technology Association for Information // Processing, Japan), IPA (Information-technology Promotion Agency, Japan). // All rights reserved. // // Redistribution and use of this software in source and binary forms, with // or without modification, are permitted provided that the following // conditions and disclaimer are agreed and accepted by the user: // // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // 3. Neither the names of the copyrighters, the name of the project which // is related to this software (hereinafter referred to as "project") nor // the names of the contributors may be used to endorse or promote products // derived from this software without specific prior written permission. // // 4. No merchantable use may be permitted without prior written // notification to the copyrighters. However, using this software for the // purpose of testing or evaluating any products including merchantable // products may be permitted without any notification to the copyrighters. // // // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHTERS, THE PROJECT AND // CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING // BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS // FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO EVENT SHALL THE // COPYRIGHTERS, THE PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT,STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF // THE POSSIBILITY OF SUCH DAMAGE. // $TINY: pmtuStore.def,v 1.3 2002/03/05 02:59:11 masaxmasa Exp $ // #include "PMTU.def" // // Too Big Mesg // /*********************************************************** Packet Too Big Messae w/ MTU=1280 ***********************************************************/ // // Too Big Mesg // FEM_icmp6_echo_request( icmp6_EchoRequest_1500_from_many_hosts, _HETHER_tn2nut, { _SRC(v6(SRCADDR)); _DST(NUT_GLOBAL_ADDRESS); }, { payload=ping_data_1452; } ) FEM_icmp6_echo_reply( icmp6_EchoReply_1500_to_many_hosts, _HETHER_nut2tn, { _SRC(NUT_GLOBAL_ADDRESS); _DST(v6(SRCADDR)); }, { payload=ping_data_1452; } ) FEM_icmp6_packet_too_big( icmp6_TooBigMesg_VAL_for_1500_many, _HETHER_tn2nut, { _SRC(v6("3ffe:501:ffff:ffff::1")); _DST(NUT_GLOBAL_ADDRESS); }, { MTU = VAL; payload = TooBigData_many; } ) Payload TooBigData_many { data=substr(_PACKET_IPV6_NAME(icmp6_EchoReply_1500_to_many_hosts),0,1232); } PMTU_fragment( frag_echo_reply_1500_1st_VAL_many, _HETHER_nut2tn, { NextHeader=44; _SRC(NUT_GLOBAL_ADDRESS); _DST(v6(SRCADDR)); }, { NextHeader=58; FragmentOffset=0; MFlag=1; Identification=any; }, { data=substr(_PACKET_IPV6_NAME(icmp6_EchoReply_1500_to_many_hosts),40,PAYLOADLEN1); } ) PMTU_fragment( frag_echo_reply_1500_2nd_VAL_many, _HETHER_nut2tn, { NextHeader=44; _SRC(NUT_GLOBAL_ADDRESS); _DST(v6(SRCADDR)); }, { NextHeader=58; FragmentOffset=OFFSETIN8OCT; MFlag=0; Identification=any; }, { data=substr(_PACKET_IPV6_NAME(icmp6_EchoReply_1500_to_many_hosts),OFFSET,PAYLOADLEN2); } ) PMTU_fragment( frag_echo_reply_1500_1st_1280_many, _HETHER_nut2tn, { NextHeader=44; _SRC(NUT_GLOBAL_ADDRESS); _DST(v6(SRCADDR)); }, { NextHeader=58; FragmentOffset=0; MFlag=1; Identification=any; }, { data=substr(_PACKET_IPV6_NAME(icmp6_EchoReply_1500_to_many_hosts),40,1232); } ) PMTU_fragment( frag_echo_reply_1500_2nd_1280_many, _HETHER_nut2tn, { NextHeader=44; _SRC(NUT_GLOBAL_ADDRESS); _DST(v6(SRCADDR)); }, { NextHeader=58; FragmentOffset=154; MFlag=0; Identification=any; }, { data=substr(_PACKET_IPV6_NAME(icmp6_EchoReply_1500_to_many_hosts),1272,228); } )