2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-28 12:57:42 +00:00

Dump DHCP request type at LOG_INFO level instead of LOG_DEBUG

This commit is contained in:
Ted Lemon 1996-05-16 07:52:49 +00:00
parent 7e7af53b9b
commit f9a32ee9b4
2 changed files with 40 additions and 40 deletions

40
dhcp.c
View File

@ -83,10 +83,10 @@ void dhcpdiscover (packet)
{
struct lease *lease = find_lease (packet);
debug ("Received DHCPDISCOVER from %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr));
note ("Received DHCPDISCOVER from %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr));
/* If we didn't find a lease, try to allocate one... */
if (!lease) {
@ -121,7 +121,7 @@ void dhcprequest (packet)
memcpy (cip.iabuf, &packet -> raw -> ciaddr.s_addr, 4);
}
debug ("Received DHCPREQUEST from %s for %s",
note ("Received DHCPREQUEST from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
@ -179,11 +179,11 @@ void dhcprelease (packet)
{
struct lease *lease = find_lease (packet);
debug ("Received DHCPRELEASE from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
inet_ntoa (packet -> raw -> ciaddr));
note ("Received DHCPRELEASE from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
inet_ntoa (packet -> raw -> ciaddr));
/* If we found a lease, release it. */
if (lease) {
@ -206,11 +206,11 @@ void dhcpdecline (packet)
cip.len = 0;
}
debug ("Received DHCPDECLINE from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
piaddr (cip));
note ("Received DHCPDECLINE from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
piaddr (cip));
/* If we found a lease, mark it as unusable and complain. */
if (lease) {
@ -221,11 +221,11 @@ void dhcpdecline (packet)
void dhcpinform (packet)
struct packet *packet;
{
debug ("Received DHCPINFORM from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
inet_ntoa (packet -> raw -> ciaddr));
note ("Received DHCPINFORM from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
inet_ntoa (packet -> raw -> ciaddr));
}

View File

@ -83,10 +83,10 @@ void dhcpdiscover (packet)
{
struct lease *lease = find_lease (packet);
debug ("Received DHCPDISCOVER from %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr));
note ("Received DHCPDISCOVER from %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr));
/* If we didn't find a lease, try to allocate one... */
if (!lease) {
@ -121,7 +121,7 @@ void dhcprequest (packet)
memcpy (cip.iabuf, &packet -> raw -> ciaddr.s_addr, 4);
}
debug ("Received DHCPREQUEST from %s for %s",
note ("Received DHCPREQUEST from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
@ -179,11 +179,11 @@ void dhcprelease (packet)
{
struct lease *lease = find_lease (packet);
debug ("Received DHCPRELEASE from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
inet_ntoa (packet -> raw -> ciaddr));
note ("Received DHCPRELEASE from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
inet_ntoa (packet -> raw -> ciaddr));
/* If we found a lease, release it. */
if (lease) {
@ -206,11 +206,11 @@ void dhcpdecline (packet)
cip.len = 0;
}
debug ("Received DHCPDECLINE from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
piaddr (cip));
note ("Received DHCPDECLINE from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
piaddr (cip));
/* If we found a lease, mark it as unusable and complain. */
if (lease) {
@ -221,11 +221,11 @@ void dhcpdecline (packet)
void dhcpinform (packet)
struct packet *packet;
{
debug ("Received DHCPINFORM from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
inet_ntoa (packet -> raw -> ciaddr));
note ("Received DHCPINFORM from %s for %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
inet_ntoa (packet -> raw -> ciaddr));
}