require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NETINET_IP_CARP_H_)) {
    eval 'sub _NETINET_IP_CARP_H_ () {1;}' unless defined(&_NETINET_IP_CARP_H_);
    if((defined(&_BYTE_ORDER) ? &_BYTE_ORDER : undef) == (defined(&_LITTLE_ENDIAN) ? &_LITTLE_ENDIAN : undef)) {
    }
    if((defined(&_BYTE_ORDER) ? &_BYTE_ORDER : undef) == (defined(&_BIG_ENDIAN) ? &_BIG_ENDIAN : undef)) {
    }
    eval 'sub CARP_DFLTTL () {255;}' unless defined(&CARP_DFLTTL);
    eval 'sub CARP_VERSION () {2;}' unless defined(&CARP_VERSION);
    eval 'sub CARP_ADVERTISEMENT () {0x1;}' unless defined(&CARP_ADVERTISEMENT);
    eval 'sub CARP_KEY_LEN () {20;}' unless defined(&CARP_KEY_LEN);
    eval 'sub CARP_DFLTINTV () {1;}' unless defined(&CARP_DFLTINTV);
    eval 'sub CARPDEVNAMSIZ () {16;}' unless defined(&CARPDEVNAMSIZ);
    if(defined(&IFNAMSIZ)) {
	if((defined(&CARPDEVNAMSIZ) ? &CARPDEVNAMSIZ : undef) != (defined(&IFNAMSIZ) ? &IFNAMSIZ : undef)) {
	}
    }
    eval 'sub CARP_STATES () {"INIT", "BACKUP", "MASTER";}' unless defined(&CARP_STATES);
    eval 'sub CARP_MAXSTATE () {2;}' unless defined(&CARP_MAXSTATE);
    eval 'sub CARP_MAXNODES () {32;}' unless defined(&CARP_MAXNODES);
    eval 'sub CARP_BAL_MODES () {"none", "arp", "ip", "ip-stealth", "ip-unicast";}' unless defined(&CARP_BAL_MODES);
    eval 'sub CARP_BAL_NONE () {0;}' unless defined(&CARP_BAL_NONE);
    eval 'sub CARP_BAL_ARP () {1;}' unless defined(&CARP_BAL_ARP);
    eval 'sub CARP_BAL_IP () {2;}' unless defined(&CARP_BAL_IP);
    eval 'sub CARP_BAL_IPSTEALTH () {3;}' unless defined(&CARP_BAL_IPSTEALTH);
    eval 'sub CARP_BAL_IPUNICAST () {4;}' unless defined(&CARP_BAL_IPUNICAST);
    eval 'sub CARP_BAL_MAXID () {4;}' unless defined(&CARP_BAL_MAXID);
    eval 'sub CARPCTL_ALLOW () {1;}' unless defined(&CARPCTL_ALLOW);
    eval 'sub CARPCTL_PREEMPT () {2;}' unless defined(&CARPCTL_PREEMPT);
    eval 'sub CARPCTL_LOG () {3;}' unless defined(&CARPCTL_LOG);
    eval 'sub CARPCTL_STATS () {4;}' unless defined(&CARPCTL_STATS);
    eval 'sub CARPCTL_MAXID () {5;}' unless defined(&CARPCTL_MAXID);
    eval 'sub CARPCTL_NAMES () {{ { 0, 0}, { "allow",  &CTLTYPE_INT }, { "preempt",  &CTLTYPE_INT }, { "log",  &CTLTYPE_INT }, { "stats",  &CTLTYPE_STRUCT }, };}' unless defined(&CARPCTL_NAMES);
    if(defined(&_KERNEL)) {
    }
}
1;
