From: krw Date: Sun, 11 May 2014 14:00:52 +0000 (+0000) Subject: Tweak DHCPREQUEST log message to omit 'port N', since the port is not X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=51f00e714c4aaa3a77511ce7d88bbd2d97a5045a;p=openbsd Tweak DHCPREQUEST log message to omit 'port N', since the port is not set at that point, and is always set to 67 in send_packet(). --- diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 8398522eb13..2289d96e00a 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.304 2014/05/11 12:40:37 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.305 2014/05/11 14:00:52 krw Exp $ */ /* * Copyright 2004 Henning Brauer @@ -1357,8 +1357,8 @@ send_request(void) client->bootrequest_packet.secs = htons(65535); } - note("DHCPREQUEST on %s to %s port %hu", ifi->name, - inet_ntoa(destination.sin_addr), ntohs(destination.sin_port)); + note("DHCPREQUEST on %s to %s", ifi->name, + inet_ntoa(destination.sin_addr)); send_packet(from, destination.sin_addr);