require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_ALTQ_ALTQ_FLOWVALVE_H_)) {
    eval 'sub _ALTQ_ALTQ_FLOWVALVE_H_ () {1;}' unless defined(&_ALTQ_ALTQ_FLOWVALVE_H_);
    if(defined(&_KERNEL)) {
	if(defined(&_KERNEL_OPT)) {
	    require './altq/opt_inet.ph';
	}
	if(defined(&INET6)) {
	}
	eval 'sub flow_ip () { ($flow_un->{_ip});}' unless defined(&flow_ip);
	eval 'sub flow_ip6 () { ($flow_un->{_ip6});}' unless defined(&flow_ip6);
	eval("sub Green () { 0; }") unless defined(&Green);
	eval("sub Red () { 1; }") unless defined(&Red);
    }
}
1;
