> Well, an ethernet header is 14 bytes, so maybe 2.6 is sticking one of those
> on?
> 
> And maybe there was some flag that we missed in 2.6 that says "this is not
> an ethernet device".

ok, i managed to "fix" the problem. 
it was exactly what jeff said.

here is a quick and ugly hack, which works for me (at least)

--- linux-2.6.10-vanilla/arch/um/drivers/slirp_kern.c   2004-12-24 
23:35:39.000000000 +0200
+++ linux-2.6.10/arch/um/drivers/slirp_kern.c   2005-02-06 
22:38:20.000000000 +0200
@@ -33,10 +33,13 @@
 
        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;/* 4; */
+       dev->type = ARPHRD_SLIP; * /ARPHRD_ETHER; */
        dev->tx_queue_len = 256;
-       dev->flags = IFF_NOARP;
+       dev->flags = IFF_NOARP; /* IFF_NOARP | IFF_LOOPBACK; */
        printk("SLIRP backend - command line:");
        for(i=0;spri->argw.argv[i]!=NULL;i++) {
                printk(" '%s'",spri->argw.argv[i]);


-- 
========================================================================
nir.



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to