require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&NET_PIPEX_H)) {
    eval 'sub NET_PIPEX_H () {1;}' unless defined(&NET_PIPEX_H);
    eval 'sub PIPEX_ENABLE () {1;}' unless defined(&PIPEX_ENABLE);
    eval 'sub PIPEX_DISABLE () {0;}' unless defined(&PIPEX_DISABLE);
    eval 'sub PIPEX_PROTO_PPPOE () {0x8864;}' unless defined(&PIPEX_PROTO_PPPOE);
    eval 'sub PIPEX_PROTO_PPTP () {0x880b;}' unless defined(&PIPEX_PROTO_PPTP);
    eval 'sub PIPEX_MAX_LISTREQ () {128;}' unless defined(&PIPEX_MAX_LISTREQ);
    eval 'sub PIPEX_MPPE_KEYLEN () {16;}' unless defined(&PIPEX_MPPE_KEYLEN);
    eval 'sub PIPEX_PPP_ACFC_ACCEPTED () {0x1;}' unless defined(&PIPEX_PPP_ACFC_ACCEPTED);
    eval 'sub PIPEX_PPP_PFC_ACCEPTED () {0x2;}' unless defined(&PIPEX_PPP_PFC_ACCEPTED);
    eval 'sub PIPEX_PPP_ACFC_ENABLED () {0x4;}' unless defined(&PIPEX_PPP_ACFC_ENABLED);
    eval 'sub PIPEX_PPP_PFC_ENABLED () {0x8;}' unless defined(&PIPEX_PPP_PFC_ENABLED);
    eval 'sub PIPEX_PPP_MPPE_ACCEPTED () {0x10;}' unless defined(&PIPEX_PPP_MPPE_ACCEPTED);
    eval 'sub PIPEX_PPP_MPPE_ENABLED () {0x20;}' unless defined(&PIPEX_PPP_MPPE_ENABLED);
    eval 'sub PIPEX_PPP_MPPE_REQUIRED () {0x40;}' unless defined(&PIPEX_PPP_MPPE_REQUIRED);
    eval 'sub PIPEX_PPP_HAS_ACF () {0x80;}' unless defined(&PIPEX_PPP_HAS_ACF);
    eval 'sub PIPEX_PPP_ADJUST_TCPMSS () {0x100;}' unless defined(&PIPEX_PPP_ADJUST_TCPMSS);
    eval 'sub pipex_session_close_req () { &pipex_session_stat_req;}' unless defined(&pipex_session_close_req);
    eval 'sub pcr_protocol () { &psr_protocol;}' unless defined(&pcr_protocol);
    eval 'sub pcr_session_id () { &psr_session_id;}' unless defined(&pcr_session_id);
    eval 'sub pcr_stat () { &psr_stat;}' unless defined(&pcr_stat);
    eval 'sub PIPEX_LISTREQ_NONE () {0x;}' unless defined(&PIPEX_LISTREQ_NONE);
    eval 'sub PIPEX_LISTREQ_MORE () {0x1;}' unless defined(&PIPEX_LISTREQ_MORE);
    eval 'sub PIPEXSMODE () { &_IOW (ord(\'t\'), 96, \'int\');}' unless defined(&PIPEXSMODE);
    eval 'sub PIPEXGMODE () { &_IOR (ord(\'t\'), 97, \'int\');}' unless defined(&PIPEXGMODE);
    eval 'sub PIPEXASESSION () { &_IOW (ord(\'t\'), 98, \'struct pipex_session_req\');}' unless defined(&PIPEXASESSION);
    eval 'sub PIPEXDSESSION () { &_IOWR(ord(\'t\'), 99, \'struct pipex_session_close_req\');}' unless defined(&PIPEXDSESSION);
    eval 'sub PIPEXCSESSION () { &_IOW (ord(\'t\'), 100, \'struct pipex_session_config_req\');}' unless defined(&PIPEXCSESSION);
    eval 'sub PIPEXGSTAT () { &_IOWR(ord(\'t\'), 101, \'struct pipex_session_stat_req\');}' unless defined(&PIPEXGSTAT);
    eval 'sub PIPEXGCLOSED () { &_IOR (ord(\'t\'), 102, \'struct pipex_session_list_req\');}' unless defined(&PIPEXGCLOSED);
    if(defined(&_KERNEL)) {
	require 'sys/cdefs.ph';
    }
}
1;
