From 1567feae3c0ace1b9028a4dc48f73353009f7ed0 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Mon, 12 Mar 2012 22:15:35 +0000 Subject: [PATCH] Log vendor class for DHCPv6 --- src/rfc3315.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rfc3315.c b/src/rfc3315.c index ba4dd3e..353a03e 100644 --- a/src/rfc3315.c +++ b/src/rfc3315.c @@ -290,6 +290,9 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh } } + if (option_bool(OPT_LOG_OPTS) && (opt = opt6_find(packet_options, end, OPTION6_VENDOR_CLASS, 4))) + my_syslog(MS_DHCP | LOG_INFO, _("%u vendor class: %u"), xid, opt6_uint(opt, 0, 4)); + /* dhcp-match. If we have hex-and-wildcards, look for a left-anchored match. Otherwise assume the option is an array, and look for a matching element. If no data given, existance of the option is enough. This code handles