require '_h2ph_pre.ph';

unless(defined(&__IP_STATE_H__)) {
    eval 'sub __IP_STATE_H__ () {1;}' unless defined(&__IP_STATE_H__);
    if(defined( &__STDC__) || defined( &__GNUC__)) {
	eval 'sub SIOCDELST () { &_IOW(ord(\'r\'), 61, \'struct ipstate\' *);}' unless defined(&SIOCDELST);
    } else {
	eval 'sub SIOCDELST () { &_IOW("r", 61, \'struct ipstate\' *);}' unless defined(&SIOCDELST);
    }
    unless(defined(&IPSTATE_SIZE)) {
	eval 'sub IPSTATE_SIZE () {5737;}' unless defined(&IPSTATE_SIZE);
    }
    unless(defined(&IPSTATE_MAX)) {
	eval 'sub IPSTATE_MAX () {4013;}' unless defined(&IPSTATE_MAX);
    }
    eval 'sub PAIRS {
        local($s1,$d1,$s2,$d2) = @_;
	    eval q((((($s1) == ($s2))  && (($d1) == ($d2))) || ((($s1) == ($d2))  && (($d1) == ($s2)))));
    }' unless defined(&PAIRS);
    eval 'sub IPPAIR {
        local($s1,$d1,$s2,$d2) = @_;
	    eval q( &PAIRS(($s1). &s_addr, ($d1). &s_addr, ($s2). &s_addr, ($d2). &s_addr));
    }' unless defined(&IPPAIR);
    if((defined(&SOLARIS) ? &SOLARIS : 0) || defined( &__sgi)) {
    }
    eval 'sub is_saddr () { ($is_src->{in4}->{s_addr});}' unless defined(&is_saddr);
    eval 'sub is_daddr () { ($is_dst->{in4}->{s_addr});}' unless defined(&is_daddr);
    eval 'sub is_icmp () { ($is_ps->{is_ics});}' unless defined(&is_icmp);
    eval 'sub is_type () { ($is_icmp->{ics_type});}' unless defined(&is_type);
    eval 'sub is_code () { ($is_icmp->{ics_code});}' unless defined(&is_code);
    eval 'sub is_tcp () { ($is_ps->{is_ts});}' unless defined(&is_tcp);
    eval 'sub is_udp () { ($is_ps->{is_us});}' unless defined(&is_udp);
    eval 'sub is_send () { ($is_tcp->{ts_data[0]}->{td_end});}' unless defined(&is_send);
    eval 'sub is_dend () { ($is_tcp->{ts_data[1]}->{td_end});}' unless defined(&is_dend);
    eval 'sub is_maxswin () { ($is_tcp->{ts_data[0]}->{td_maxwin});}' unless defined(&is_maxswin);
    eval 'sub is_maxdwin () { ($is_tcp->{ts_data[1]}->{td_maxwin});}' unless defined(&is_maxdwin);
    eval 'sub is_maxsend () { ($is_tcp->{ts_data[0]}->{td_maxend});}' unless defined(&is_maxsend);
    eval 'sub is_maxdend () { ($is_tcp->{ts_data[1]}->{td_maxend});}' unless defined(&is_maxdend);
    eval 'sub is_sport () { ($is_tcp->{ts_sport});}' unless defined(&is_sport);
    eval 'sub is_dport () { ($is_tcp->{ts_dport});}' unless defined(&is_dport);
    eval 'sub is_state () { ($is_tcp->{ts_state});}' unless defined(&is_state);
    eval 'sub is_ifpin () { $is_ifp[0];}' unless defined(&is_ifpin);
    eval 'sub is_ifpout () { $is_ifp[1];}' unless defined(&is_ifpout);
    eval 'sub TH_OPENING () {( &TH_SYN| &TH_ACK);}' unless defined(&TH_OPENING);
    eval 'sub ips_rule () { ($ips_is->{is_rule});}' unless defined(&ips_rule);
    eval 'sub isl_sport () { ($isl_ps->{isl_ports[0]});}' unless defined(&isl_sport);
    eval 'sub isl_dport () { ($isl_ps->{isl_ports[1]});}' unless defined(&isl_dport);
    eval 'sub isl_itype () { ($isl_ps->{isl_icmp});}' unless defined(&isl_itype);
    eval 'sub ISL_NEW () {0;}' unless defined(&ISL_NEW);
    eval 'sub ISL_EXPIRE () {0xffff;}' unless defined(&ISL_EXPIRE);
    eval 'sub ISL_FLUSH () {0xfffe;}' unless defined(&ISL_FLUSH);
    eval 'sub ISL_REMOVE () {0xfffd;}' unless defined(&ISL_REMOVE);
    if(defined( &__NetBSD__) || defined( &__OpenBSD__)) {
    } else {
    }
}
1;
