mirror of
https://github.com/solemnwarning/ipxwrapper
synced 2024-12-30 16:45:37 +01:00
Set test suite packet captures to non-blocking mode.
This commit is contained in:
parent
8db4fb0872
commit
4dfe195d7e
@ -1,5 +1,5 @@
|
||||
# IPXWrapper test suite
|
||||
# Copyright (C) 2014 Daniel Collins <solemnwarning@solemnwarning.net>
|
||||
# Copyright (C) 2014-2023 Daniel Collins <solemnwarning@solemnwarning.net>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License version 2 as published by
|
||||
@ -31,6 +31,8 @@ sub new
|
||||
my $pcap = Net::Pcap::pcap_open_live($dev, 2000, 0, 1, \$err)
|
||||
or die("Cannot open device $dev: $err");
|
||||
|
||||
Net::Pcap::pcap_setnonblock($pcap, 1, \$err);
|
||||
|
||||
return bless(\$pcap, $class);
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# IPXWrapper test suite
|
||||
# Copyright (C) 2017 Daniel Collins <solemnwarning@solemnwarning.net>
|
||||
# Copyright (C) 2017-2023 Daniel Collins <solemnwarning@solemnwarning.net>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License version 2 as published by
|
||||
@ -31,6 +31,8 @@ sub new
|
||||
my $pcap = Net::Pcap::pcap_open_live($dev, 2000, 0, 1, \$err)
|
||||
or die("Cannot open device $dev: $err");
|
||||
|
||||
Net::Pcap::pcap_setnonblock($pcap, 1, \$err);
|
||||
|
||||
return bless(\$pcap, $class);
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# IPXWrapper test suite
|
||||
# Copyright (C) 2016 Daniel Collins <solemnwarning@solemnwarning.net>
|
||||
# Copyright (C) 2016-2023 Daniel Collins <solemnwarning@solemnwarning.net>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License version 2 as published by
|
||||
@ -31,6 +31,8 @@ sub new
|
||||
my $pcap = Net::Pcap::pcap_open_live($dev, 2000, 0, 1, \$err)
|
||||
or die("Cannot open device $dev: $err");
|
||||
|
||||
Net::Pcap::pcap_setnonblock($pcap, 1, \$err);
|
||||
|
||||
return bless(\$pcap, $class);
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# IPXWrapper test suite
|
||||
# Copyright (C) 2014 Daniel Collins <solemnwarning@solemnwarning.net>
|
||||
# Copyright (C) 2014-2023 Daniel Collins <solemnwarning@solemnwarning.net>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License version 2 as published by
|
||||
@ -33,6 +33,8 @@ sub new
|
||||
my $pcap = Net::Pcap::pcap_open_live($dev, 1500, 0, 1, \$err)
|
||||
or die("Cannot open device $dev: $err");
|
||||
|
||||
Net::Pcap::pcap_setnonblock($pcap, 1, \$err);
|
||||
|
||||
return bless(\$pcap, $class);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user