> As disccussed, there are ibd and clprivnet too on the list. But I don't > think there are cases that /dev/net/sppp is ever accessed (ppp is not > changed to use libdlpi). I didn't find places which really open /dev/vni > devices either.
ifconfig would open them during plumbing, right? > Anyway, the reason for not having them in /dev/net is: According to our > design, /dev/net only keeps nodes of data-links, and more strictly, for > GlDv3 data-links (and the ones unified to GLDv3 by softmac). But vni, sppp > and ibd (together with others) are either IP level interfaces or non-GLDv3 > data-links. > > Although it seems it is possible to resolve the /dev/net nodes to the right > dev_t, as /dev/net is based on DBNR (directory based name resolution), there > are at least several problems I can think of now: > > a. are we going to reserve these names (ibdN, sppp and vni) in the /dev/net > namespace? I'm unclear why that would be necessary. AFAIK, there's nothing special about those names -- e.g., in theory I don't see why someone couldn't rename the vni0 link to be foo0 and hme0 to be vni0. > b. So far /dev/net only support style-1 open, but the list of "exception" > devices might only support style-2. Yes, this part seems like a problem. -- meem
