mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-19 19:10:34 +00:00
openbsd: enable packet injection
This commit is contained in:
parent
99721ceaab
commit
9bc2a903f0
@ -156,7 +156,7 @@ static void initialize_tun(int tun_id)
|
||||
|
||||
static long syz_emit_ethernet(long a0, long a1)
|
||||
{
|
||||
// syz_emit_ethernet(len len[packet], packet ptr[in, eth_packet])
|
||||
// syz_emit_ethernet(len len[packet], packet ptr[in, array[int8]])
|
||||
if (tunfd < 0)
|
||||
return (uintptr_t)-1;
|
||||
|
||||
|
@ -82,7 +82,7 @@ func Check(target *prog.Target) (*Features, error) {
|
||||
FeatureSandboxAndroidUntrustedApp: {Name: "Android sandbox", Reason: unsupported},
|
||||
FeatureFaultInjection: {Name: "fault injection", Reason: unsupported},
|
||||
FeatureLeakChecking: {Name: "leak checking", Reason: unsupported},
|
||||
FeatureNetworkInjection: {Name: "net packed injection", Reason: unsupported},
|
||||
FeatureNetworkInjection: {Name: "net packet injection", Reason: unsupported},
|
||||
FeatureNetworkDevices: {Name: "net device setup", Reason: unsupported},
|
||||
}
|
||||
if target.OS == "akaros" || target.OS == "test" {
|
||||
|
@ -13,4 +13,5 @@ func isSupported(c *prog.Syscall, sandbox string) (bool, string) {
|
||||
|
||||
func init() {
|
||||
checkFeature[FeatureCoverage] = unconditionallyEnabled
|
||||
checkFeature[FeatureNetworkInjection] = unconditionallyEnabled
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user