Re: [PATCH 1/2] Interface group: core (netlink) part

2007-10-19 Thread Laszlo Attila Toth
Patrick McHardy írta: Laszlo Attila Toth wrote: @@ -846,6 +850,12 @@ static int do_setlink(struct net_device *dev, struct ifinfomsg *ifm, write_unlock_bh(&dev_base_lock); } +if (tb[IFLA_IFGROUP]) { +write_lock_bh(&dev_base_lock); +dev->ifgroup = nla_get_u32(

Re: [PATCH 1/2] Interface group: core (netlink) part

2007-10-18 Thread Patrick McHardy
Laszlo Attila Toth wrote: @@ -846,6 +850,12 @@ static int do_setlink(struct net_device *dev, struct ifinfomsg *ifm, write_unlock_bh(&dev_base_lock); } + if (tb[IFLA_IFGROUP]) { + write_lock_bh(&dev_base_lock); + dev->ifgroup = nla_get_u32(tb

[PATCH 1/2] Interface group: core (netlink) part

2007-10-18 Thread Laszlo Attila Toth
Interface groups let handle different interfaces together especially in netfilter modules. Modified net device structure and netlink interface. Signed-off-by: Laszlo Attila Toth <[EMAIL PROTECTED]> --- include/linux/if_link.h |2 ++ include/linux/netdevice.h |2 ++ net/core/rtnetlink.c

Re: [PATCH 1/2] Interface group: core (netlink) part

2007-10-16 Thread Patrick McHardy
Laszlo Attila Toth wrote: diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 4756d58..18ff3c5 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -646,6 +646,9 @@ static int rtnl_fill_ifinfo(struct sk_buff *skb, struct net_device *dev, if (dev->master)

[PATCH 1/2] Interface group: core (netlink) part

2007-10-16 Thread Laszlo Attila Toth
Interface groups let handle different interfaces with one (netfilter) rule. Modified net device structure and netlink interface. Signed-off-by: Laszlo Attila Toth <[EMAIL PROTECTED]> --- include/linux/if_link.h |2 ++ include/linux/netdevice.h |2 ++ net/core/rtnetlink.c |8 +