require '_h2ph_pre.ph';

unless(defined(&_FRAD_H_)) {
    eval 'sub _FRAD_H_ () {1;}' unless defined(&_FRAD_H_);
    require 'linux/config.ph';
    require 'linux/if.ph';
    if(defined( &CONFIG_DLCI) || defined( &CONFIG_DLCI_MODULE)) {
	eval 'sub DLCI_GET_CONF () {( &SIOCDEVPRIVATE + 2);}' unless defined(&DLCI_GET_CONF);
	eval 'sub DLCI_SET_CONF () {( &SIOCDEVPRIVATE + 3);}' unless defined(&DLCI_SET_CONF);
	eval 'sub DLCI_GET_SLAVE () {( &SIOCDEVPRIVATE + 4);}' unless defined(&DLCI_GET_SLAVE);
	eval 'sub DLCI_IGNORE_CIR_OUT () {0x1;}' unless defined(&DLCI_IGNORE_CIR_OUT);
	eval 'sub DLCI_ACCOUNT_CIR_IN () {0x2;}' unless defined(&DLCI_ACCOUNT_CIR_IN);
	eval 'sub DLCI_BUFFER_IF () {0x8;}' unless defined(&DLCI_BUFFER_IF);
	eval 'sub DLCI_VALID_FLAGS () {0xb;}' unless defined(&DLCI_VALID_FLAGS);
	eval 'sub DLCI_RET_OK () {0x;}' unless defined(&DLCI_RET_OK);
	eval 'sub DLCI_RET_ERR () {0x1;}' unless defined(&DLCI_RET_ERR);
	eval 'sub DLCI_RET_DROP () {0x2;}' unless defined(&DLCI_RET_DROP);
	eval 'sub FRAD_GET_CONF () {( &SIOCDEVPRIVATE);}' unless defined(&FRAD_GET_CONF);
	eval 'sub FRAD_SET_CONF () {( &SIOCDEVPRIVATE + 1);}' unless defined(&FRAD_SET_CONF);
	eval 'sub FRAD_LAST_IOCTL () { &FRAD_SET_CONF;}' unless defined(&FRAD_LAST_IOCTL);
	eval 'sub FRAD_STATION_CPE () {0x;}' unless defined(&FRAD_STATION_CPE);
	eval 'sub FRAD_STATION_NODE () {0x1;}' unless defined(&FRAD_STATION_NODE);
	eval 'sub FRAD_TX_IGNORE_CIR () {0x1;}' unless defined(&FRAD_TX_IGNORE_CIR);
	eval 'sub FRAD_RX_ACCOUNT_CIR () {0x2;}' unless defined(&FRAD_RX_ACCOUNT_CIR);
	eval 'sub FRAD_DROP_ABORTED () {0x4;}' unless defined(&FRAD_DROP_ABORTED);
	eval 'sub FRAD_BUFFERIF () {0x8;}' unless defined(&FRAD_BUFFERIF);
	eval 'sub FRAD_STATS () {0x10;}' unless defined(&FRAD_STATS);
	eval 'sub FRAD_MCI () {0x100;}' unless defined(&FRAD_MCI);
	eval 'sub FRAD_AUTODLCI () {0x8000;}' unless defined(&FRAD_AUTODLCI);
	eval 'sub FRAD_VALID_FLAGS () {0x811f;}' unless defined(&FRAD_VALID_FLAGS);
	eval 'sub FRAD_CLOCK_INT () {0x1;}' unless defined(&FRAD_CLOCK_INT);
	eval 'sub FRAD_CLOCK_EXT () {0x;}' unless defined(&FRAD_CLOCK_EXT);
    }
}
1;
