lkml.org 
[lkml]   [2006]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 02/03] net/bridge: add support for EtherIP devices
This patch changes the device check in the bridge code to allow EtherIP
devices to be added.

Signed-off-by: Joerg Roedel <joro-lkml@zlug.org>
diff -uprN -X linux-2.6.18-vanilla/Documentation/dontdiff linux-2.6.18-vanilla/net/bridge/br_if.c linux-2.6.18/net/bridge/br_if.c
--- linux-2.6.18-vanilla/net/bridge/br_if.c 2006-09-20 05:42:06.000000000 +0200
+++ linux-2.6.18/net/bridge/br_if.c 2006-09-20 23:03:26.000000000 +0200
@@ -407,7 +407,8 @@ int br_add_if(struct net_bridge *br, str
struct net_bridge_port *p;
int err = 0;

- if (dev->flags & IFF_LOOPBACK || dev->type != ARPHRD_ETHER)
+ if (dev->flags & IFF_LOOPBACK ||
+ dev->type != ARPHRD_ETHER && dev->type != ARPHRD_ETHERIP)
return -EINVAL;

if (dev->hard_start_xmit == br_dev_xmit)
\
 
 \ /
  Last update: 2006-09-23 14:19    [W:0.117 / U:1.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site