require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NETINET_TCP_SEQ_H_)) {
    eval 'sub _NETINET_TCP_SEQ_H_ () {1;}' unless defined(&_NETINET_TCP_SEQ_H_);
    eval 'sub SEQ_LT {
        my($a,$b) = @_;
	    eval q(((($a)-($b)) < 0));
    }' unless defined(&SEQ_LT);
    eval 'sub SEQ_LEQ {
        my($a,$b) = @_;
	    eval q(((($a)-($b)) <= 0));
    }' unless defined(&SEQ_LEQ);
    eval 'sub SEQ_GT {
        my($a,$b) = @_;
	    eval q(((($a)-($b)) > 0));
    }' unless defined(&SEQ_GT);
    eval 'sub SEQ_GEQ {
        my($a,$b) = @_;
	    eval q(((($a)-($b)) >= 0));
    }' unless defined(&SEQ_GEQ);
    eval 'sub SEQ_MIN {
        my($a, $b) = @_;
	    eval q((( &SEQ_LT($a, $b)) ? ($a) : ($b)));
    }' unless defined(&SEQ_MIN);
    eval 'sub SEQ_MAX {
        my($a, $b) = @_;
	    eval q((( &SEQ_GT($a, $b)) ? ($a) : ($b)));
    }' unless defined(&SEQ_MAX);
    eval 'sub SEQ_SUB {
        my($a,$b) = @_;
	    eval q(((($a)-($b))));
    }' unless defined(&SEQ_SUB);
    eval 'sub tcp_rcvseqinit {
        my($tp) = @_;
	    eval q(($tp)-> &rcv_adv = ($tp)-> &rcv_nxt = ($tp)-> &irs + 1);
    }' unless defined(&tcp_rcvseqinit);
    eval 'sub tcp_sendseqinit {
        my($tp) = @_;
	    eval q(($tp)-> &snd_una = ($tp)-> &snd_nxt = ($tp)-> &snd_max = ($tp)-> &snd_up = ($tp)-> &snd_recover = ($tp)-> &snd_high = ($tp)-> &snd_fack = ($tp)-> &iss);
    }' unless defined(&tcp_sendseqinit);
    eval 'sub TCP_ISS_RANDOM_MASK () {0xffffff;}' unless defined(&TCP_ISS_RANDOM_MASK);
    eval 'sub TCP_ISSINCR () {0x1000000;}' unless defined(&TCP_ISSINCR);
    if(defined(&_KERNEL)) {
    }
}
1;
