Print out DHCP reply port #s for better debugging

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@425 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2005-02-10 05:27:29 +00:00
parent 91ae7543e6
commit a224c667ab

View file

@ -621,14 +621,14 @@ int dhcp_handle_transaction (dhcp_interface *iface, unsigned int expected_reply_
if (ntohs (udp_hdr->source) != DHCP_SERVER_PORT)
{
#ifdef DEBUG
syslog (LOG_INFO, "DHCP: Reply message's source port was not the DHCP server port number, won't use it.");
syslog (LOG_INFO, "DHCP: Reply message's source port (%d) was not the DHCP server port number (%d), won't use it.", ntohs (udp_hdr->source), DHCP_SERVER_PORT);
#endif
continue;
}
if (ntohs (udp_hdr->dest) != DHCP_CLIENT_PORT)
{
#ifdef DEBUG
syslog (LOG_INFO, "DHCP: Reply message's destination port was not the DHCP client port number, won't use it.");
syslog (LOG_INFO, "DHCP: Reply message's destination port (%d) was not the DHCP client port number (%d), won't use it.", ntohs (udp_hdr->dest), DHCP_CLIENT_PORT);
#endif
continue;
}