AW: Problem display DHCP Packets with Net::Pcap,Net::DHCP and NetPacket

2005-05-12 Thread Holger Wöhle
> Hallo, > I have a problem with my DHCPSniffer. > Following is my script: > > > > > 2.It displays something ;-( > Hello, For those interested in the solution, here is the working script: #!/usr/bin/perl -w use strict; use Net::PcapUtils; use Net::DHCP::Packet; use NetPacket::Ethernet qw(:

Problem display DHCP Packets with Net::Pcap,Net::DHCP and NetPacket

2005-05-12 Thread Holger Wöhle
Hallo, I have a problem with my DHCPSniffer. Following is my script: #!/usr/bin/perl -w use strict; use Net::PcapUtils; use Net::DHCP::Packet; use NetPacket::Ethernet; use NetPacket::IP; sub process_pkt { my($user, $hdr, $pkt) = @_; my $p = NetPacket::IP::strip(NetPacke