require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NET_IF_VLAN_VAR_H_)) {
    eval 'sub _NET_IF_VLAN_VAR_H_ () {1;}' unless defined(&_NET_IF_VLAN_VAR_H_);
    if(defined(&_KERNEL)) {
	eval 'sub mc_enm () { ($mc_u->{mcu_enm});}' unless defined(&mc_enm);
	eval 'sub ifv_if () { ($ifv_ac->{ac_if});}' unless defined(&ifv_if);
	eval 'sub ifv_tag () { ($ifv_mib->{ifvm_tag});}' unless defined(&ifv_tag);
	eval 'sub ifv_prio () { ($ifv_mib->{ifvm_prio});}' unless defined(&ifv_prio);
	eval 'sub IFVF_PROMISC () {0x1;}' unless defined(&IFVF_PROMISC);
    }
    eval 'sub EVL_VLID_MASK () {0xfff;}' unless defined(&EVL_VLID_MASK);
    eval 'sub EVL_VLANOFTAG {
        my($tag) = @_;
	    eval q((($tag) &  &EVL_VLID_MASK));
    }' unless defined(&EVL_VLANOFTAG);
    eval 'sub EVL_PRIOFTAG {
        my($tag) = @_;
	    eval q(((($tag) >> 13) & 7));
    }' unless defined(&EVL_PRIOFTAG);
    eval 'sub EVL_ENCAPLEN () {4;}' unless defined(&EVL_ENCAPLEN);
    eval 'sub EVL_PRIO_MAX () {7;}' unless defined(&EVL_PRIO_MAX);
    eval 'sub EVL_PRIO_BITS () {13;}' unless defined(&EVL_PRIO_BITS);
    eval 'sub VLANCTL_PROTO () {1;}' unless defined(&VLANCTL_PROTO);
    eval 'sub VLANCTL_MAX () {2;}' unless defined(&VLANCTL_MAX);
    eval 'sub SIOCSETVLAN () { &SIOCSIFGENERIC;}' unless defined(&SIOCSETVLAN);
    eval 'sub SIOCGETVLAN () { &SIOCGIFGENERIC;}' unless defined(&SIOCGETVLAN);
    if(defined(&_KERNEL)) {
    }
}
1;
