X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-si%2Fmodules%2FArpWatch.pm;h=e03bed4d0a30bd2635d57e7ef55bf04864a6a4ea;hb=d5be4dfe05053bc9514e1a48a4260cb481098bc5;hp=95532cb9734a15faa9fdc38bb31f907520516b54;hpb=9942b3a69b59c25e5da6080e6e81e0f54471229f;p=gosa.git diff --git a/gosa-si/modules/ArpWatch.pm b/gosa-si/modules/ArpWatch.pm index 95532cb97..e03bed4d0 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 POE::Component::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 = ( @@ -167,6 +171,7 @@ sub _process_packet { sub _ipaddr { join( ".", unpack( "C4", pack( "N", oct( "0x". shift ) ) ) ) } sub _phys { join( ":", grep {length} split( /(..)/, shift ) ) } +# vim:ts=4:shiftwidth:expandtab 1; __END__