Re: How to determine where bridged packets originally come from ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Dylan. I guess I have to try a similar workaround.

Bye, Faruk

> I was doing something similar with libpcap and hit the same problem.
>
> My initial fix was to query the bridge forwarding table for each
> incoming packet on the basis that the src mac will have been learnt
> and the forwarding table updated.  To keep things vaguely efficient I
> cached the forwarding table and only queried it when the src mac
> wasn't found.
>
> Later I opened multiple pcap sessions, one for each ethernet interface
> in the bridge and used a select statement to monitor them all.
>
>
> Dylan
>
>
>
> On 24/05/2008, at 8:04 PM, Faruk Keskin wrote:
>
>> Hi all,
>>
>> I ended up using raw packet sockets (ETH_P_ALL) with BPF filters
>> attached
>> (binded on the bridge interface) to capture packets for the userspace
>> host.
>>
>> Now having captured these packets from the bridge interface, how do
>> I know
>> which interface (eth0, wifi0, ..) the packets were send from
>> originally ?
>>
>> Is there a handy solution to this without modifying the packet
>> content ?
>>
>> Please help me out I you got the answer down pat.
>>
>> BR, Faruk
>>
>> _______________________________________________
>> Bridge mailing list
>> Bridge@xxxxxxxxxxxxxxxxxxxxxxxxxx
>> https://lists.linux-foundation.org/mailman/listinfo/bridge
>
>
>


_______________________________________________
Bridge mailing list
Bridge@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/bridge

[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux