[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	stevesk_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2006/11/27 12:32:17

Modified files:
	sbin/dhclient  : bpf.c dhcpd.h 

Log message:
Recognize when we are sending to a unicast destination IP address and
instead of using BPF, which currently will always set the destination
MAC to broadcast, send using a SOCK_RAW socket and sendmsg() so the
frame has a unicast destination MAC.

Fixes an issue when using a bootp forwarder where unicast DHCPREQUESTs
are dropped at the router/gateway until we reach T2/REBINDING and
change the destination IP to broadcast.

ok henning@ (but doesn't like using a raw socket for this)



Visit your host, monkey.org