diff options
Diffstat (limited to 'epan/dissectors/packet-opensafety.c')
-rw-r--r-- | epan/dissectors/packet-opensafety.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/epan/dissectors/packet-opensafety.c b/epan/dissectors/packet-opensafety.c index 68ae04e72b..4b2d14943f 100644 --- a/epan/dissectors/packet-opensafety.c +++ b/epan/dissectors/packet-opensafety.c @@ -43,6 +43,7 @@ #include <epan/packet.h> #include <epan/prefs.h> #include <epan/etypes.h> +#include <epan/ipproto.h> #include <epan/wmem/wmem.h> #include <epan/expert.h> #include <epan/reassemble.h> @@ -75,11 +76,6 @@ #define OPENSAFETY_DEFAULT_DOMAIN 0x1 -/* Under linux, this gets defined in netinet/in.h */ -#ifndef IPPROTO_UDP -#define IPPROTO_UDP 0x11 -#endif - #ifndef OPENSAFETY_PINFO_CONST_DATA #define OPENSAFETY_PINFO_CONST_DATA 0xAABBCCDD #endif @@ -2282,7 +2278,7 @@ dissect_opensafety_siii(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *t if ( ! global_enable_siii ) return result; - if ( pinfo->ipproto == IPPROTO_UDP ) + if ( pinfo->ipproto == IP_PROTO_UDP ) { return opensafety_package_dissector("openSAFETY/SercosIII UDP", "", FALSE, FALSE, 0, message_tvb, pinfo, tree, OPENSAFETY_ACYCLIC_DATA ); |