require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NETINET6_TCPIPV6_H)) {
    eval 'sub _NETINET6_TCPIPV6_H () {1;}' unless defined(&_NETINET6_TCPIPV6_H);
    require 'netinet/ip6.ph';
    require 'netinet/tcp.ph';
    eval 'sub ti6_src () { ($ti6_i->{ip6_src});}' unless defined(&ti6_src);
    eval 'sub ti6_dst () { ($ti6_i->{ip6_dst});}' unless defined(&ti6_dst);
    eval 'sub ti6_plen () { ($ti6_i->{ip6_plen});}' unless defined(&ti6_plen);
    eval 'sub ti6_sport () { ($ti6_t->{th_sport});}' unless defined(&ti6_sport);
    eval 'sub ti6_dport () { ($ti6_t->{th_dport});}' unless defined(&ti6_dport);
    eval 'sub ti6_seq () { ($ti6_t->{th_seq});}' unless defined(&ti6_seq);
    eval 'sub ti6_ack () { ($ti6_t->{th_ack});}' unless defined(&ti6_ack);
    eval 'sub ti6_x2 () { ($ti6_t->{th_x2});}' unless defined(&ti6_x2);
    eval 'sub ti6_off () { ($ti6_t->{th_off});}' unless defined(&ti6_off);
    eval 'sub ti6_flags () { ($ti6_t->{th_flags});}' unless defined(&ti6_flags);
    eval 'sub ti6_win () { ($ti6_t->{th_win});}' unless defined(&ti6_win);
    eval 'sub ti6_sum () { ($ti6_t->{th_sum});}' unless defined(&ti6_sum);
    eval 'sub ti6_urp () { ($ti6_t->{th_urp});}' unless defined(&ti6_urp);
}
1;
