diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-07-06 17:49:33 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-07-06 17:49:33 +0000 |
commit | 21060c6d4724fad389fb787ec5454cb3830e538c (patch) | |
tree | 7706c9bd0eb363048707eec8b47b9f13c7701565 /epan/dissectors/packet-glbp.c | |
parent | f7c9ff1b32ad0ae0a262dafc11dc022c78127471 (diff) |
Shorten a few variables for values read from the packet.
Inspired by Kovarththanan Rajaratnam's patch for bug 3665
which in turn was a duplicate for the (fixed) bug 3660.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28960 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-glbp.c')
-rw-r--r-- | epan/dissectors/packet-glbp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-glbp.c b/epan/dissectors/packet-glbp.c index e49269cc5c..b72ab89015 100644 --- a/epan/dissectors/packet-glbp.c +++ b/epan/dissectors/packet-glbp.c @@ -166,8 +166,8 @@ static int dissect_glbp_hello(tvbuff_t *tvb, int offset, guint32 length, packet_info *pinfo, proto_tree *tlv_tree) { - guint16 addrtype; - guint16 addrlen; + guint8 addrtype; + guint8 addrlen; int lastoffset = offset + length; proto_tree_add_item(tlv_tree, hf_glbp_hello_unknown10, tvb, offset, 1, FALSE); @@ -250,8 +250,8 @@ static int dissect_glbp_auth(tvbuff_t *tvb, int offset, guint32 length, packet_info *pinfo _U_, proto_tree *tlv_tree) { - guint32 authtype; - guint32 authlength; + guint8 authtype; + guint8 authlength; int lastoffset = offset + length; proto_tree_add_item(tlv_tree, hf_glbp_auth_authtype, tvb, offset, 1, FALSE); @@ -302,10 +302,10 @@ dissect_glbp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree *glbp_tree = NULL; proto_tree *tlv_tree = NULL; proto_item *ti = NULL; - guint32 type; + guint8 type; int offset = 0; - guint32 length; - guint32 group; + guint8 length; + guint16 group; group = tvb_get_ntohs(tvb, 2); |