Patchwork tun: Fix SIOCSIFHWADDR error.

login
register
mail settings
Submitter Kusanagi Kouichi
Date Dec. 29, 2008, 8:03 p.m.
Message ID <200812292003127246950006MAD1@nm06mta.auone-net.jp>
Download mbox | patch
Permalink /patch/15974/
State Accepted
Delegated to: David Miller
Headers show

Comments

Kusanagi Kouichi - Dec. 29, 2008, 8:03 p.m.
Set proper operations.

Signed-off-by: Kusanagi Kouichi <slash@ma.neweb.ne.jp>
---
 drivers/net/tun.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
David Miller - Dec. 30, 2008, 2:23 a.m.
From: Kusanagi Kouichi <slash@ma.neweb.ne.jp>
Date: Tue, 30 Dec 2008 05:03:12 +0900

> Set proper operations.
> 
> Signed-off-by: Kusanagi Kouichi <slash@ma.neweb.ne.jp>

Applied, thanks a lot.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 666c1d9..69f9a0e 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -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);