From: Nir Tzachar <[EMAIL PROTECTED]>
Tell the netdevice code that a slirp device is not ethernet.

Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to