www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / kernel / linux / net / ipv4 / af_inet.c
index ed29237..8d72e95 100755 (executable)
@@ -743,6 +743,10 @@ int inet_shutdown(struct socket *sock, int how)
        return err;
 }
 
+#if defined(CONFIG_MIPS_BRCM)
+#define SIOCGEXTIF     0x8908
+#endif
+
 /*
  *     ioctl() calls you can issue on an INET socket. Most of these are
  *     device configuration and stuff and very rarely used. Some ioctls
@@ -772,6 +776,11 @@ int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
                case SIOCSARP:
                        err = arp_ioctl(cmd, (void __user *)arg);
                        break;
+#if defined(CONFIG_MIPS_BRCM)
+               case SIOCGEXTIF:
+                       err = sock_get_extif(sk, (char __user *)arg);
+                       break;
+#endif
                case SIOCGIFADDR:
                case SIOCSIFADDR:
                case SIOCGIFBRDADDR: