require '_h2ph_pre.ph';

unless(defined(&_LINUX_IF_H)) {
    eval 'sub _LINUX_IF_H () {1;}' unless defined(&_LINUX_IF_H);
    require 'linux/types.ph';
    require 'linux/socket.ph';
    eval 'sub IFF_UP () {0x1;}' unless defined(&IFF_UP);
    eval 'sub IFF_BROADCAST () {0x2;}' unless defined(&IFF_BROADCAST);
    eval 'sub IFF_DEBUG () {0x4;}' unless defined(&IFF_DEBUG);
    eval 'sub IFF_LOOPBACK () {0x8;}' unless defined(&IFF_LOOPBACK);
    eval 'sub IFF_POINTOPOINT () {0x10;}' unless defined(&IFF_POINTOPOINT);
    eval 'sub IFF_NOTRAILERS () {0x20;}' unless defined(&IFF_NOTRAILERS);
    eval 'sub IFF_RUNNING () {0x40;}' unless defined(&IFF_RUNNING);
    eval 'sub IFF_NOARP () {0x80;}' unless defined(&IFF_NOARP);
    eval 'sub IFF_PROMISC () {0x100;}' unless defined(&IFF_PROMISC);
    eval 'sub IFF_ALLMULTI () {0x200;}' unless defined(&IFF_ALLMULTI);
    eval 'sub IFF_MASTER () {0x400;}' unless defined(&IFF_MASTER);
    eval 'sub IFF_SLAVE () {0x800;}' unless defined(&IFF_SLAVE);
    eval 'sub IFF_MULTICAST () {0x1000;}' unless defined(&IFF_MULTICAST);
    eval 'sub IFF_VOLATILE () {( &IFF_LOOPBACK| &IFF_POINTOPOINT| &IFF_BROADCAST| &IFF_MASTER| &IFF_SLAVE| &IFF_RUNNING);}' unless defined(&IFF_VOLATILE);
    eval 'sub IFF_PORTSEL () {0x2000;}' unless defined(&IFF_PORTSEL);
    eval 'sub IFF_AUTOMEDIA () {0x4000;}' unless defined(&IFF_AUTOMEDIA);
    eval 'sub IFF_DYNAMIC () {0x8000;}' unless defined(&IFF_DYNAMIC);
    eval 'sub IFHWADDRLEN () {6;}' unless defined(&IFHWADDRLEN);
    eval 'sub IFNAMSIZ () {16;}' unless defined(&IFNAMSIZ);
    eval 'sub ifr_name () { ($ifr_ifrn->{ifrn_name});}' unless defined(&ifr_name);
    eval 'sub ifr_hwaddr () { ($ifr_ifru->{ifru_hwaddr});}' unless defined(&ifr_hwaddr);
    eval 'sub ifr_addr () { ($ifr_ifru->{ifru_addr});}' unless defined(&ifr_addr);
    eval 'sub ifr_dstaddr () { ($ifr_ifru->{ifru_dstaddr});}' unless defined(&ifr_dstaddr);
    eval 'sub ifr_broadaddr () { ($ifr_ifru->{ifru_broadaddr});}' unless defined(&ifr_broadaddr);
    eval 'sub ifr_netmask () { ($ifr_ifru->{ifru_netmask});}' unless defined(&ifr_netmask);
    eval 'sub ifr_flags () { ($ifr_ifru->{ifru_flags});}' unless defined(&ifr_flags);
    eval 'sub ifr_metric () { ($ifr_ifru->{ifru_ivalue});}' unless defined(&ifr_metric);
    eval 'sub ifr_mtu () { ($ifr_ifru->{ifru_mtu});}' unless defined(&ifr_mtu);
    eval 'sub ifr_map () { ($ifr_ifru->{ifru_map});}' unless defined(&ifr_map);
    eval 'sub ifr_slave () { ($ifr_ifru->{ifru_slave});}' unless defined(&ifr_slave);
    eval 'sub ifr_data () { ($ifr_ifru->{ifru_data});}' unless defined(&ifr_data);
    eval 'sub ifr_ifindex () { ($ifr_ifru->{ifru_ivalue});}' unless defined(&ifr_ifindex);
    eval 'sub ifr_bandwidth () { ($ifr_ifru->{ifru_ivalue});}' unless defined(&ifr_bandwidth);
    eval 'sub ifr_qlen () { ($ifr_ifru->{ifru_ivalue});}' unless defined(&ifr_qlen);
    eval 'sub ifr_newname () { ($ifr_ifru->{ifru_newname});}' unless defined(&ifr_newname);
    eval 'sub ifc_buf () { ($ifc_ifcu->{ifcu_buf});}' unless defined(&ifc_buf);
    eval 'sub ifc_req () { ($ifc_ifcu->{ifcu_req});}' unless defined(&ifc_req);
}
1;
