Skip to content

Commit

Permalink
tun: Fix SIOCSIFHWADDR error.
Browse files Browse the repository at this point in the history
Set proper operations.

Signed-off-by: Kusanagi Kouichi <slash@ma.neweb.ne.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kusanagi Kouichi authored and David S. Miller committed Dec 30, 2008
1 parent 36f8b92 commit 7a0a960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7a0a960

Please sign in to comment.