History

bridge: broute: make broute a real ebtables table

This makes broute a normal ebtables table, hooking at PREROUTING. The broute hook is removed. It uses skb->cb to signal to bridge rx handler that the skb should be routed instead of being bridged. This change is backwards compatible with ebtables as no userspace visible parts are changed. This means we can also remove the !ops test in ebt_register_table, it was only there for broute table sake.

Florian Westphal committed 7 years ago

Commit 223fd0a1 parent 971502d5 files · +52 −42Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/if_bridge.h+0−3
@@ -56,9 +56,6 @@ struct br_ip_list { · 55 unmodified lines
5656
5757 extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __user *));
5858
59−typedef int br_should_route_hook_t(struct sk_buff *skb);
60−extern br_should_route_hook_t __rcu *br_should_route_hook;
61−
6259 #if IS_ENABLED(CONFIG_BRIDGE) && IS_ENABLED(CONFIG_BRIDGE_IGMP_SNOOPING)
6360 int br_multicast_list_adjacent(struct net_device *dev,
6461 struct list_head *br_ip_list);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t