require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NET_LAGG_IF_LAGG_H_)) {
    eval 'sub _NET_LAGG_IF_LAGG_H_ () {1;}' unless defined(&_NET_LAGG_IF_LAGG_H_);
    eval("sub LAGG_PROTO_NONE () { 0; }") unless defined(&LAGG_PROTO_NONE);
    eval("sub LAGG_PROTO_LACP () { 1; }") unless defined(&LAGG_PROTO_LACP);
    eval("sub LAGG_PROTO_FAILOVER () { 2; }") unless defined(&LAGG_PROTO_FAILOVER);
    eval("sub LAGG_PROTO_LOADBALANCE () { 3; }") unless defined(&LAGG_PROTO_LOADBALANCE);
    eval("sub LAGG_PROTO_MAX () { 4; }") unless defined(&LAGG_PROTO_MAX);
    eval 'sub LACP_STATE_ACTIVITY () { &__BIT(0);}' unless defined(&LACP_STATE_ACTIVITY);
    eval 'sub LACP_STATE_TIMEOUT () { &__BIT(1);}' unless defined(&LACP_STATE_TIMEOUT);
    eval 'sub LACP_STATE_AGGREGATION () { &__BIT(2);}' unless defined(&LACP_STATE_AGGREGATION);
    eval 'sub LACP_STATE_SYNC () { &__BIT(3);}' unless defined(&LACP_STATE_SYNC);
    eval 'sub LACP_STATE_COLLECTING () { &__BIT(4);}' unless defined(&LACP_STATE_COLLECTING);
    eval 'sub LACP_STATE_DISTRIBUTING () { &__BIT(5);}' unless defined(&LACP_STATE_DISTRIBUTING);
    eval 'sub LACP_STATE_DEFAULTED () { &__BIT(6);}' unless defined(&LACP_STATE_DEFAULTED);
    eval 'sub LACP_STATE_EXPIRED () { &__BIT(7);}' unless defined(&LACP_STATE_EXPIRED);
    eval 'sub LACP_STATE_BITS () {"\\020" "\\001ACTIVITY" "\\002TIMEOUT" "\\003AGGREGATION" "\\004SYNC" "\\005COLLECTING" "\\006DISTRIBUTING" "\\007DEFAULTED" "\\010EXPIRED";}' unless defined(&LACP_STATE_BITS);
    eval 'sub LACP_STATESTR_LEN () {256;}' unless defined(&LACP_STATESTR_LEN);
    eval 'sub LACP_MAC_LEN () { &ETHER_ADDR_LEN;}' unless defined(&LACP_MAC_LEN);
    eval("sub LAGGIOC_LACPSETFLAGS () { 1; }") unless defined(&LAGGIOC_LACPSETFLAGS);
    eval("sub LAGGIOC_LACPCLRFLAGS () { 2; }") unless defined(&LAGGIOC_LACPCLRFLAGS);
    eval("sub LAGGIOC_LACPSETMAXPORTS () { 3; }") unless defined(&LAGGIOC_LACPSETMAXPORTS);
    eval("sub LAGGIOC_LACPCLRMAXPORTS () { 4; }") unless defined(&LAGGIOC_LACPCLRMAXPORTS);
    eval 'sub LAGGREQLACP_OPTIMISTIC () { &__BIT(0);}' unless defined(&LAGGREQLACP_OPTIMISTIC);
    eval 'sub LAGGREQLACP_DUMPDU () { &__BIT(1);}' unless defined(&LAGGREQLACP_DUMPDU);
    eval 'sub LAGGREQLACP_STOPDU () { &__BIT(2);}' unless defined(&LAGGREQLACP_STOPDU);
    eval 'sub LAGGREQLACP_MULTILS () { &__BIT(3);}' unless defined(&LAGGREQLACP_MULTILS);
    eval 'sub LAGGREQLACP_BITS () {"\\020" "\\001OPTIMISTIC" "\\002DUMPDU" "\\003STOPDU" "\\004MULTILS";}' unless defined(&LAGGREQLACP_BITS);
    eval("sub LAGGIOC_FAILSETFLAGS () { 1; }") unless defined(&LAGGIOC_FAILSETFLAGS);
    eval("sub LAGGIOC_FAILCLRFLAGS () { 2; }") unless defined(&LAGGIOC_FAILCLRFLAGS);
    eval 'sub LAGGREQFAIL_RXALL () { &__BIT(0);}' unless defined(&LAGGREQFAIL_RXALL);
    eval 'sub rp_lacp () { ($rp_proto->{proto_lacp});}' unless defined(&rp_lacp);
    eval 'sub rp_fail () { ($rp_proto->{proto_fail});}' unless defined(&rp_fail);
    eval 'sub LAGG_PORT_SLAVE () {0;}' unless defined(&LAGG_PORT_SLAVE);
    eval 'sub LAGG_PORT_MASTER () { &__BIT(0);}' unless defined(&LAGG_PORT_MASTER);
    eval 'sub LAGG_PORT_STACK () { &__BIT(1);}' unless defined(&LAGG_PORT_STACK);
    eval 'sub LAGG_PORT_ACTIVE () { &__BIT(2);}' unless defined(&LAGG_PORT_ACTIVE);
    eval 'sub LAGG_PORT_COLLECTING () { &__BIT(3);}' unless defined(&LAGG_PORT_COLLECTING);
    eval 'sub LAGG_PORT_DISTRIBUTING () { &__BIT(4);}' unless defined(&LAGG_PORT_DISTRIBUTING);
    eval 'sub LAGG_PORT_STANDBY () { &__BIT(5);}' unless defined(&LAGG_PORT_STANDBY);
    eval 'sub LAGG_PORT_BITS () {"\\020" "\\001MASTER" "\\002STACK" "\\003ACTIVE" "\\004COLLECTING" "\\005DISTRIBUTING" "\\006STANDBY";}' unless defined(&LAGG_PORT_BITS);
    eval 'sub LACP_PORTSTR_LEN () {256;}' unless defined(&LACP_PORTSTR_LEN);
    eval 'sub rp_lacpport () { ($rp_port->{port_lacp});}' unless defined(&rp_lacpport);
    eval("sub LAGGIOC_NOCMD () { 0; }") unless defined(&LAGGIOC_NOCMD);
    eval("sub LAGGIOC_SETPROTO () { 1; }") unless defined(&LAGGIOC_SETPROTO);
    eval("sub LAGGIOC_SETPROTOOPT () { 2; }") unless defined(&LAGGIOC_SETPROTOOPT);
    eval("sub LAGGIOC_ADDPORT () { 3; }") unless defined(&LAGGIOC_ADDPORT);
    eval("sub LAGGIOC_DELPORT () { 4; }") unless defined(&LAGGIOC_DELPORT);
    eval("sub LAGGIOC_SETPORTPRI () { 5; }") unless defined(&LAGGIOC_SETPORTPRI);
    eval 'sub SIOCGLAGG () { &SIOCGIFGENERIC;}' unless defined(&SIOCGLAGG);
    eval 'sub SIOCSLAGG () { &SIOCSIFGENERIC;}' unless defined(&SIOCSLAGG);
}
1;
