aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-opensafety.c
diff options
context:
space:
mode:
authorRoland Knall <rknall@gmail.com>2022-06-23 16:34:07 +0200
committerRoland Knall <rknall@gmail.com>2022-06-23 16:34:07 +0200
commit00790588376848c382feab3151148aa9f4a85224 (patch)
tree569965c139c1af5c633097507a4ed2e9faf3fe15 /epan/dissectors/packet-opensafety.c
parent342af4727dd34164ae6d4407a8b1ce9d4807c6b7 (diff)
openSAFETY: Define broadcast address globaly
Diffstat (limited to 'epan/dissectors/packet-opensafety.c')
-rw-r--r--epan/dissectors/packet-opensafety.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-opensafety.c b/epan/dissectors/packet-opensafety.c
index 31d557a893..97ffec649d 100644
--- a/epan/dissectors/packet-opensafety.c
+++ b/epan/dissectors/packet-opensafety.c
@@ -72,6 +72,7 @@
#define OSS_SLIM_FRAME2_WITH_CRC8 0x06 /* 6 */
#define OSS_SLIM_FRAME2_WITH_CRC16 0x07 /* 7 */
#define OSS_MINIMUM_LENGTH 0x0b /* 11 */
+#define OSS_BROADCAST_ADDRESS 0x3ff
#define OPENSAFETY_SPDO_CONNECTION_VALID 0x04
@@ -1995,7 +1996,7 @@ opensafety_conversation_packet(void *pct, packet_info *pinfo,
opensafety_packet_info * osinfo = (opensafety_packet_info *)vip;
guint16 receiver = osinfo->receiver;
if (osinfo->msg_type == OPENSAFETY_SPDO_MESSAGE_TYPE)
- receiver = 0x3FF;
+ receiver = OSS_BROADCAST_ADDRESS;
hash->flags = flags;
@@ -2018,7 +2019,7 @@ opensafety_hostlist_packet(void *pit, packet_info *pinfo,
opensafety_packet_info * osinfo = (opensafety_packet_info *)vip;
guint16 receiver = osinfo->receiver;
if (osinfo->msg_type == OPENSAFETY_SPDO_MESSAGE_TYPE)
- receiver = 0x3FF;
+ receiver = OSS_BROADCAST_ADDRESS;
hash->flags = flags;