From: Stephen Morris Date: Wed, 26 Sep 2012 13:45:39 +0000 (+0100) Subject: [2187] Corrected the text of a few messages and removed a comment X-Git-Tag: trac2351_base~37^2~3^2^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64e40094a730e99da4b24bbe97cb346af7b8fbcd;p=thirdparty%2Fkea.git [2187] Corrected the text of a few messages and removed a comment --- diff --git a/src/bin/dhcp4/dhcp4_messages.mes b/src/bin/dhcp4/dhcp4_messages.mes index 2ff8f5365b..63ddbfca19 100644 --- a/src/bin/dhcp4/dhcp4_messages.mes +++ b/src/bin/dhcp4/dhcp4_messages.mes @@ -43,7 +43,7 @@ The IPv4 DHCP server has received a packet that it is unable to interpret. The reason why the packet is invalid is included in the message. % DHCP4_PACKET_RECEIVE_FAIL error on attempt to receive packet: %1 -The IPv4 DHCP server tried to receive a packet but unexpected error +The IPv4 DHCP server tried to receive a packet but an error occured during this attempt. The reason for the error is included in the message. @@ -54,8 +54,9 @@ may well be a valid DHCP packet, just a type not expected by the server (e.g. it will report a received OFFER packet as UNKNOWN). % DHCP4_PACKET_SEND_FAIL failed to send DHCPv4 packet: %1 -This error is output if IPv6 DHCP server fails to send assembled DHCP -message to a client. The reason for the error is included in the message. +This error is output if the IPv4 DHCP server fails to send an assembled +DHCP message to a client. The reason for the error is included in the +message. % DHCP4_PACK_FAIL failed to assemble response correctly This error is output if the server failed to assemble the data to be diff --git a/src/bin/dhcp6/dhcp6_messages.mes b/src/bin/dhcp6/dhcp6_messages.mes index 424e253241..1564940d37 100644 --- a/src/bin/dhcp6/dhcp6_messages.mes +++ b/src/bin/dhcp6/dhcp6_messages.mes @@ -46,7 +46,7 @@ server is about to open sockets on the specified port. The IPv6 DHCP server has received a packet that it is unable to interpret. % DHCP6_PACKET_RECEIVE_FAIL error on attempt to receive packet: %1 -The IPv6 DHCP server tried to receive a packet but unexpected error +The IPv6 DHCP server tried to receive a packet but an error occured during this attempt. The reason for the error is included in the message. @@ -57,8 +57,9 @@ DHCP packet, just a type not expected by the server (e.g. it will report a received OFFER packet as UNKNOWN). % DHCP6_PACKET_SEND_FAIL failed to send DHCPv6 packet: %1 -This error is output if IPv6 DHCP server fails to send assembled DHCP -message to a client. The reason fo the error is included in the message. +This error is output if the IPv6 DHCP server fails to send an assembled +DHCP message to a client. The reason for the error is included in the +message. % DHCP6_PACK_FAIL failed to assemble response correctly This error is output if the server failed to assemble the data to be diff --git a/src/lib/dhcp/iface_mgr_linux.cc b/src/lib/dhcp/iface_mgr_linux.cc index 581ce5f194..189fe90943 100644 --- a/src/lib/dhcp/iface_mgr_linux.cc +++ b/src/lib/dhcp/iface_mgr_linux.cc @@ -554,10 +554,7 @@ bool IfaceMgr::os_receive4(struct msghdr& m, Pkt4Ptr& pkt) { // broadcast. This will return broadcast address, not // the address we are bound to. - // IOAddress tmp(htonl(pktinfo->ipi_spec_dst.s_addr)); - // cout << "The other addr is: " << tmp.toText() << endl; - - // Perhaps we should uncomment this: + // XXX: Perhaps we should uncomment this: // to_addr = pktinfo->ipi_spec_dst; } cmsg = CMSG_NXTHDR(&m, cmsg);