* SHIRASAKI Yasuhiro <yasuhiro@gnome.gr.jp>
* Tony Lindstrom <tony.lindstrom@ericsson.com>
*
- * $Id: packet-dhcpv6.c,v 1.9 2003/10/17 21:26:56 guy Exp $
+ * $Id: packet-dhcpv6.c,v 1.11 2004/02/25 09:31:05 guy Exp $
*
* The information used comes from:
* RFC3315.txt
* RFC3319.txt
- * draft-ietf-dhc-dhcpv6-opt-prefix-delegation-05.txt
- * draft-ietf-dhc-dhcpv6-opt-dnsconfig-04.txt
+ * RFC3633.txt
+ * RFC3646.txt
* draft-ietf-dhc-dhcpv6-opt-nisconfig-02.txt
* draft-ietf-dhc-dhcpv6-opt-timeconfig-02.txt
* Note that protocol constants are still subject to change, based on IANA
#define RECONFIGURE 10
#define INFORMATION_REQUEST 11
#define RELAY_FORW 12
-#define RELAY_REPL 13
+#define RELAY_REPLY 13
#define OPTION_CLIENTID 1
#define OPTION_SERVERID 2
#define OPTION_SIP_SERVER_A 22
#define OPTION_DNS_SERVERS 23
#define OPTION_DOMAIN_LIST 24
+#define OPTION_IA_PD 25
+#define OPTION_IAPREFIX 26
/*
- * The followings are also unassigned numbers.
+ * The followings are unassigned numbers.
*/
-#define OPTION_IA_PD 33
-#define OPTION_IAPREFIX 34
#define OPTION_NIS_SERVERS 35
#define OPTION_NISP_SERVERS 36
#define OPTION_NIS_DOMAIN_NAME 37
{ RECONFIGURE, "Reconfigure" },
{ INFORMATION_REQUEST, "Information-request" },
{ RELAY_FORW, "Relay-forw" },
- { RELAY_REPL, "Relay-repl" },
+ { RELAY_REPLY, "Relay-reply" },
{ 0, NULL }
};
"Unknown"),
status_code);
- if (optlen - 2 > 0)
- status_message = g_malloc(optlen - 2 + 1);
- if (status_message != 0){
- memset(status_message, 0, optlen - 2 + 1);
- status_message = tvb_memcpy(tvb, status_message, off + 2,
- optlen - 2);
+ if (optlen - 2 > 0) {
+ status_message = tvb_get_string(tvb, off + 2, optlen - 2);
proto_tree_add_text(subtree, tvb, off + 2, optlen - 2,
"Status Message: %s",
status_message);
bp_tree = proto_item_add_subtree(ti, ett_dhcpv6);
}
- while (msgtype == RELAY_FORW || msgtype == RELAY_REPL) {
+ while (msgtype == RELAY_FORW || msgtype == RELAY_REPLY) {
if (check_col(pinfo->cinfo, COL_INFO)) {
col_set_str(pinfo->cinfo, COL_INFO,