require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_ROUTED_H_)) {
    eval 'sub _ROUTED_H_ () {1;}' unless defined(&_ROUTED_H_);
    eval 'sub RIPv1 () {1;}' unless defined(&RIPv1);
    eval 'sub RIPv2 () {2;}' unless defined(&RIPv2);
    unless(defined(&RIPVERSION)) {
	eval 'sub RIPVERSION () { &RIPv1;}' unless defined(&RIPVERSION);
    }
    eval 'sub RIP_PORT () {520;}' unless defined(&RIP_PORT);
    if((defined(&RIPVERSION) ? &RIPVERSION : 0) == 1) {
    } else {
	eval 'sub RIP_AF_INET () { &htons( &AF_INET);}' unless defined(&RIP_AF_INET);
	eval 'sub RIP_AF_UNSPEC () {0;}' unless defined(&RIP_AF_UNSPEC);
	eval 'sub RIP_AF_AUTH () {0xffff;}' unless defined(&RIP_AF_AUTH);
	eval 'sub RIP_DEFAULT () {0;}' unless defined(&RIP_DEFAULT);
    }
    eval 'sub RIP_AUTH_PW () { &htons(2);}' unless defined(&RIP_AUTH_PW);
    eval 'sub RIP_AUTH_PW_LEN () {16;}' unless defined(&RIP_AUTH_PW_LEN);
    eval 'sub rip_nets () { ($ripun->{ru_nets});}' unless defined(&rip_nets);
    eval 'sub rip_tracefile () { ($ripun->{ru_tracefile});}' unless defined(&rip_tracefile);
    eval 'sub RIPCMD_REQUEST () {1;}' unless defined(&RIPCMD_REQUEST);
    eval 'sub RIPCMD_RESPONSE () {2;}' unless defined(&RIPCMD_RESPONSE);
    eval 'sub RIPCMD_TRACEON () {3;}' unless defined(&RIPCMD_TRACEON);
    eval 'sub RIPCMD_TRACEOFF () {4;}' unless defined(&RIPCMD_TRACEOFF);
    eval 'sub RIPCMD_POLL () {5;}' unless defined(&RIPCMD_POLL);
    eval 'sub RIPCMD_MAX () {6;}' unless defined(&RIPCMD_MAX);
    if(defined(&RIPCMDS)) {
    }
    eval 'sub HOPCNT_INFINITY () {16;}' unless defined(&HOPCNT_INFINITY);
    eval 'sub MAXPACKETSIZE () {512;}' unless defined(&MAXPACKETSIZE);
    eval 'sub NETS_LEN () {(( &MAXPACKETSIZE-$sizeof{\'struct rip\'}) / $sizeof{\'struct netinfo\'} +1);}' unless defined(&NETS_LEN);
    eval 'sub INADDR_RIP_GROUP () { &__IPADDR(0xe0000009);}' unless defined(&INADDR_RIP_GROUP);
    eval 'sub SUPPLY_INTERVAL () {30;}' unless defined(&SUPPLY_INTERVAL);
    eval 'sub MIN_WAITTIME () {2;}' unless defined(&MIN_WAITTIME);
    eval 'sub MAX_WAITTIME () {5;}' unless defined(&MAX_WAITTIME);
    eval 'sub STALE_TIME () {90;}' unless defined(&STALE_TIME);
    eval 'sub EXPIRE_TIME () {180;}' unless defined(&EXPIRE_TIME);
    eval 'sub GARBAGE_TIME () {240;}' unless defined(&GARBAGE_TIME);
}
1;
