if_clone.c allows creating multiple interfaces with the same name

Gleb Smirnoff glebius at FreeBSD.org
Fri Nov 25 13:19:37 UTC 2011


On Thu, Nov 24, 2011 at 09:28:51AM +0100, Daan Vreeken wrote:
D> Recently I've discovered a bug in if_clone.c and if.c where the code allows 
D> multiple interfaces to be created with exactly the same name (which leads to 
D> all sorts of other interesting problems).
D> I've submitted a PR about this with patches, which can be found here :
D> 
D> 	http://www.freebsd.org/cgi/query-pr.cgi?pr=162789
D> 
D> Could anyone take a look at it?

I decided to simply if_clone code utilizing generic unit allocator. Patch
atteched. Now I'll try to merge it with your ideas.

-- 
Totus tuus, Glebius.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: if_clone_alloc_unr.diff
Type: text/x-diff
Size: 5249 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20111125/3b3b5b0f/if_clone_alloc_unr.bin


More information about the freebsd-current mailing list