in reply to Re^3: Getting ethernet type using NetPacket
in thread Getting ethernet type using NetPacket
If you un-comment the lines below, it will print packets as they arrive.
If you capture packets, you can control-feed them into the program (read pcap docs), and run the "perl -d <program>" debugger, and examine data as you go.#print("RcvPkt Totlen(PacketLen) $hdr->{len}($hdr->{caplen})" . # "\t Time.Usec=$hour:$min:$sec.$hdr->{tv_usec}\n");
"XML is like violence: if it doesn't solve your problem, use more."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Getting ethernet type using NetPacket
by merrittr (Novice) on Jul 28, 2011 at 21:32 UTC | |
by NetWallah (Canon) on Jul 30, 2011 at 17:24 UTC |