Should Destination udp port be the source in the request or listen + 1?

David W. Hankins David_Hankins at isc.org
Mon Nov 15 18:40:31 UTC 2004


On Mon, Nov 15, 2004 at 01:16:36PM -0500, Robert Pinter wrote:
> OK, I'll except that, but then the question is how should the server
> decide the DHCP client port.  Should it be 68 or listen port plus one?

he just told you it 'must' be 68, but obviously we're not doing that
when you change the listen port.  this shouldn't surprise you, because
by changing the listen port you're violating a different 'must'.

the listen port plus one hack is only in there to facilitate testing.

generally speaking, if i were to test the daemon, i would run it on a
separate port so that it didn't, by accident, send responses to
production dhcp clients on the same network(s).  further, when test
clients made requests, it would not be desirable for the test server's
responses to possibly go to the broadcast mac address to port 68 on all
production clients on those networks.


so, by changing the listen port, you are entering into a pact of rfc
non-compliance on both sides, client and server.

-- 
David W. Hankins		"If you don't do it right the first time,
Operations Engineer			you'll just have to do it again."
Internet Systems Consortium, Inc.		-- Jack T. Hankins


More information about the dhcp-hackers mailing list