require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NETINET_TCP_H_)) {
    eval 'sub _NETINET_TCP_H_ () {1;}' unless defined(&_NETINET_TCP_H_);
    if((defined(&_BYTE_ORDER) ? &_BYTE_ORDER : 0) == (defined(&_LITTLE_ENDIAN) ? &_LITTLE_ENDIAN : 0)) {
    }
    if((defined(&_BYTE_ORDER) ? &_BYTE_ORDER : 0) == (defined(&_BIG_ENDIAN) ? &_BIG_ENDIAN : 0)) {
    }
    eval 'sub TH_FIN () {0x1;}' unless defined(&TH_FIN);
    eval 'sub TH_SYN () {0x2;}' unless defined(&TH_SYN);
    eval 'sub TH_RST () {0x4;}' unless defined(&TH_RST);
    eval 'sub TH_PUSH () {0x8;}' unless defined(&TH_PUSH);
    eval 'sub TH_ACK () {0x10;}' unless defined(&TH_ACK);
    eval 'sub TH_URG () {0x20;}' unless defined(&TH_URG);
    eval 'sub TH_ECE () {0x40;}' unless defined(&TH_ECE);
    eval 'sub TH_CWR () {0x80;}' unless defined(&TH_CWR);
    eval 'sub th_reseqlen () { &th_urp;}' unless defined(&th_reseqlen);
    eval 'sub TCPOPT_EOL () {0;}' unless defined(&TCPOPT_EOL);
    eval 'sub TCPOPT_NOP () {1;}' unless defined(&TCPOPT_NOP);
    eval 'sub TCPOPT_MAXSEG () {2;}' unless defined(&TCPOPT_MAXSEG);
    eval 'sub TCPOLEN_MAXSEG () {4;}' unless defined(&TCPOLEN_MAXSEG);
    eval 'sub TCPOPT_WINDOW () {3;}' unless defined(&TCPOPT_WINDOW);
    eval 'sub TCPOLEN_WINDOW () {3;}' unless defined(&TCPOLEN_WINDOW);
    eval 'sub TCPOPT_SACK_PERMITTED () {4;}' unless defined(&TCPOPT_SACK_PERMITTED);
    eval 'sub TCPOLEN_SACK_PERMITTED () {2;}' unless defined(&TCPOLEN_SACK_PERMITTED);
    eval 'sub TCPOPT_SACK () {5;}' unless defined(&TCPOPT_SACK);
    eval 'sub TCPOLEN_SACK () {8;}' unless defined(&TCPOLEN_SACK);
    eval 'sub TCPOPT_TIMESTAMP () {8;}' unless defined(&TCPOPT_TIMESTAMP);
    eval 'sub TCPOLEN_TIMESTAMP () {10;}' unless defined(&TCPOLEN_TIMESTAMP);
    eval 'sub TCPOLEN_TSTAMP_APPA () {( &TCPOLEN_TIMESTAMP+2);}' unless defined(&TCPOLEN_TSTAMP_APPA);
    eval 'sub TCPOPT_SIGNATURE () {19;}' unless defined(&TCPOPT_SIGNATURE);
    eval 'sub TCPOLEN_SIGNATURE () {18;}' unless defined(&TCPOLEN_SIGNATURE);
    eval 'sub TCPOLEN_SIGLEN () {( &TCPOLEN_SIGNATURE+2);}' unless defined(&TCPOLEN_SIGLEN);
    eval 'sub MAX_TCPOPTLEN () {40;}' unless defined(&MAX_TCPOPTLEN);
    eval 'sub TCPOPT_TSTAMP_HDR () {( &TCPOPT_NOP<<24| &TCPOPT_NOP<<16| &TCPOPT_TIMESTAMP<<8| &TCPOLEN_TIMESTAMP);}' unless defined(&TCPOPT_TSTAMP_HDR);
    eval 'sub TCPOPT_SACK_PERMIT_HDR () {( &TCPOPT_NOP<<24| &TCPOPT_NOP<<16| &TCPOPT_SACK_PERMITTED<<8| &TCPOLEN_SACK_PERMITTED);}' unless defined(&TCPOPT_SACK_PERMIT_HDR);
    eval 'sub TCPOPT_SACK_HDR () {( &TCPOPT_NOP<<24| &TCPOPT_NOP<<16| &TCPOPT_SACK<<8);}' unless defined(&TCPOPT_SACK_HDR);
    eval 'sub MAX_SACK_BLKS () {6;}' unless defined(&MAX_SACK_BLKS);
    eval 'sub TCP_MAX_SACK () {3;}' unless defined(&TCP_MAX_SACK);
    eval 'sub TCP_MAXBURST () {4;}' unless defined(&TCP_MAXBURST);
    eval 'sub TCP_MSS () {512;}' unless defined(&TCP_MSS);
    eval 'sub TCP_MAXWIN () {65535;}' unless defined(&TCP_MAXWIN);
    eval 'sub TCP_MAX_WINSHIFT () {14;}' unless defined(&TCP_MAX_WINSHIFT);
    eval 'sub TCP_NODELAY () {0x1;}' unless defined(&TCP_NODELAY);
    eval 'sub TCP_MAXSEG () {0x2;}' unless defined(&TCP_MAXSEG);
    eval 'sub TCP_MD5SIG () {0x4;}' unless defined(&TCP_MD5SIG);
    eval 'sub TCP_SACK_ENABLE () {0x8;}' unless defined(&TCP_SACK_ENABLE);
}
1;
