message dropped following "isRelayed" exception - log is not explicit
Marcin Siodelski
marcin at isc.org
Wed Sep 3 11:59:32 UTC 2014
Hi Nicolas,
Thanks for reporting this. I submitted a ticket:
http://kea.isc.org/ticket/3537 to resolve this issue.
I tend to agree that this should be logged. We may consider whether it
should be a debug or info severity but something should be logged.
Marcin
On 03/09/14 12:01, Chaigneau, Nicolas wrote:
> Hello,
>
>
>
>
>
> In case of a received message with “giaddr” but no “hops”, function
> “isRelayed” throws an exception (packet is considered malformed).
>
>
>
> However, function “acceptDirectRequest” just catches the exception and
> returns false. Nothing is done with the exception message.
>
>
>
> Hence, in the log we only have:
>
> 2014-09-03 11:52:18.333 INFO [kea-dhcp4.dhcp4/5946]
> DHCP4_NO_SUBNET_FOR_DIRECT_CLIENT no suitable subnet configured for a
> direct client sending packet with transaction id 1234, on interface
> eth0.102, received message is dropped
>
>
>
> … which is not explicit at all.
>
> From the log I thought my configuration was incorrect. But the problem
> was with the message sent by client.
>
> Only reading the code allowed me to figure out what was wrong.
>
>
>
>
>
> Would it be possible to log the exception message ?
>
>
>
>
>
> Regards,
>
> Nicolas.
>
>
>
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient,
> you are not authorized to read, print, retain, copy, disseminate,
> distribute, or use this message or any part thereof. If you receive this
> message in error, please notify the sender immediately and delete all
> copies of this message.
>
>
> _______________________________________________
> kea-dev mailing list
> kea-dev at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-dev
>
More information about the kea-dev
mailing list