python - How do you Identify the interface of a packet while listening to network traffic on all devices? -


i writing python program needs listening traffic on networking devices , identify packets based on incoming interface. listen on interfaces started capture without specify device, unable denote interface of particular packet. how done?

i assume mac address sufficient information you.

the first 6 octets of packet destination mac address, followed 6 octets of source mac address.

source

802.3 ethernet frame structure


Comments

Popular posts from this blog

Python __call__ special method practical example -

arrays - jQuery - Retrieve values from HTML elements and return their sum -