tun: Fix SIOCSIFHWADDR error.
Kusanagi Kouichi [Tue, 30 Dec 2008 02:23:28 +0000 (18:23 -0800)]
Set proper operations.

Signed-off-by: Kusanagi Kouichi <slash@ma.neweb.ne.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>

drivers/net/tun.c

index 666c1d9..69f9a0e 100644 (file)
@@ -343,7 +343,7 @@ static void tun_net_init(struct net_device *dev)
                break;
 
        case TUN_TAP_DEV:
-               dev->netdev_ops = &tun_netdev_ops;
+               dev->netdev_ops = &tap_netdev_ops;
                /* Ethernet TAP Device */
                ether_setup(dev);