Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 6 Jan 2003 00:48:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 6 Jan 2003 00:48:44 -0500 Received: from holly.csn.ul.ie ([136.201.105.4]:61315 "EHLO holly.csn.ul.ie") by vger.kernel.org with ESMTP id ; Mon, 6 Jan 2003 00:48:42 -0500 Date: Mon, 6 Jan 2003 05:57:20 +0000 (GMT) From: Dave Airlie X-X-Sender: airlied@skynet To: linux-kernel@vger.kernel.org Subject: dummy ethernet driver Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-913833367-311338359-1041832640=:24333" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4295 Lines: 86 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---913833367-311338359-1041832640=:24333 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, I have a VAX simulator running on my PC which uses pcap to send/recv packets, however these packets are never seen on the local machine when using a real ethernet device (everyone else on the network sees them), now I only really want the local machine to see them not the network so I decided I might get away with using loopback, however the simulator configures its own IP and loopback isn't useful for this as the sim starts arping and we don't do any arp on loopback. so I turned to the dummy device but it isn't really a dummy Ethernet device but rather a useless one :-), so I patched the dummy so it had an address (hardcoded) is broadcast and loops back packets to itself... the patch is attached.. is there any reason why the dummy device doesn't want to do this stuff? I'm just submitting the patch as a request for comments on why this isn't done anyway in the dummy? Dave. -- David Airlie, Software Engineer http://www.skynet.ie/~airlied / airlied@skynet.ie pam_smb / Linux DecStation / Linux VAX / ILUG person ---913833367-311338359-1041832640=:24333 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=dummy_diff Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=dummy_diff LS0tIC91c3Ivc3JjL2xpbnV4L2RyaXZlcnMvbmV0L2R1bW15L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5pcF9zdW1tZWQgPSBDSEVDS1NVTV9V Tk5FQ0VTU0FSWTsNCisJZGV2LT5sYXN0X3J4ID0gamlmZmllczsNCisNCisJ bmV0aWZfcngoc2tiKTsNCiANCi0JZGV2X2tmcmVlX3NrYihza2IpOw0KIAly ZXR1cm4gMDsNCiB9DQogDQo= ---913833367-311338359-1041832640=:24333-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/