Find source port with Libpcap in bridging linux

May 6, 2012 at 7:05 PM

HIii,,,,please

I use a linux bridge,

Is it possible to find the source port of a packet from bridging with libpcap???I sniffed at br0 and I want to know which port it reaches me exactly.

Thank you in advance

Coordinator
May 7, 2012 at 5:14 PM

I'm not sure.

 

I'm guessing you don't mean TCP Port, but some layer 2 port.

It's probably according to the Ethernet destination address?

Maybe the bridge has an internal state that knows to which port it should send the packets with specific Ethernet destination?

 

Boaz.