On Fri, Jan 03, 2003 at 11:45:25AM +0200, Pekka Nikander wrote: > Brooks Davis wrote: > > loif[] is evil and its use should not be extended. In any case, NLOOP > > no longer exists in current since loopback interfaces are clonable. If > > you didn't want to adopt OpenBSD's enc interface, an alternate solution > > might be to set up an ioctl to allow you to register the interface you > > want to have these packets come from. > > Now, out of curiosity, why do you consider loif[] evil?
The problem is that it makes lo0 a magic interface. In general, things like magic interfaces are to be avoided because they don't act like other objects of the same type. In the case of the loopback interface, it means you can't unload the lo(4) module without causing a panic. In reality, especialy when talking about loif, this is more likely a matter of principle then something we're actually going to fix, but the principle still holds. FYI, in current loif[] became *loif and we register an interface when if_lo is loaded. I suspect your system will in fact panic fairly quickly if it isn't loaded at startup though. Modularity was added when I added cloning, but mostly because it was easy to do. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
msg08011/pgp00000.pgp
Description: PGP signature