netdev
[Top] [All Lists]

Ethernet bridge and PF_PACKET sockets

To: <netdev@xxxxxxxxxxx>
Subject: Ethernet bridge and PF_PACKET sockets
From: <arun.prabha@xxxxxxxxx>
Date: Wed, 13 Apr 2005 17:29:26 +0530
Sender: netdev-bounce@xxxxxxxxxxx
Thread-index: AcVAID02rauvk6i8QZCKRyGIvDqokw==
Thread-topic: Ethernet bridge and PF_PACKET sockets
Hi,

I am using a PF_PACKET socket to capture packets of a particular type,
say ETH_P_X (where ETH_P_X is not ETH_P_ALL) from the ethernet
interface, eth0. Everything will work fine. But when I configure a
bridge br0, I feel that I will stop receiving the packets (since
skb->dev is changed in br_pass_frame_up()).

1. Is my reasoning incorrect?
2. Is this the expected behavior?
3. What can I do to get the packets, bind to br0??
4. Assuming bridge may/may not be always  configured and I want to get
   packets from the ethernet interface (without really bothering about
   the bridge), what is the best way to do it?

I should be able to transmit packets on the ethernet via the PF_PACKET
socket.

Thanks in advance,
Arun.


<Prev in Thread] Current Thread [Next in Thread>