2000-07-16 14:22:40

by Russell King

[permalink] [raw]
Subject: Patch: allow ifconfig of devices with only unix domain sockets

Hi,

The following patch is required to allow ifconfig to "up" the IrDA FIR
network interfaces on kernels configured with IrDA and unix domain
sockets.

Without this patch, it is impossible to use FIR IrDA on such kernels.

diff -urN linux-orig/net/unix/af_unix.c linux/net/unix/af_unix.c
--- linux-orig/net/unix/af_unix.c Sun Jul 9 10:49:59 2000
+++ linux/net/unix/af_unix.c Sun Jul 9 10:46:47 2000
@@ -1670,7 +1670,7 @@
}

default:
- err = -EINVAL;
+ err = dev_ioctl(cmd, (void *)arg);
break;
}
return err;


_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King [email protected] --- ---
| | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |