2008-12-29 20:18:35

by Kusanagi Kouichi

[permalink] [raw]
Subject: [PATCH] tun: Fix SIOCSIFHWADDR error.

Set proper operations.

Signed-off-by: Kusanagi Kouichi <[email protected]>
---
drivers/net/tun.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

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);

--
1.5.6.5


2008-12-30 02:23:47

by David Miller

[permalink] [raw]
Subject: Re: [PATCH] tun: Fix SIOCSIFHWADDR error.

From: Kusanagi Kouichi <[email protected]>
Date: Tue, 30 Dec 2008 05:03:12 +0900

> Set proper operations.
>
> Signed-off-by: Kusanagi Kouichi <[email protected]>

Applied, thanks a lot.