lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <4D0FAD26.8050908@rosedu.org> Date: Mon, 20 Dec 2010 11:23:18 -0800 From: Vlad Dogaru <ddvlad@...edu.org> To: hadi@...erus.ca CC: Octavian Purdila <opurdila@...acom.com>, Eric Dumazet <eric.dumazet@...il.com>, Stephen Hemminger <shemminger@...tta.com>, netdev@...r.kernel.org, Lucian Adrian Grijincu <lucian.grijincu@...il.com> Subject: Re: [PATCH] iproute2: ip: add wilcard support for device matching On 12/17/2010 5:38 AM, jamal wrote: > On Fri, 2010-12-10 at 20:06 +0200, Octavian Purdila wrote: > >>> $ ip link add link bond0 "vlan\*199" type vlan id 199 >>> $ ifconfig "vlan\*199" >> >> :) Then use a special dev keyword like dev* ? >> >> $ ip link set dev* dummy set >> >> Or use a new flag to allow expansion? >> >> $ ip -e link set dev dummy* set > > There was something ive always wanted to do but > havent had time. It will cut time in a big way the > user-kernel interaction in precisely your situation. > > Add a new general purpose netdev 32 bit tag. You can use this > feature to "group" netdevs. The group "all netdevs" is 0 - which > is the default. > I can group individual dummy interfaces into group 1. > ip link dev dummy0 set group 1 > .. > .. > ip link dev dummy99 set group 1 > > Then i can send a query to only ifup and ignore > the 1000 vlans that exist. > > ip link dev ls group 1 > > or if i didnt list the group, then group 0 is assumed. I'll try to implement this approach in the next few days. Vlad -- 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