aboutsummaryrefslogtreecommitdiffstats
path: root/packet-teredo.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-12-29 00:19:00 +0000
committerGuy Harris <guy@alum.mit.edu>2003-12-29 00:19:00 +0000
commit3074ff6a82139579d7dc4a7cfcfa0f8bb47a629b (patch)
tree98fb08306d6a9e04cb59fa0d245208cc4f399a1e /packet-teredo.c
parent56af440bfa2044b7e9ef5e4bfa48dd4146202e37 (diff)
At least as I read the Teredo draft, the nonce value is just an opaque
8-byte value. svn path=/trunk/; revision=9466
Diffstat (limited to 'packet-teredo.c')
-rw-r--r--packet-teredo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-teredo.c b/packet-teredo.c
index cd3588b4d4..81cdc7a4ab 100644
--- a/packet-teredo.c
+++ b/packet-teredo.c
@@ -6,7 +6,7 @@
* Copyright 2003, Ragi BEJJANI - 6WIND - <ragi.bejjani@6wind.com>
* Copyright 2003, Vincent JARDIN - 6WIND - <vincent.jardin@6wind.com>
*
- * $Id: packet-teredo.c,v 1.3 2003/12/28 12:43:39 ulfl Exp $
+ * $Id: packet-teredo.c,v 1.4 2003/12/29 00:19:00 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -60,7 +60,7 @@ typedef struct {
guint16 th_indtyp;
guint8 th_cidlen;
guint8 th_authdlen;
- guint64 th_nonce;
+ guint8 th_nonce[8];
guint8 th_conf;
guint8 th_ip_v_hl;
@@ -125,7 +125,7 @@ dissect_teredo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
teredoh->th_indtyp = teredoh->th_header;
teredoh->th_cidlen = tvb_get_guint8(tvb,offset+2); /*Authentication header octet*/
teredoh->th_authdlen = tvb_get_guint8(tvb,offset+3);
- teredoh->th_nonce = (guint64) tvb_get_ntohieee_double(tvb, offset+4);
+ tvb_memcpy(tvb,teredoh->th_nonce,offset+4,sizeof teredoh->th_nonce);
teredoh->th_conf = tvb_get_guint8(tvb,offset+12);
/*Skip over Authentication Header (fixed length-no authentication)*/