Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 1998 15:14:54 PDT
From:      Bill Fenner <fenner@parc.xerox.com>
To:        beekey@clark.net
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: bpf write overwrites link level header? 
Message-ID:  <98Oct20.151503pdt.177539@crevenia.parc.xerox.com>
In-Reply-To: Your message of "Tue, 20 Oct 98 09:16:16 PDT." <362CB750.5ECC@clark.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98Oct20.151503pdt.177539>