From 6b8234d93803598ab98c26a7724ede6c5ea51bca Mon Sep 17 00:00:00 2001 From: Ravi Kerur Date: Sat, 9 Mar 2019 10:38:24 -0800 Subject: Xbox and PS4 static port classification. Signed-off-by: Ravi Kerur --- example/protos.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'example') diff --git a/example/protos.txt b/example/protos.txt index b3f24ddb5..a840c8545 100644 --- a/example/protos.txt +++ b/example/protos.txt @@ -14,11 +14,15 @@ host:"googlesyndication.com"@Google host:"venere.com"@Venere host:"kataweb.it",host:"repubblica.it"@Repubblica host:"ntop"@ntop +host:"atv-ext.amazon.com",host:"*.api.amazon.com",host:"*.api.amazonvideo.com"@AmazonVideo +host:"*.amazonaws.com"@AmazonVideo +host:"*.netflix.com"@Netflix +host:"*.lvlt.dash.us.aiv-cdn.net.c.footprint.net"@AmazonVideo +host:"api-global.netflix.com"@Netflix # IP based Subprotocols # Format: # ip:,ip:,.....@ ip:213.75.170.11@CustomProtocol - - - +ip:8.248.73.247@AmazonPrime +ip:54.80.47.130@AmazonPrime -- cgit v1.2.3 From 1ec160d4c99a8dc5b7117abb148f0f89403eab82 Mon Sep 17 00:00:00 2001 From: Ravi Kerur Date: Sun, 14 Jul 2019 00:11:26 +0000 Subject: nDPI ovs changes. Signed-off-by: Ravi Kerur --- example/Makefile.in | 3 +++ src/include/ndpi_typedefs.h | 14 ++++++++++++++ 2 files changed, 17 insertions(+) (limited to 'example') diff --git a/example/Makefile.in b/example/Makefile.in index 258c2d7b3..84abab219 100644 --- a/example/Makefile.in +++ b/example/Makefile.in @@ -16,7 +16,10 @@ ndpiReader: $(OBJS) $(LIBNDPI) install: mkdir -p $(DESTDIR)$(PREFIX)/bin/ + mkdir -p $(DESTDIR)$(PREFIX)/sbin/ndpi cp ndpiReader $(DESTDIR)$(PREFIX)/bin/ + cp protos.txt $(DESTDIR)$(PREFIX)/sbin/ndpi/ndpiProtos.txt + cp mining_hosts.txt $(DESTDIR)$(PREFIX)/sbin/ndpi/ndpiCustomCategory.txt [ -f build/app/ndpiReader.dpdk ] && cp build/app/ndpiReader.dpdk $(DESTDIR)$(PREFIX)/bin/ || true [ -f ndpiReader.dpdk ] && cp ndpiReader.dpdk $(DESTDIR)$(PREFIX)/bin/ || true diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 135d97574..9c08e738f 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -122,6 +122,20 @@ struct ndpi_ethhdr u_int16_t h_proto; /* data length (<= 1500) or type ID proto (>=1536) */ } PACK_OFF; +/* +++++++++++++++ ARP header +++++++++++++++ */ +PACK_ON +struct ndpi_arphdr { + u_int16_t ar_hrd;/* Format of hardware address. */ + u_int16_t ar_pro;/* Format of protocol address. */ + u_int8_t ar_hln;/* Length of hardware address. */ + u_int8_t ar_pln;/* Length of protocol address. */ + u_int16_t ar_op;/* ARP opcode (command). */ + u_char arp_sha[6];/* sender hardware address */ + u_int32_t arp_spa;/* sender protocol address */ + u_char arp_tha[6];/* target hardware address */ + u_int32_t arp_tpa;/* target protocol address */ +} PACK_OFF; + /* +++++++++++++++++++ LLC header (IEEE 802.2) ++++++++++++++++ */ PACK_ON -- cgit v1.2.3