From owner-freebsd-hackers Tue Oct 20 15:15:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA10256 for freebsd-hackers-outgoing; Tue, 20 Oct 1998 15:15:49 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from alpha.xerox.com (omega.Xerox.COM [13.1.64.95]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id PAA10248 for ; Tue, 20 Oct 1998 15:15:48 -0700 (PDT) (envelope-from fenner@parc.xerox.com) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <431602(4)>; Tue, 20 Oct 1998 15:15:11 PDT Received: from localhost by crevenia.parc.xerox.com with SMTP id <177539>; Tue, 20 Oct 1998 15:15:03 -0700 To: beekey@clark.net cc: freebsd-hackers@FreeBSD.ORG Subject: Re: bpf write overwrites link level header? In-reply-to: Your message of "Tue, 20 Oct 98 09:16:16 PDT." <362CB750.5ECC@clark.net> Date: Tue, 20 Oct 1998 15:14:54 PDT From: Bill Fenner Message-Id: <98Oct20.151503pdt.177539@crevenia.parc.xerox.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG bpf copies the destination ethernet header into an AF_UNSPEC sockaddr that it hands to ether_output(). ether_output() only copies the destination address and ethertype from that sockaddr into the generated ethernet header, thus ether_output() fills in the ethernet source. If you want to change this, you should look at the AF_UNSPEC case in ether_output() in net/if_ethersubr.c . Bill (Doesn't this belong on freebsd-net?) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message