aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dhcpv6.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2012-11-10 14:00:30 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2012-11-10 14:00:30 +0000
commit6f1847f60667f4ebb33f33f9b50c550052577f65 (patch)
treeb715269089bcc7c170fcc2ed7273d4f12a3a1f0c /epan/dissectors/packet-dhcpv6.c
parente304855c22982b096c40e9e7240d6fc632686293 (diff)
From Jérôme LAFORGE:
Patch that checks the length of OPTION_RECONF_ACCEPT (20). As defined by RFC3315, its length has to be 0. svn path=/trunk/; revision=45988
Diffstat (limited to 'epan/dissectors/packet-dhcpv6.c')
-rw-r--r--epan/dissectors/packet-dhcpv6.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dhcpv6.c b/epan/dissectors/packet-dhcpv6.c
index afb19d26a2..d50ee276fa 100644
--- a/epan/dissectors/packet-dhcpv6.c
+++ b/epan/dissectors/packet-dhcpv6.c
@@ -5,6 +5,7 @@
* IItom Tsutomu MIENO <iitom@utouto.com>
* SHIRASAKI Yasuhiro <yasuhiro@gnome.gr.jp>
* Tony Lindstrom <tony.lindstrom@ericsson.com>
+ * Copyright 2012, Jerome LAFORGE <jerome.laforge@gmail.com>
*
* $Id$
*
@@ -14,6 +15,7 @@
* RFC3633.txt (Prefix options)
* RFC3646.txt (DNS servers/domains)
* RFC3898.txt (NIS options)
+ * RFC4649.txt (Remote ID option)
* RFC4704.txt (Client FQDN)
* RFC5007.txt (DHCPv6 Leasequery)
* RFC5417.txt (CAPWAP Access Controller DHCP Option)
@@ -1473,6 +1475,10 @@ dhcpv6_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree,
proto_tree_add_item(subtree, hf_reconf_msg, tvb, off, 1, ENC_BIG_ENDIAN);
break;
+ case OPTION_RECONF_ACCEPT:
+ if (optlen)
+ expert_add_info_format(pinfo, option_item, PI_MALFORMED, PI_ERROR, "RECONF_ACCEPT: malformed option");
+ break;
case OPTION_SIP_SERVER_D:
if (optlen > 0) {
ti = proto_tree_add_text(subtree, tvb, off, optlen, "SIP Servers Domain Search List");