Kunal Trivedi wrote:

> Hi,
> I've been tracing packet flow in bridge code and get stuck at one point.
>
> When broadcast pkt comes, it goes to following piect of code.
>         if (dest[0] & 1) {
>                 br_flood_forward(br, skb, !passedup);
>                 if (!passedup)
>                         br_pass_frame_up(br, skb);
>                 goto out;
>         }
> in br_pass_frame_up, (_finished) netif_rx(skb) is called.
> -- >So, same packet is coming back with different parameters ?
> --> If it is coming here, then what are those different parameters are set
> to ? (e.g. pkt_type, dev etc ?)
>
> I would really appreciate any help on this ?

As I read it, the parameters are changed so the network stack knows this
packet came from the bridge device rather than from the enslaved interface
and that it should be passed up to higher layers.  The dev is changed to
br->dev, the packet_type is changed to PACKET_HOST which means the packet is
to us, and we set the ethernet protocol type.

I hope this helps,
Adam Fineberg
[EMAIL PROTECTED]

_______________________________________________
Bridge mailing list
[EMAIL PROTECTED]
http://www.math.leidenuniv.nl/mailman/listinfo/bridge

Reply via email to