More useful DHCPv6 packet logging.

This commit is contained in:
Simon Kelley
2012-03-12 15:06:55 +00:00
parent 1d0f91c4a9
commit 6c8f21e4a4
2 changed files with 60 additions and 18 deletions

View File

@@ -583,10 +583,10 @@ char *option_string(int prot, unsigned int opt, unsigned char *val, int opt_len,
if (opt_len != 0 && buf && (!ot[o].name || nodecode))
{
int trunc = 0;
if (opt_len > 13)
if (opt_len > 14)
{
trunc = 1;
opt_len = 13;
opt_len = 14;
}
print_mac(buf, val, opt_len);
if (trunc)