summaryrefslogtreecommitdiff
path: root/pfinet/ethernet.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-03-26 01:01:04 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-03-26 01:01:04 +0100
commit0992a61cafb0f3def3b6997f7c3670a4474f479b (patch)
treeda2819801a2f7c53c53962fef1fd2e048aa26c58 /pfinet/ethernet.c
parenta89bb489bfc0bb8d66f69e783b031b30233fdc82 (diff)
Fix tunnel and dummy interfaces
* pfinet/linux-src/include/linux/netdevice.h (netdevice): Add `change_flags' field. * pfinet/ethernet.c (ethernet_change_flags): Make function static. (setup_ethernet_device): Set `change_flags' field of `dev' to ethernet_change_flags. * pfinet/linux-src/net/core/dev.c (dev_change_flags): Call `change_flags' field of `dev' if non-nul, instead of calling ethernet_change_flags. * pfinet/pfinet.h (ethernet_change_flags): Remove function prototype.
Diffstat (limited to 'pfinet/ethernet.c')
-rw-r--r--pfinet/ethernet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pfinet/ethernet.c b/pfinet/ethernet.c
index 5d080730..768d5282 100644
--- a/pfinet/ethernet.c
+++ b/pfinet/ethernet.c
@@ -250,7 +250,7 @@ ethernet_xmit (struct sk_buff *skb, struct device *dev)
}
/* Set device flags (e.g. promiscuous) */
-int
+static int
ethernet_change_flags (struct device *dev, short flags)
{
error_t err = 0;
@@ -313,6 +313,8 @@ setup_ethernet_device (char *name, struct device **device)
ethernet_set_multi. */
dev->flags |= IFF_ALLMULTI;
+ dev->change_flags = ethernet_change_flags;
+
dev_init_buffers (dev);
ethernet_open (dev);