netfilter: bridge: refactor frag_max_size
Currently frag_max_size is member of br_input_skb_cb and copied back and forth using IPCB(skb) and BR_INPUT_SKB_CB(skb) each time it is changed or used. Attach frag_max_size to nf_bridge_info and set value in pre_routing and forward functions. Use its value in forward and xmit functions. Signed-off-by: Bernhard Thaler <bernhard.thaler@wvnet.at> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
72b31f7271
commit
411ffb4fde
3 changed files with 8 additions and 14 deletions
|
|
@ -174,6 +174,7 @@ struct nf_bridge_info {
|
|||
BRNF_PROTO_PPPOE
|
||||
} orig_proto:8;
|
||||
bool pkt_otherhost;
|
||||
__u16 frag_max_size;
|
||||
unsigned int mask;
|
||||
struct net_device *physindev;
|
||||
union {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue