require '_h2ph_pre.ph';

require 'sys/queue.ph';
unless(defined(&ipqe_ip)) {
    sub ipqe_ip () {	 ($_ipqe_u1->{_ip});}
}
unless(defined(&ipqe_tcp)) {
    sub ipqe_tcp () {	 ($_ipqe_u1->{_tcp});}
}
unless(defined(&ipqe_mff)) {
    sub ipqe_mff () {	 ($_ipqe_u2->{_mff});}
}
unless(defined(&ipqe_m)) {
    sub ipqe_m () {	 ($_ipqe_u2->{_m});}
}
unless(defined(&MAX_IPOPTLEN)) {
    sub MAX_IPOPTLEN () {	40;}
}
if(defined(&_KERNEL)) {
    eval 'sub IP_FORWARDING () {0x1;}' unless defined(&IP_FORWARDING);
    eval 'sub IP_RAWOUTPUT () {0x2;}' unless defined(&IP_RAWOUTPUT);
    eval 'sub IP_ROUTETOIF () { &SO_DONTROUTE;}' unless defined(&IP_ROUTETOIF);
    eval 'sub IP_ALLOWBROADCAST () { &SO_BROADCAST;}' unless defined(&IP_ALLOWBROADCAST);
    eval 'sub IP_ENCAPSULATED () {0x0800;}' unless defined(&IP_ENCAPSULATED);
}
1;
