define SIOCSIFNAME
Philip Blundell
Philip.Blundell@pobox.com
Tue Jan 21 10:44:00 GMT 2003
Linux's SIOCSIFNAME ioctl seems to be missing from the relevant
bits/ioctls.h file. Here's a patch to add it.
p.
2003-01-21 Philip Blundell <philb@gnu.org>
* sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
Index: sysdeps/unix/sysv/linux/bits/ioctls.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/bits/ioctls.h,v
retrieving revision 1.6
diff -u -r1.6 ioctls.h
--- sysdeps/unix/sysv/linux/bits/ioctls.h 6 Jul 2001 04:56:14 -0000 1.6
+++ sysdeps/unix/sysv/linux/bits/ioctls.h 21 Jan 2003 10:40:06 -0000
@@ -48,6 +48,7 @@
#define SIOCSIFMEM 0x8920 /* set memory address (BSD) */
#define SIOCGIFMTU 0x8921 /* get MTU size */
#define SIOCSIFMTU 0x8922 /* set MTU size */
+#define SIOCSIFNAME 0x8923 /* set interface name */
#define SIOCSIFHWADDR 0x8924 /* set hardware address */
#define SIOCGIFENCAP 0x8925 /* get/set encapsulations */
#define SIOCSIFENCAP 0x8926
More information about the Libc-hacker
mailing list