linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/16] UML - slirp driver tells the network it's not ethernet
@ 2005-03-07 20:37 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2005-03-07 20:37 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, user-mode-linux-devel, tzachar

From: Nir Tzachar <tzachar@cs.bgu.ac.il>
Tell the netdevice code that a slirp device is not ethernet.

Signed-off-by: Jeff Dike <jdike@addtoit.com>

Index: linux-2.6.11/arch/um/drivers/slirp_kern.c
===================================================================
--- linux-2.6.11.orig/arch/um/drivers/slirp_kern.c	2005-03-05 12:07:31.000000000 -0500
+++ linux-2.6.11/arch/um/drivers/slirp_kern.c	2005-03-05 12:08:16.000000000 -0500
@@ -33,8 +33,11 @@
 
 	dev->init = NULL;
 	dev->hard_header_len = 0;
-	dev->addr_len = 4;
-	dev->type = ARPHRD_ETHER;
+	dev->header_cache_update = NULL;
+	dev->hard_header_cache = NULL;
+	dev->hard_header = NULL;
+	dev->addr_len = 0;
+	dev->type = ARPHRD_SLIP;
 	dev->tx_queue_len = 256;
 	dev->flags = IFF_NOARP;
 	printk("SLIRP backend - command line:");


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-07 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-07 20:37 [PATCH 3/16] UML - slirp driver tells the network it's not ethernet Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).