-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Bryan Kadzban wrote:
> What I'd *like* to do is get a way to create a "symlink" for network 
> devices in the kernel;

(Talking to myself here...  whee!  ;-) )

The sticking point with that whole idea is the fact that IFNAMSIZ is a
constant 16, and it's part of the ABI (the first member of the struct
ifreq for socket ioctls is the device name, it's a char array embedded
into the structure, and its size is IFNAMSIZ).  Which means there's no
way (that I can see) to get old programs to work with newer (longer)
symlink names automatically; the program would have to be "symlink
aware", and the kernel interface would have to be different.  There is
also RTNETLINK, but I don't know that interface well enough to know if
it'll work with longer names or not.  (Even if it does, though, there
are still programs using ioctl.)

Unless anyone else can see some way to do it that I'm missing?

I suppose the other option is to try to force the by-MAC and by-path
links into 16 bytes, but that's likely to be a problem.  Especially with
USB devices, and others that are multiple buses "out" from the CPU.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH17l5S5vET1Wea5wRA6YkAJ9R4CsQ9ENBAlFADOZNaPL5Z3AfgACcC0Xq
pu+scrGikNQJzBND1zKTfrA=
=4/yY
-----END PGP SIGNATURE-----
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to