aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-6lowpan.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-10-26 01:50:00 -0700
committerGuy Harris <guy@alum.mit.edu>2017-10-26 08:50:34 +0000
commit458c3c026ed03d17ec7803c61981274ee4574f89 (patch)
tree9564e9336b594296e9048893ba917025444f4d52 /epan/dissectors/packet-6lowpan.c
parent0a99d3ef31611db7020d062216c856923ed29fac (diff)
Add a ws_in6_addr typedef for struct e_in6_addr.
That allows a parallel typedef of ws_in4_addr for guint32. Change-Id: I03b230247065e0e3840eb87635315a8e523ef562 Reviewed-on: https://code.wireshark.org/review/24073 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-6lowpan.c')
-rw-r--r--epan/dissectors/packet-6lowpan.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/packet-6lowpan.c b/epan/dissectors/packet-6lowpan.c
index f9774f2879..bf6a9d3f6b 100644
--- a/epan/dissectors/packet-6lowpan.c
+++ b/epan/dissectors/packet-6lowpan.c
@@ -548,7 +548,7 @@ typedef struct {
typedef struct {
guint frame; /* Frame where the context was discovered. */
guint8 plen; /* Prefix length. */
- struct e_in6_addr prefix; /* Compression context. */
+ ws_in6_addr prefix; /* Compression context. */
} lowpan_context_data;
/* 6LoWPAN contexts. */
@@ -733,7 +733,7 @@ lowpan_context_find(guint8 cid, guint16 pan)
*---------------------------------------------------------------
*/
void
-lowpan_context_insert(guint8 cid, guint16 pan, guint8 plen, struct e_in6_addr *prefix, guint frame)
+lowpan_context_insert(guint8 cid, guint16 pan, guint8 plen, ws_in6_addr *prefix, guint frame)
{
lowpan_context_key key;
lowpan_context_data *data;
@@ -762,7 +762,7 @@ lowpan_context_insert(guint8 cid, guint16 pan, guint8 plen, struct e_in6_addr *p
data = wmem_new(NULL, lowpan_context_data);
data->frame = frame;
data->plen = plen;
- memset(&data->prefix, 0, sizeof(struct e_in6_addr)); /* Ensure zero paddeding */
+ memset(&data->prefix, 0, sizeof(ws_in6_addr)); /* Ensure zero paddeding */
lowpan_pfxcpy(&data->prefix, prefix, plen);
g_hash_table_insert(lowpan_context_table, pkey, data);
} /* lowpan_context_insert */
@@ -2498,16 +2498,16 @@ dissect_6lowpan_iphc_nhc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gi
if ((udp_flags & LOWPAN_NHC_UDP_CHECKSUM) && tvb_bytes_exist(tvb, offset, length)) {
vec_t cksum_vec[3];
struct {
- struct e_in6_addr src;
- struct e_in6_addr dst;
+ ws_in6_addr src;
+ ws_in6_addr dst;
guint32 length;
guint8 zero[3];
guint8 proto;
} cksum_phdr;
/* Fill in the pseudo-header. */
- memcpy(&cksum_phdr.src, pinfo->src.data, sizeof(struct e_in6_addr));
- memcpy(&cksum_phdr.dst, pinfo->dst.data, sizeof(struct e_in6_addr));
+ memcpy(&cksum_phdr.src, pinfo->src.data, sizeof(ws_in6_addr));
+ memcpy(&cksum_phdr.dst, pinfo->dst.data, sizeof(ws_in6_addr));
cksum_phdr.length = g_htonl(length + (int)sizeof(struct udp_hdr));
memset(cksum_phdr.zero, 0, sizeof(cksum_phdr.zero));
cksum_phdr.proto = IP_PROTO_UDP;
@@ -3381,7 +3381,7 @@ void
prefs_6lowpan_apply(void)
{
int i;
- struct e_in6_addr prefix;
+ ws_in6_addr prefix;
gchar *prefix_str;
gchar *prefix_len_str;
guint32 prefix_len;