On Mon, 19 Apr 2010 15:09:00 +0300 Gregory Edigarov <[email protected]> wrote:
> On Mon, 19 Apr 2010 13:52:13 +0200 > Claudio Jeker <[email protected]> wrote: > > > On Mon, Apr 19, 2010 at 02:34:55PM +0300, Gregory Edigarov wrote: > > > Hello, > > > > > > This diff adds possibility for the network interfaces to have an > > > arbitrary names. this is done via ifconfig <oldname> name > > > <newname> > > > > > > > Neat idea, but you do no sanity checking at all. So you could end up > > with two interfaces with the same name (very bad) or an interface > > with a name that violates the naming scheme. > > Since if_xname is used in various places to identify interfaces > > changing their name is dangerous. e.g. pf and the routing daemons > > use interface names in the config. So it is important to do at > > least a bit of sanity checking. > > No problem, wait for the second version then :-) Oh, just one question: could you be more specific about sanity tests i should implement. I could just think about duplicating names but may be you will tell... The whole idea come to my mind while i was strugling to move one of my dying cisco to openbsd. And on this temporary server I had 3 cards of different makes, so I thought renaming my interfaces so they will have some standartized names like fether0 ... fetherN would help me a bit. -- With best regards, Gregory Edigarov
