X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-si%2Fmodules%2FArpWatch.pm;h=6487ef1013ea832eacd3a49053cbf71137a6e026;hb=4954c04bf7137fb67ff6519075070acfdd093b3e;hp=1db2a78afe1006ed9dc0944c3370630276d9a738;hpb=0e5a02c9496a35fee9cfd40815eec963a23b71d7;p=gosa.git diff --git a/gosa-si/modules/ArpWatch.pm b/gosa-si/modules/ArpWatch.pm index 1db2a78af..6487ef101 100644 --- a/gosa-si/modules/ArpWatch.pm +++ b/gosa-si/modules/ArpWatch.pm @@ -2,13 +2,17 @@ package POE::Component::ArpWatch; use strict; +use warnings; -use POE; - -use Pcap; +BEGIN{ + eval('use POE'); + eval('use POE::Component::Pcap'); + eval('use NetPacket::Ethernet qw( :types )'); + eval('use NetPacket::ARP qw( :opcodes )'); +} -use NetPacket::Ethernet qw( :types ); -use NetPacket::ARP qw( :opcodes ); +END{ +} ## Map arp opcode #'s to strings my %arp_opcodes = (