Python And Libpcap. Find Source Mac Address Of Packet
I'm writing python program to build mac-address cache using pcap. But pcap module for python has no good documentation. I have found this page http://pylibpcap.sourceforge.net/ wit
Solution 1:
Google "Ethernet frame formats". The first 6 octets of a packet is the destination MAC address, which is immediately followed by the 6 octets of source MAC address.
This Wikipedia page may help.
Solution 2:
Oh my god man, why are you doing this ? Use Scapy instead.
Post a Comment for "Python And Libpcap. Find Source Mac Address Of Packet"