aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexei-argus <alexei@argus-sec.com>2017-05-10 18:05:27 +0300
committeralexei-argus <alexei@argus-sec.com>2017-06-14 16:46:42 +0300
commit87b49c524993bf17de1a207b4473d439c4071b24 (patch)
tree8c44fca534cf84ba1ee2e08c4eda52a5cde6fd0d
parentef1a84fb39ddd8163d4824d8893145dc60ed6a56 (diff)
Fix build errors
-rw-r--r--src/lib/Makefile.am1
-rw-r--r--src/lib/protocols/SOMEIP.c8
2 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 375e9ce48..3bf808f44 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -158,6 +158,7 @@ libndpi_la_SOURCES = ndpi_content_match.c.inc \
protocols/zeromq.c \
protocols/smpp.c \
protocols/tinc.c \
+ protocols/someip.c \
third_party/include/actypes.h \
third_party/include/ahocorasick.h \
third_party/include/ndpi_patricia.h \
diff --git a/src/lib/protocols/SOMEIP.c b/src/lib/protocols/SOMEIP.c
index 84fdfada7..54c2d568f 100644
--- a/src/lib/protocols/SOMEIP.c
+++ b/src/lib/protocols/SOMEIP.c
@@ -158,8 +158,8 @@ void ndpi_search_someip (struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t request_id = (u_int32_t) (packet->payload[8]+(packet->payload[9]<<8)+(packet->payload[10]<<16)+(packet->payload[11]<<24));
if (message_id == MSG_MAGIC_COOKIE){
- if (someip_len == 0x08) && (request_id == 0xDEADBEEF) && (interface_version == 0x01) &&
- (message_type == 0x01) && (return_code == 0x00){
+ if ((someip_len == 0x08) && (request_id == 0xDEADBEEF) && (interface_version == 0x01) &&
+ (message_type == 0x01) && (return_code == 0x00)){
NDPI_LOG(NDPI_PROTOCOL_SOMEIP, ndpi_struct, NDPI_LOG_DEBUG, "SOME/IP found Magic Cookie\n",message_type);
ndpi_int_someip_add_connection(ndpi_struct,flow);
return;
@@ -172,8 +172,8 @@ void ndpi_search_someip (struct ndpi_detection_module_struct *ndpi_struct,
}
if (message_id == MSG_MAGIC_COOKIE_ACK){
- if (someip_len == 0x08) && (request_id == 0xDEADBEEF) && (interface_version == 0x01) &&
- (message_type == 0x02) && (return_code == 0x00){
+ if ((someip_len == 0x08) && (request_id == 0xDEADBEEF) && (interface_version == 0x01) &&
+ (message_type == 0x02) && (return_code == 0x00)){
NDPI_LOG(NDPI_PROTOCOL_SOMEIP, ndpi_struct, NDPI_LOG_DEBUG, "SOME/IP found Magic Cookie ACK\n",message_type);
ndpi_int_someip_add_connection(ndpi_struct,flow);
return;