Re: mask support for ethernet bridge filtering

2012-07-13 Thread Henning Brauer
* sven falempin [2012-07-12 17:37]: > Inline diff even without judging on wether we'll want that at all (I'm still sceptic): > +//inline > +int > +bridge_test_ea(struct ether_addr *ea_packet, struct ether_addr *ea_rules, > +struct ether_addr *ea_mask) { > + int i; > + struct ether_addr ea_cm

Re: mask support for ethernet bridge filtering

2012-07-12 Thread sven falempin
Inline diff 2012/7/3 sven falempin > This diff enables the possibilty of using a mask on bridges rules. > > I have test it like this : > > $ cat /etc/hostname.bridge0 > > > up > add re0 > add vether0 > rule pass out on vether0 src 78:2b:4f:00:00:00 mask ff:ff:ff:00:00:00 tag > booz > rule block

mask support for ethernet bridge filtering

2012-07-03 Thread sven falempin
This diff enables the possibilty of using a mask on bridges rules. I have test it like this : $ cat /etc/hostname.bridge0 up add re0 add vether0 rule pass out on vether0 src 78:2b:4f:00:00:00 mask ff:ff:ff:00:00:00 tag booz rule block out on vether0 src 78:2b:00:00:00:00 mask ff:ff:00:00:00:00