Don't test whether we have net/if_pflog.h, test whether we're on
OpenBSD; we no longer check for net/if_pflog.h in the configure script,
and that's not a valid "is this OpenBSD?" check in any case, as other
*BSDs have it as well.
}
$main::confighhash->{$have_fptype} = 1;
+ # and check whether this is OpenBSD, as one test fails in OpenBSD
+ # due to the sad hellscape of low-numbered DLT_ values, due to
+ # 12 meaning "OpenBSD loopback" rather than "raw IP" on OpenBSD
+ if($^O eq "openbsd") {
+ $main::confighhash->{"IS_OPENBSD"} = 1;
+ }
+
return $main::confighhash;
}
$testlist = [
# This specific test fails on OpenBSD because the .pcap file uses DLT_RAW,
- # which OpenBSD treats as DLT_LOOP. The macro is set on all three BSDs.
+ # which OpenBSD treats as DLT_LOOP.
{
- config_unset => 'HAVE_NET_IF_PFLOG_H',
+ config_unset => 'IS_OPENBSD',
name => 'heap-overflow-1',
input => 'heap-overflow-1.pcap',
output => 'heap-overflow-1.out',