[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <474EE5C6.9070500@trash.net>
Date: Thu, 29 Nov 2007 17:16:06 +0100
From: Patrick McHardy <kaber@...sh.net>
To: panther@...abit.hu
CC: Lutz Jaenicke <ljaenicke@...ominate.com>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
netfilter-devel@...r.kernel.org
Subject: Re: [PATCHv6 iptables]Interface group match
Laszlo Attila Toth wrote:
> Lutz Jaenicke írta:
>> On Tue, Nov 20, 2007 at 02:14:28PM +0100, Laszlo Attila Toth wrote:
>>> Interface group values can be checked on both input and output
>>> interfaces
>>> with optional mask.
>>
>>> Index: extensions/libxt_ifgroup.c
>>> ===================================================================
>>> --- extensions/libxt_ifgroup.c (revision 0)
>>> +++ extensions/libxt_ifgroup.c (revision 0)
>>
>>> + info->in_group = strtoul(optarg, &end, 0);
>>
>> This is somewhat inconsistent with the iproute patch which targets
>> specific groups (with names).
>> Should iptables be allowed to read "/etc/iproute2/rt_ifgroup"?
>
> It would be good but cannot be used if a mask is set and only values
> less than 256 can be used with names.
Why 256? I can see no such limitation. For masks you could
simply allow to define masks in rt_ifgroup too and use
name/name or simply name/0xmask.
>> There is no standard API like getservbyname()...
>
> The code of iproute2 should be copied. If Patrick says it is ok, I'll
> write this part.
Of course. Please put the tab part somewhere common, I always
wanted to have named firewall marks shared with ip and tc
and I believe Balazs wanted that too :)
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists