require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NETINET_IN_OFFLOAD_H_)) {
    eval 'sub _NETINET_IN_OFFLOAD_H_ () {1;}' unless defined(&_NETINET_IN_OFFLOAD_H_);
    eval 'sub IN_LOOPBACK_NEED_CHECKSUM {
        my($csum_flags) = @_;
	    eval q((((($csum_flags) &  &M_CSUM_UDPv4) != 0 &&  &udp_do_loopback_cksum) || ((($csum_flags) &  &M_CSUM_TCPv4) != 0 &&  &tcp_do_loopback_cksum) || ((($csum_flags) &  &M_CSUM_IPv4) != 0 &&  &ip_do_loopback_cksum)));
    }' unless defined(&IN_LOOPBACK_NEED_CHECKSUM);
    eval 'sub IN_NEED_CHECKSUM {
        my($ifp, $csum_flags) = @_;
	    eval q(( &__predict_true((($ifp)-> &if_flags &  &IFF_LOOPBACK) == 0||  &IN_LOOPBACK_NEED_CHECKSUM($csum_flags))));
    }' unless defined(&IN_NEED_CHECKSUM);
}
1;
