Skip to contentSkip to conversation

Patch: allow ifconfig of devices with only unix domain sockets

PATCH Russell King 1 participant 1 message Jul 16, 2000

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

net/unix/af_unix.c +1 -1
diff -urN linux-orig/net/unix/af_unix.c linux/net/unix/af_unix.c
@@ -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              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/