require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NET_IF_GRE_H)) {
    eval 'sub _NET_IF_GRE_H () {1;}' unless defined(&_NET_IF_GRE_H);
    eval 'sub gi_pr () { ($gi_i->{ip_p});}' unless defined(&gi_pr);
    eval 'sub gi_len () { ($gi_i->{ip_len});}' unless defined(&gi_len);
    eval 'sub gi_src () { ($gi_i->{ip_src});}' unless defined(&gi_src);
    eval 'sub gi_dst () { ($gi_i->{ip_dst});}' unless defined(&gi_dst);
    eval 'sub gi_ptype () { ($gi_g->{ptype});}' unless defined(&gi_ptype);
    eval 'sub gi_flags () { ($gi_g->{flags});}' unless defined(&gi_flags);
    eval 'sub GRE_CP () {0x8000;}' unless defined(&GRE_CP);
    eval 'sub GRE_RP () {0x4000;}' unless defined(&GRE_RP);
    eval 'sub GRE_KP () {0x2000;}' unless defined(&GRE_KP);
    eval 'sub GRE_SP () {0x1000;}' unless defined(&GRE_SP);
    eval 'sub GRE_SS () {0x800;}' unless defined(&GRE_SS);
    eval 'sub MOB_H_SIZ_S () {($sizeof{\'struct mobile_h\'} - $sizeof{ &u_int32_t});}' unless defined(&MOB_H_SIZ_S);
    eval 'sub MOB_H_SIZ_L () {($sizeof{\'struct mobile_h\'});}' unless defined(&MOB_H_SIZ_L);
    eval 'sub MOB_H_SBIT () {0x80;}' unless defined(&MOB_H_SBIT);
    if(defined(&_KERNEL)) {
    }
}
1;
