From bfddad17a3fca528c63985f4dcfa5761ce0396da Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Mon, 13 Nov 2017 14:15:35 +0100 Subject: [PATCH] nic_router: avoid use of old term "IP allocation" IP allocations were renamed DHCP allocations without fixing the according places in log messages and comments. This commit rectifies this omission. Issue #2609 --- repos/os/src/server/nic_router/interface.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/repos/os/src/server/nic_router/interface.cc b/repos/os/src/server/nic_router/interface.cc index 5a51fd07c7..06bbf6d79a 100644 --- a/repos/os/src/server/nic_router/interface.cc +++ b/repos/os/src/server/nic_router/interface.cc @@ -403,7 +403,7 @@ void Interface::_send_dhcp_reply(Dhcp_server const &dhcp_srv, void Interface::_release_dhcp_allocation(Dhcp_allocation &allocation) { if (_config().verbose()) { - log("Release IP allocation: ", allocation, " at ", *this); + log("Release DHCP allocation: ", allocation, " at ", *this); } _dhcp_allocations.remove(&allocation); } @@ -420,8 +420,8 @@ void Interface::_new_dhcp_allocation(Ethernet_frame ð, _dhcp_allocations.insert(&allocation); if (_config().verbose()) { - log("Offer IP allocation: ", allocation, - " at ", *this); + log("Offer DHCP allocation: ", allocation, + " at ", *this); } _send_dhcp_reply(dhcp_srv, eth.src(), allocation.ip(), @@ -485,8 +485,8 @@ void Interface::_handle_dhcp_request(Ethernet_frame ð, allocation.set_bound(); allocation.lifetime(dhcp_srv.ip_lease_time()); if (_config().verbose()) { - log("Bind IP allocation: ", allocation, - " at ", *this); + log("Bind DHCP allocation: ", allocation, + " at ", *this); } _send_dhcp_reply(dhcp_srv, eth.src(), allocation.ip(), @@ -826,7 +826,7 @@ void Interface::_handle_eth(void *const eth_base, size_t const eth_size, Packet_descriptor const &pkt) { - /* do garbage collection over transport-layer links and IP allocations */ + /* do garbage collection over transport-layer links and DHCP allocations */ _destroy_closed_links(_closed_udp_links, _alloc); _destroy_closed_links(_closed_tcp_links, _alloc); _destroy_released_dhcp_allocations(); @@ -974,7 +974,7 @@ Interface::~Interface() _destroy_links(_tcp_links, _closed_tcp_links, _alloc); _destroy_links(_udp_links, _closed_udp_links, _alloc); - /* destroy IP allocations */ + /* destroy DHCP allocations */ _destroy_released_dhcp_allocations(); while (Dhcp_allocation *allocation = _dhcp_allocations.first()) { _dhcp_allocations.remove(allocation);