[Bridge] bridge netfilter question

Bart De Schuymer bdschuym at pandora.be
Thu Dec 25 09:52:58 PST 2003


On Wednesday 24 December 2003 18:12, Rajashekhar Mansanpally wrote:
> #ifdef CONFIG_NETFILTER
>         if (skb->nf_bridge)
>                 memcpy(skb->data - 16,
> skb->nf_bridge->hh, 16);
> #endif
>
> 1. What is 16 bytes here...? Ethernet hdr is just 14
> bytes

A memcpy of 16 bytes is faster.

> 2. Why the ethernet hdr is being overwritten with
> nf_bridge->hh? what is there in nf_bridge->hh?

This is needed for refragmented UDP packets.

> when is nf_bridge is actually assigned this content.

See br_netfilter.c.

cheers,
Bart




More information about the Bridge mailing list