Coder Social home page Coder Social logo

montimage / mmt-dpi Goto Github PK

View Code? Open in Web Editor NEW
6.0 8.0 1.0 20.09 MB

A software C library designed to extract data attributes from network packets, server logs, and from structured events in general, in order to make them available for analysis

Home Page: https://montimage.com

License: Apache License 2.0

HTML 0.09% Shell 0.01% Makefile 0.18% C 99.43% C++ 0.08% CSS 0.16% XSLT 0.05%
deep-packet-inspection dpi

mmt-dpi's Introduction

mmt-dpi's People

Contributors

edmo-m avatar frankccv avatar jeevanpokhrel avatar luongnv89 avatar nhnghia avatar vinhhoala avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

frankccv

mmt-dpi's Issues

Incorrect classification in GTP

The 3 fields, sequence number (2 octets), n-pdu number (1 octet) and extension header (1 octet), are present if at least one of 3 bit fields, S, NP, E is present.

3GPP_TS_29_281

So the classification is incorrect:

int gtp_classify_next_proto(ipacket_t * ipacket, unsigned index) {

	int offset = get_packet_offset_at_index(ipacket, index);
	struct gtp_header_generic *gtp = (struct gtp_header_generic*)& ipacket->data[offset];
	int gtp_offset = sizeof (struct gtp_header_generic);
	if(gtp->sequence_number == 1){
		gtp_offset += 4;
	}
	if(gtp->ndpu_number == 1){
		gtp_offset += 2;
	}
	if(gtp->extension_header == 1){
		gtp_offset += 2;	
	}
	if (gtp->message_type == 0xff) {
		classified_proto_t retval;
		retval.proto_id = PROTO_IP;
		retval.offset = gtp_offset;
		retval.status = Classified;
		return set_classified_proto(ipacket, index + 1, retval);
	}
	return 0;
}

Compilation error, redefinition of ‘union byteswap_64_u’ and of ‘ntohll’, when using gcc -v 9.4 and 7.5.0

[COMPILE] plugins_engine.o
[ARCHIVE] libmmt_core.a
[LIBRARY] libmmt_core.so.1.7.2.0
[COMPILE] proto_int.o
In file included from /home/zujany/mmt-dpi/src/mmt_tcpip/lib/protocols/proto_int.c:8:
/home/zujany/mmt-dpi/src/mmt_tcpip/lib/protocols/proto_int.h:17:7: error: redefinition of ‘union byteswap_64_u’
17 | union byteswap_64_u {
| ^~~~~~~~~~~~~
In file included from /home/zujany/mmt-dpi/src/mmt_core/public_include/plugin_defs.h:14,
from /home/zujany/mmt-dpi/src/mmt_tcpip/lib/protocols/proto_int.h:11,
from /home/zujany/mmt-dpi/src/mmt_tcpip/lib/protocols/proto_int.c:8:
/home/zujany/mmt-dpi/src/mmt_core/public_include/data_defs.h:64:7: note: originally defined here
64 | union byteswap_64_u {
| ^~~~~~~~~~~~~
In file included from /home/zujany/mmt-dpi/src/mmt_tcpip/lib/protocols/proto_int.c:8:
/home/zujany/mmt-dpi/src/mmt_tcpip/lib/protocols/proto_int.h:30:24: error: redefinition of ‘ntohll’
30 | static inline uint64_t ntohll(uint64_t x){
| ^~~~~~
In file included from /home/zujany/mmt-dpi/src/mmt_core/public_include/plugin_defs.h:14,
from /home/zujany/mmt-dpi/src/mmt_tcpip/lib/protocols/proto_int.h:11,
from /home/zujany/mmt-dpi/src/mmt_tcpip/lib/protocols/proto_int.c:8:
/home/zujany/mmt-dpi/src/mmt_core/public_include/data_defs.h:77:24: note: previous definition of ‘ntohll’ was here
77
| static inline uint64_t ntohll(uint64_t x){
| ^~~~~~
In file included from /home/zujany/mmt-dpi/src/mmt_tcpip/lib/protocols/proto_int.c:9:
/home/zujany/mmt-dpi/src/mmt_tcpip/lib/protocols/proto_int_report.h:87:1: note: offset of packed bit-field ‘report_metadata_bits’ has changed in GCC 4.4
87 | int_report_v10_t;
| ^~~~~~~~~~~~~~~~
make: *** [/home/zujany/mmt-dpi/rules/common.mk:288: /home/zujany/mmt-dpi/src/mmt_tcpip/lib/protocols/proto_int.o] Error 1

segmentation faut

when testing bigFlows.pcap: ./probe -t ~/share_vbox/pcaps/bigFlows.pcap -Xfile-output.enable=false -Xthread-nb=3

Screenshot 2022-04-07 at 15 37 48

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.