diff options
author | David Höppner <0xffea@gmail.com> | 2014-02-13 09:42:44 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2014-02-13 11:30:52 -0800 |
commit | 484ad3ba6a529a2471a98577d59d8ed49c7dd2c7 (patch) | |
tree | 650b2e3b29b72fe1f8e578d865a90817fec12e65 | |
parent | 5bc1e22263da29a716575a856dd867c1f58f4a8b (diff) | |
download | illumos-joyent-484ad3ba6a529a2471a98577d59d8ed49c7dd2c7.tar.gz |
4587 snoop misdecodes DHCPv6 DHCPV6_DUID_LL identifiers
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
Reviewed by: Marcel Telka <marcel@telka.sk>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r-- | usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c b/usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c index 8735148cdb..0e7c1bee96 100644 --- a/usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c +++ b/usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_dhcpv6.c @@ -29,6 +29,7 @@ * RFCs 3315, 3319, 3646, 3898, 4075, 4242, 4280, 4580, 4649, and 4704. */ +#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -631,7 +632,7 @@ show_options(const uint8_t *data, int len) (void) snprintf(get_line(0, 0), get_line_remain(), " Hardware Type = %u (%s)", val16, - arp_htype(type)); + arp_htype(val16)); } if (type == DHCPV6_DUID_LLT) { time_t timevalue; |