aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2018-07-18 17:33:28 +0200
committerLuca Deri <deri@ntop.org>2018-07-18 17:33:28 +0200
commit475f54e9d1c9008004c407e1f098a21e42bed8a2 (patch)
treef7e01f92d1579619cb10e65a3e2c3f1e0bab0d6f /src/lib
parent34dfe7d375e4fb3bf987f250f260b5b1a7cd15bb (diff)
Fixed name clash
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/protocols/diameter.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/protocols/diameter.c b/src/lib/protocols/diameter.c
index 24317f498..f2f342914 100644
--- a/src/lib/protocols/diameter.c
+++ b/src/lib/protocols/diameter.c
@@ -1,5 +1,5 @@
/*
- * aimini.c
+ * diameter.c
*
* Copyright (C) 2018 - ntop.org
* Written by Michele Campus - <campus@ntop.org>
@@ -31,10 +31,10 @@
// Header Flags possibile values
-#define REQUEST 0X80
-#define PROXYABLE 0X40
-#define ERROR 0X20
-#define RETRASM 0X10
+#define DIAMETER_REQUEST 0X80
+#define DIAMETER_PROXYABLE 0X40
+#define DIAMETER_ERROR 0X20
+#define DIAMETER_RETRASM 0X10
typedef enum {
AC = 271,
@@ -73,10 +73,10 @@ int is_diameter(struct ndpi_packet_struct *packet, int size_payload)
// check if the packet is diameter
if(diameter->version == 0x01 &&
- (diameter->flags == REQUEST ||
- diameter->flags == PROXYABLE ||
- diameter->flags == ERROR ||
- diameter->flags == RETRASM)) {
+ (diameter->flags == DIAMETER_REQUEST ||
+ diameter->flags == DIAMETER_PROXYABLE ||
+ diameter->flags == DIAMETER_ERROR ||
+ diameter->flags == DIAMETER_RETRASM)) {
u_int16_t com_code = diameter->com_code[2] + (diameter->com_code[1] << 8) + (diameter->com_code[0] << 8);