Re: if_clone.c allows creating multiple interfaces with the same name

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Fri, 25 Nov 2011 17:19:35 +0400
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.

Received on Fri Nov 25 2011 - 12:19:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:21 UTC