2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

Print a little more info on where BOOTREQUESTs are coming from and where BOOTREPLYs are going to.

This commit is contained in:
Ted Lemon
1996-06-01 00:02:36 +00:00
parent 1e181787ab
commit b837c98f6f
2 changed files with 28 additions and 10 deletions

View File

@@ -63,9 +63,15 @@ void bootp (packet)
struct iaddr ip_address;
int i;
note ("BOOTREQUEST from %s", print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr));
note ("BOOTREQUEST from %s via %s",
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr),
packet -> raw -> giaddr.s_addr
? inet_ntoa (packet -> raw -> giaddr)
: packet -> interface -> name);
locate_network (packet);
@@ -214,11 +220,14 @@ void bootp (packet)
memcpy (hto.haddr, packet -> raw -> chaddr, hto.hlen);
/* Report what we're doing... */
note ("BOOTREPLY for %s to %s",
note ("BOOTREPLY for %s to %s via %s",
inet_ntoa (raw.yiaddr),
print_hw_addr (packet -> raw -> htype,
packet -> raw -> hlen,
packet -> raw -> chaddr));
packet -> raw -> chaddr),
packet -> raw -> giaddr.s_addr
? inet_ntoa (packet -> raw -> giaddr)
: packet -> interface -> name);
/* Set up the parts of the address that are in common. */
to.sin_family = AF_INET;