require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NETINET_IP_H_)) {
    eval 'sub _NETINET_IP_H_ () {1;}' unless defined(&_NETINET_IP_H_);
    eval 'sub IPVERSION () {4;}' unless defined(&IPVERSION);
    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 IP_RF () {0x8000;}' unless defined(&IP_RF);
    eval 'sub IP_DF () {0x4000;}' unless defined(&IP_DF);
    eval 'sub IP_MF () {0x2000;}' unless defined(&IP_MF);
    eval 'sub IP_OFFMASK () {0x1fff;}' unless defined(&IP_OFFMASK);
    eval 'sub IP_MAXPACKET () {65535;}' unless defined(&IP_MAXPACKET);
    eval 'sub IPTOS_LOWDELAY () {0x10;}' unless defined(&IPTOS_LOWDELAY);
    eval 'sub IPTOS_THROUGHPUT () {0x8;}' unless defined(&IPTOS_THROUGHPUT);
    eval 'sub IPTOS_RELIABILITY () {0x4;}' unless defined(&IPTOS_RELIABILITY);
    if(1) {
	eval 'sub IPTOS_CE () {0x1;}' unless defined(&IPTOS_CE);
	eval 'sub IPTOS_ECT () {0x2;}' unless defined(&IPTOS_ECT);
    }
    eval 'sub IPTOS_PREC_NETCONTROL () {0xe0;}' unless defined(&IPTOS_PREC_NETCONTROL);
    eval 'sub IPTOS_PREC_INTERNETCONTROL () {0xc0;}' unless defined(&IPTOS_PREC_INTERNETCONTROL);
    eval 'sub IPTOS_PREC_CRITIC_ECP () {0xa0;}' unless defined(&IPTOS_PREC_CRITIC_ECP);
    eval 'sub IPTOS_PREC_FLASHOVERRIDE () {0x80;}' unless defined(&IPTOS_PREC_FLASHOVERRIDE);
    eval 'sub IPTOS_PREC_FLASH () {0x60;}' unless defined(&IPTOS_PREC_FLASH);
    eval 'sub IPTOS_PREC_IMMEDIATE () {0x40;}' unless defined(&IPTOS_PREC_IMMEDIATE);
    eval 'sub IPTOS_PREC_PRIORITY () {0x20;}' unless defined(&IPTOS_PREC_PRIORITY);
    eval 'sub IPTOS_PREC_ROUTINE () {0x;}' unless defined(&IPTOS_PREC_ROUTINE);
    eval 'sub IPTOS_ECN_NOTECT () {0x;}' unless defined(&IPTOS_ECN_NOTECT);
    eval 'sub IPTOS_ECN_ECT1 () {0x1;}' unless defined(&IPTOS_ECN_ECT1);
    eval 'sub IPTOS_ECN_ECT0 () {0x2;}' unless defined(&IPTOS_ECN_ECT0);
    eval 'sub IPTOS_ECN_CE () {0x3;}' unless defined(&IPTOS_ECN_CE);
    eval 'sub IPTOS_ECN_MASK () {0x3;}' unless defined(&IPTOS_ECN_MASK);
    eval 'sub IPOPT_COPIED {
        my($o) = @_;
	    eval q((($o)&0x80));
    }' unless defined(&IPOPT_COPIED);
    eval 'sub IPOPT_CLASS {
        my($o) = @_;
	    eval q((($o)&0x60));
    }' unless defined(&IPOPT_CLASS);
    eval 'sub IPOPT_NUMBER {
        my($o) = @_;
	    eval q((($o)&0x1f));
    }' unless defined(&IPOPT_NUMBER);
    eval 'sub IPOPT_CONTROL () {0x;}' unless defined(&IPOPT_CONTROL);
    eval 'sub IPOPT_RESERVED1 () {0x20;}' unless defined(&IPOPT_RESERVED1);
    eval 'sub IPOPT_DEBMEAS () {0x40;}' unless defined(&IPOPT_DEBMEAS);
    eval 'sub IPOPT_RESERVED2 () {0x60;}' unless defined(&IPOPT_RESERVED2);
    eval 'sub IPOPT_EOL () {0;}' unless defined(&IPOPT_EOL);
    eval 'sub IPOPT_NOP () {1;}' unless defined(&IPOPT_NOP);
    eval 'sub IPOPT_RR () {7;}' unless defined(&IPOPT_RR);
    eval 'sub IPOPT_TS () {68;}' unless defined(&IPOPT_TS);
    eval 'sub IPOPT_SECURITY () {130;}' unless defined(&IPOPT_SECURITY);
    eval 'sub IPOPT_LSRR () {131;}' unless defined(&IPOPT_LSRR);
    eval 'sub IPOPT_SATID () {136;}' unless defined(&IPOPT_SATID);
    eval 'sub IPOPT_SSRR () {137;}' unless defined(&IPOPT_SSRR);
    eval 'sub IPOPT_OPTVAL () {0;}' unless defined(&IPOPT_OPTVAL);
    eval 'sub IPOPT_OLEN () {1;}' unless defined(&IPOPT_OLEN);
    eval 'sub IPOPT_OFFSET () {2;}' unless defined(&IPOPT_OFFSET);
    eval 'sub IPOPT_MINOFF () {4;}' unless defined(&IPOPT_MINOFF);
    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 IPOPT_TS_TSONLY () {0;}' unless defined(&IPOPT_TS_TSONLY);
    eval 'sub IPOPT_TS_TSANDADDR () {1;}' unless defined(&IPOPT_TS_TSANDADDR);
    eval 'sub IPOPT_TS_PRESPEC () {3;}' unless defined(&IPOPT_TS_PRESPEC);
    eval 'sub IPOPT_SECUR_UNCLASS () {0x;}' unless defined(&IPOPT_SECUR_UNCLASS);
    eval 'sub IPOPT_SECUR_CONFID () {0xf135;}' unless defined(&IPOPT_SECUR_CONFID);
    eval 'sub IPOPT_SECUR_EFTO () {0x789a;}' unless defined(&IPOPT_SECUR_EFTO);
    eval 'sub IPOPT_SECUR_MMMM () {0xbc4d;}' unless defined(&IPOPT_SECUR_MMMM);
    eval 'sub IPOPT_SECUR_RESTR () {0xaf13;}' unless defined(&IPOPT_SECUR_RESTR);
    eval 'sub IPOPT_SECUR_SECRET () {0xd788;}' unless defined(&IPOPT_SECUR_SECRET);
    eval 'sub IPOPT_SECUR_TOPSECRET () {0x6bc5;}' unless defined(&IPOPT_SECUR_TOPSECRET);
    eval 'sub MAXTTL () {255;}' unless defined(&MAXTTL);
    eval 'sub IPDEFTTL () {64;}' unless defined(&IPDEFTTL);
    eval 'sub IPFRAGTTL () {60;}' unless defined(&IPFRAGTTL);
    eval 'sub IPTTLDEC () {1;}' unless defined(&IPTTLDEC);
    eval 'sub IP_MSS () {576;}' unless defined(&IP_MSS);
}
1;
