aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Brandson <chris.brandson@gmail.com>2015-12-10 17:06:04 -0800
committerAnders Broman <a.broman58@gmail.com>2015-12-11 07:08:20 +0000
commit9cbb646524d822149df06715b10677dc7736dfae (patch)
treed6f49ab22f84653befb5f61fd856828a175058a4
parente6dc9a725bfe30c0435b9c32423b1c5804572f52 (diff)
Changed references for IntraPAN to PAN ID Compression as per all versions 802.15.4-2006 and laterChange-Id: I99e66919c86712533cd37fef9d4c464b75444d93
Change-Id: I9ec2b1a6d457d887a7202f7fe0894c3894cb1ecb Reviewed-on: https://code.wireshark.org/review/12514 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-ieee802154.c30
-rw-r--r--epan/dissectors/packet-ieee802154.h4
2 files changed, 17 insertions, 17 deletions
diff --git a/epan/dissectors/packet-ieee802154.c b/epan/dissectors/packet-ieee802154.c
index 35a231e93d..4c773778f6 100644
--- a/epan/dissectors/packet-ieee802154.c
+++ b/epan/dissectors/packet-ieee802154.c
@@ -210,7 +210,7 @@ static int hf_ieee802154_frame_type = -1;
static int hf_ieee802154_security = -1;
static int hf_ieee802154_pending = -1;
static int hf_ieee802154_ack_request = -1;
-static int hf_ieee802154_intra_pan = -1;
+static int hf_ieee802154_pan_id_compression = -1;
static int hf_ieee802154_seqno = -1;
static int hf_ieee802154_src_addr_mode = -1;
static int hf_ieee802154_dst_addr_mode = -1;
@@ -447,7 +447,7 @@ dissect_ieee802154_fcf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, ieee
&hf_ieee802154_security,
&hf_ieee802154_pending,
&hf_ieee802154_ack_request,
- &hf_ieee802154_intra_pan,
+ &hf_ieee802154_pan_id_compression,
&hf_ieee802154_dst_addr_mode,
&hf_ieee802154_version,
&hf_ieee802154_src_addr_mode,
@@ -458,14 +458,14 @@ dissect_ieee802154_fcf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, ieee
fcf = tvb_get_letohs(tvb, *offset);
/* Parse FCF Flags. */
- packet->frame_type = fcf & IEEE802154_FCF_TYPE_MASK;
- packet->security_enable = fcf & IEEE802154_FCF_SEC_EN;
- packet->frame_pending = fcf & IEEE802154_FCF_FRAME_PND;
- packet->ack_request = fcf & IEEE802154_FCF_ACK_REQ;
- packet->intra_pan = fcf & IEEE802154_FCF_INTRA_PAN;
- packet->version = (fcf & IEEE802154_FCF_VERSION) >> 12;
- packet->dst_addr_mode = (fcf & IEEE802154_FCF_DADDR_MASK) >> 10;
- packet->src_addr_mode = (fcf & IEEE802154_FCF_SADDR_MASK) >> 14;
+ packet->frame_type = fcf & IEEE802154_FCF_TYPE_MASK;
+ packet->security_enable = fcf & IEEE802154_FCF_SEC_EN;
+ packet->frame_pending = fcf & IEEE802154_FCF_FRAME_PND;
+ packet->ack_request = fcf & IEEE802154_FCF_ACK_REQ;
+ packet->pan_id_compression = fcf & IEEE802154_FCF_PAN_ID_COMPRESSION;
+ packet->version = (fcf & IEEE802154_FCF_VERSION) >> 12;
+ packet->dst_addr_mode = (fcf & IEEE802154_FCF_DADDR_MASK) >> 10;
+ packet->src_addr_mode = (fcf & IEEE802154_FCF_SADDR_MASK) >> 14;
/* Display the frame type. */
proto_item_append_text(tree, " %s", val_to_str_const(packet->frame_type, ieee802154_frame_types, "Reserved"));
@@ -793,7 +793,7 @@ dissect_ieee802154_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, g
* - The Destination addressing doesn't exist, or the Intra-PAN bit is unset.
*/
if ( ((packet->src_addr_mode == IEEE802154_FCF_ADDR_SHORT) || (packet->src_addr_mode == IEEE802154_FCF_ADDR_EXT)) &&
- ((packet->dst_addr_mode == IEEE802154_FCF_ADDR_NONE) || (!packet->intra_pan)) ) {
+ ((packet->dst_addr_mode == IEEE802154_FCF_ADDR_NONE) || (!packet->pan_id_compression)) ) {
/* Source PAN is present, extract it and add it to the tree. */
packet->src_pan = tvb_get_letohs(tvb, offset);
if (tree) {
@@ -2481,11 +2481,11 @@ void proto_register_ieee802154(void)
{ &hf_ieee802154_ack_request,
{ "Acknowledge Request", "wpan.ack_request", FT_BOOLEAN, 16, NULL, IEEE802154_FCF_ACK_REQ,
- "Whether the sender of this packet requests acknowledgement or not.", HFILL }},
+ "Whether the sender of this packet requests acknowledgment or not.", HFILL }},
- { &hf_ieee802154_intra_pan,
- { "Intra-PAN", "wpan.intra_pan", FT_BOOLEAN, 16, NULL, IEEE802154_FCF_INTRA_PAN,
- "Whether this packet originated and terminated within the same PAN or not.", HFILL }},
+ { &hf_ieee802154_pan_id_compression,
+ { "PAN ID Compression", "wpan.pan_id_compression", FT_BOOLEAN, 16, NULL, IEEE802154_FCF_PAN_ID_COMPRESSION,
+ "Whether this packet contains the PAN ID or not.", HFILL }},
{ &hf_ieee802154_seqno,
{ "Sequence Number", "wpan.seq_no", FT_UINT8, BASE_DEC, NULL, 0x0,
diff --git a/epan/dissectors/packet-ieee802154.h b/epan/dissectors/packet-ieee802154.h
index 02acfd555f..54f359d230 100644
--- a/epan/dissectors/packet-ieee802154.h
+++ b/epan/dissectors/packet-ieee802154.h
@@ -103,7 +103,7 @@
#define IEEE802154_FCF_SEC_EN 0x0008
#define IEEE802154_FCF_FRAME_PND 0x0010
#define IEEE802154_FCF_ACK_REQ 0x0020
-#define IEEE802154_FCF_INTRA_PAN 0x0040 /* known as PAN ID Compression in IEEE 802.15.4-2006 */
+#define IEEE802154_FCF_PAN_ID_COMPRESSION 0x0040 /* known as Intra PAN prior to IEEE 802.15.4-2006 */
#define IEEE802154_FCF_DADDR_MASK 0x0C00 /* destination addressing mask */
#define IEEE802154_FCF_VERSION 0x3000
#define IEEE802154_FCF_SADDR_MASK 0xC000 /* source addressing mask */
@@ -178,7 +178,7 @@ typedef struct {
gboolean security_enable;
gboolean frame_pending;
gboolean ack_request;
- gboolean intra_pan;
+ gboolean pan_id_compression;
guint8 seqno;