require '_h2ph_pre.ph';

unless(defined(&_LINUX_ICMPV6_H)) {
    eval 'sub _LINUX_ICMPV6_H () {1;}' unless defined(&_LINUX_ICMPV6_H);
    require 'asm/byteorder.ph';
    if(defined( &__LITTLE_ENDIAN_BITFIELD)) {
    }
 elsif(defined( &__BIG_ENDIAN_BITFIELD)) {
    } else {
	die("Please fix <asm/byteorder.h>");
    }
    if(defined( &__LITTLE_ENDIAN_BITFIELD)) {
    }
 elsif(defined( &__BIG_ENDIAN_BITFIELD)) {
    } else {
	die("Please fix <asm/byteorder.h>");
    }
    eval 'sub icmp6_identifier () { ($icmp6_dataun->{u_echo}->{identifier});}' unless defined(&icmp6_identifier);
    eval 'sub icmp6_sequence () { ($icmp6_dataun->{u_echo}->{sequence});}' unless defined(&icmp6_sequence);
    eval 'sub icmp6_pointer () { ($icmp6_dataun->{un_data32[0]});}' unless defined(&icmp6_pointer);
    eval 'sub icmp6_mtu () { ($icmp6_dataun->{un_data32[0]});}' unless defined(&icmp6_mtu);
    eval 'sub icmp6_unused () { ($icmp6_dataun->{un_data32[0]});}' unless defined(&icmp6_unused);
    eval 'sub icmp6_maxdelay () { ($icmp6_dataun->{un_data16[0]});}' unless defined(&icmp6_maxdelay);
    eval 'sub icmp6_router () { ($icmp6_dataun->{u_nd_advt}->{router});}' unless defined(&icmp6_router);
    eval 'sub icmp6_solicited () { ($icmp6_dataun->{u_nd_advt}->{solicited});}' unless defined(&icmp6_solicited);
    eval 'sub icmp6_override () { ($icmp6_dataun->{u_nd_advt}->{override});}' unless defined(&icmp6_override);
    eval 'sub icmp6_ndiscreserved () { ($icmp6_dataun->{u_nd_advt}->{reserved});}' unless defined(&icmp6_ndiscreserved);
    eval 'sub icmp6_hop_limit () { ($icmp6_dataun->{u_nd_ra}->{hop_limit});}' unless defined(&icmp6_hop_limit);
    eval 'sub icmp6_addrconf_managed () { ($icmp6_dataun->{u_nd_ra}->{managed});}' unless defined(&icmp6_addrconf_managed);
    eval 'sub icmp6_addrconf_other () { ($icmp6_dataun->{u_nd_ra}->{other});}' unless defined(&icmp6_addrconf_other);
    eval 'sub icmp6_rt_lifetime () { ($icmp6_dataun->{u_nd_ra}->{rt_lifetime});}' unless defined(&icmp6_rt_lifetime);
    eval 'sub ICMPV6_DEST_UNREACH () {1;}' unless defined(&ICMPV6_DEST_UNREACH);
    eval 'sub ICMPV6_PKT_TOOBIG () {2;}' unless defined(&ICMPV6_PKT_TOOBIG);
    eval 'sub ICMPV6_TIME_EXCEED () {3;}' unless defined(&ICMPV6_TIME_EXCEED);
    eval 'sub ICMPV6_PARAMPROB () {4;}' unless defined(&ICMPV6_PARAMPROB);
    eval 'sub ICMPV6_INFOMSG_MASK () {0x80;}' unless defined(&ICMPV6_INFOMSG_MASK);
    eval 'sub ICMPV6_ECHO_REQUEST () {128;}' unless defined(&ICMPV6_ECHO_REQUEST);
    eval 'sub ICMPV6_ECHO_REPLY () {129;}' unless defined(&ICMPV6_ECHO_REPLY);
    eval 'sub ICMPV6_MGM_QUERY () {130;}' unless defined(&ICMPV6_MGM_QUERY);
    eval 'sub ICMPV6_MGM_REPORT () {131;}' unless defined(&ICMPV6_MGM_REPORT);
    eval 'sub ICMPV6_MGM_REDUCTION () {132;}' unless defined(&ICMPV6_MGM_REDUCTION);
    eval 'sub ICMPV6_NOROUTE () {0;}' unless defined(&ICMPV6_NOROUTE);
    eval 'sub ICMPV6_ADM_PROHIBITED () {1;}' unless defined(&ICMPV6_ADM_PROHIBITED);
    eval 'sub ICMPV6_NOT_NEIGHBOUR () {2;}' unless defined(&ICMPV6_NOT_NEIGHBOUR);
    eval 'sub ICMPV6_ADDR_UNREACH () {3;}' unless defined(&ICMPV6_ADDR_UNREACH);
    eval 'sub ICMPV6_PORT_UNREACH () {4;}' unless defined(&ICMPV6_PORT_UNREACH);
    eval 'sub ICMPV6_EXC_HOPLIMIT () {0;}' unless defined(&ICMPV6_EXC_HOPLIMIT);
    eval 'sub ICMPV6_EXC_FRAGTIME () {1;}' unless defined(&ICMPV6_EXC_FRAGTIME);
    eval 'sub ICMPV6_HDR_FIELD () {0;}' unless defined(&ICMPV6_HDR_FIELD);
    eval 'sub ICMPV6_UNK_NEXTHDR () {1;}' unless defined(&ICMPV6_UNK_NEXTHDR);
    eval 'sub ICMPV6_UNK_OPTION () {2;}' unless defined(&ICMPV6_UNK_OPTION);
    eval 'sub ICMPV6_FILTER () {1;}' unless defined(&ICMPV6_FILTER);
    eval 'sub ICMPV6_FILTER_BLOCK () {1;}' unless defined(&ICMPV6_FILTER_BLOCK);
    eval 'sub ICMPV6_FILTER_PASS () {2;}' unless defined(&ICMPV6_FILTER_PASS);
    eval 'sub ICMPV6_FILTER_BLOCKOTHERS () {3;}' unless defined(&ICMPV6_FILTER_BLOCKOTHERS);
    eval 'sub ICMPV6_FILTER_PASSONLY () {4;}' unless defined(&ICMPV6_FILTER_PASSONLY);
}
1;
