Moved geneated file to a separate folder

This commit is contained in:
Luca Deri
2022-04-01 08:58:53 +02:00
parent 0ff3e77c42
commit 1e8cdd893c
35 changed files with 43 additions and 43 deletions
+22 -22
View File
@@ -48,28 +48,28 @@
#endif
#include "ndpi_content_match.c.inc"
#include "ndpi_dga_match.c.inc"
#include "ndpi_azure_match.c.inc"
#include "ndpi_tor_match.c.inc"
#include "ndpi_whatsapp_match.c.inc"
#include "ndpi_amazon_aws_match.c.inc"
#include "ndpi_ethereum_match.c.inc"
#include "ndpi_zoom_match.c.inc"
#include "ndpi_cloudflare_match.c.inc"
#include "ndpi_ms_office365_match.c.inc"
#include "ndpi_ms_onedrive_match.c.inc"
#include "ndpi_ms_outlook_match.c.inc"
#include "ndpi_ms_skype_teams_match.c.inc"
#include "ndpi_google_match.c.inc"
#include "ndpi_google_cloud_match.c.inc"
#include "ndpi_icloud_private_relay_match.c.inc"
#include "ndpi_asn_telegram.c.inc"
#include "ndpi_asn_apple.c.inc"
#include "ndpi_asn_twitter.c.inc"
#include "ndpi_asn_netflix.c.inc"
#include "ndpi_asn_webex.c.inc"
#include "ndpi_asn_teamviewer.c.inc"
#include "ndpi_asn_facebook.c.inc"
#include "inc_generated/ndpi_dga_match.c.inc"
#include "inc_generated/ndpi_azure_match.c.inc"
#include "inc_generated/ndpi_tor_match.c.inc"
#include "inc_generated/ndpi_whatsapp_match.c.inc"
#include "inc_generated/ndpi_amazon_aws_match.c.inc"
#include "inc_generated/ndpi_ethereum_match.c.inc"
#include "inc_generated/ndpi_zoom_match.c.inc"
#include "inc_generated/ndpi_cloudflare_match.c.inc"
#include "inc_generated/ndpi_ms_office365_match.c.inc"
#include "inc_generated/ndpi_ms_onedrive_match.c.inc"
#include "inc_generated/ndpi_ms_outlook_match.c.inc"
#include "inc_generated/ndpi_ms_skype_teams_match.c.inc"
#include "inc_generated/ndpi_google_match.c.inc"
#include "inc_generated/ndpi_google_cloud_match.c.inc"
#include "inc_generated/ndpi_icloud_private_relay_match.c.inc"
#include "inc_generated/ndpi_asn_telegram.c.inc"
#include "inc_generated/ndpi_asn_apple.c.inc"
#include "inc_generated/ndpi_asn_twitter.c.inc"
#include "inc_generated/ndpi_asn_netflix.c.inc"
#include "inc_generated/ndpi_asn_webex.c.inc"
#include "inc_generated/ndpi_asn_teamviewer.c.inc"
#include "inc_generated/ndpi_asn_facebook.c.inc"
/* Third party libraries */
#include "third_party/include/ndpi_patricia.h"
+7 -7
View File
@@ -25,36 +25,36 @@ function create_list() {
cd "$(dirname "${0}")" || return
echo "(1) Downloading Apple routes..."
DEST="../src/lib/ndpi_asn_apple.c.inc"
DEST="../src/lib/inc_generated/ndpi_asn_apple.c.inc"
create_list NDPI_PROTOCOL_APPLE $DEST "AS714" "AS6185" "AS2709"
echo "(3) Apple IPs are available in $DEST"
echo "(1) Downloading Facebook routes..."
DEST=../src/lib/ndpi_asn_facebook.c.inc
DEST=../src/lib/inc_generated/ndpi_asn_facebook.c.inc
create_list NDPI_PROTOCOL_FACEBOOK $DEST "AS63293" "AS54115" "AS34825" "AS32934"
echo "(3) Facebook IPs are available in $DEST"
echo "(1) Downloading Netflix routes..."
DEST=../src/lib/ndpi_asn_netflix.c.inc
DEST=../src/lib/inc_generated/ndpi_asn_netflix.c.inc
create_list NDPI_PROTOCOL_NETFLIX $DEST "AS55095" "AS40027" "AS394406" "AS2906"
echo "(3) Netflix IPs are available in $DEST"
echo "(1) Downloading Teamviewer routes..."
DEST=../src/lib/ndpi_asn_teamviewer.c.inc
DEST=../src/lib/inc_generated/ndpi_asn_teamviewer.c.inc
create_list NDPI_PROTOCOL_TEAMVIEWER $DEST "AS43304" "AS212710" "AS208187" "AS208175"
echo "(3) Teamviewer IPs are available in $DEST"
echo "(1) Downloading Telegram routes..."
DEST=../src/lib/ndpi_asn_telegram.c.inc
DEST=../src/lib/inc_generated/ndpi_asn_telegram.c.inc
create_list NDPI_PROTOCOL_TELEGRAM $DEST "AS62041" "AS62014" "AS59930" "AS44907" "AS211157"
echo "(3) Telegram IPs are available in $DEST"
echo "(1) Downloading Twitter routes..."
DEST=../src/lib/ndpi_asn_twitter.c.inc
DEST=../src/lib/inc_generated/ndpi_asn_twitter.c.inc
create_list NDPI_PROTOCOL_TWITTER $DEST "AS63179" "AS54888" "AS35995" "AS13414"
echo "(3) Twitter IPs are available in $DEST"
echo "(1) Downloading Webex routes..."
DEST=../src/lib/ndpi_asn_webex.c.inc
DEST=../src/lib/inc_generated/ndpi_asn_webex.c.inc
create_list NDPI_PROTOCOL_WEBEX $DEST "AS6577" "AS399937" "AS16472" "AS13445"
echo "(3) Webex IPs are available in $DEST"
+1 -1
View File
@@ -2,7 +2,7 @@
cd "$(dirname "${0}")"
DEST=../src/lib/ndpi_amazon_aws_match.c.inc
DEST=../src/lib/inc_generated/ndpi_amazon_aws_match.c.inc
TMP=/tmp/aws.json
LIST=/tmp/aws.list
ORIGIN=https://ip-ranges.amazonaws.com/ip-ranges.json
+1 -1
View File
@@ -2,7 +2,7 @@
cd "$(dirname "${0}")"
DEST=../src/lib/ndpi_azure_match.c.inc
DEST=../src/lib/inc_generated/ndpi_azure_match.c.inc
LINK_TMP=/tmp/azure_link.txt
TMP=/tmp/azure.json
LIST=/tmp/azure.list
+1 -1
View File
@@ -2,7 +2,7 @@
cd "$(dirname "${0}")"
DEST=../src/lib/ndpi_cloudflare_match.c.inc
DEST=../src/lib/inc_generated/ndpi_cloudflare_match.c.inc
LIST=/tmp/cloudflare.list
# TODO: ipv6 list from https://www.cloudflare.com/ips-v6
ORIGIN="https://www.cloudflare.com/ips-v4"
+1 -1
View File
@@ -2,7 +2,7 @@
cd "$(dirname "${0}")"
DEST=../src/lib/ndpi_ethereum_match.c.inc
DEST=../src/lib/inc_generated/ndpi_ethereum_match.c.inc
TMP=/tmp/ethereum
LIST=/tmp/ethereum.list
ORIGIN="https://raw.githubusercontent.com/ethereum/go-ethereum/master/params/bootnodes.go"
+1 -1
View File
@@ -2,7 +2,7 @@
cd "$(dirname "${0}")" || return
DEST=../src/lib/ndpi_google_cloud_match.c.inc
DEST=../src/lib/inc_generated/ndpi_google_cloud_match.c.inc
TMP=/tmp/google_c.json
LIST=/tmp/google_c.list
ORIGIN="https://www.gstatic.com/ipranges/cloud.json"
+1 -1
View File
@@ -4,7 +4,7 @@ set -e
cd "$(dirname "${0}")" || return
DEST=../src/lib/ndpi_google_match.c.inc
DEST=../src/lib/inc_generated/ndpi_google_match.c.inc
LIST=/tmp/google.list
echo "(1) Downloading file..."
@@ -2,7 +2,7 @@
cd "$(dirname "${0}")" || return
DEST=../src/lib/ndpi_icloud_private_relay_match.c.inc
DEST=../src/lib/inc_generated/ndpi_icloud_private_relay_match.c.inc
TMP=/tmp/icloud.csv
LIST=/tmp/icloud.list
LIST_MERGED=/tmp/icloud.list_m
+4 -4
View File
@@ -2,10 +2,10 @@
cd "$(dirname "${0}")"
DEST_OUTLOOK=../src/lib/ndpi_ms_outlook_match.c.inc
DEST_SKYPE_MSTEAMS=../src/lib/ndpi_ms_skype_teams_match.c.inc
DEST_ONEDRIVE=../src/lib/ndpi_ms_onedrive_match.c.inc
DEST_OFFICE365=../src/lib/ndpi_ms_office365_match.c.inc
DEST_OUTLOOK=../src/lib/inc_generated/ndpi_ms_outlook_match.c.inc
DEST_SKYPE_MSTEAMS=../src/lib/inc_generated/ndpi_ms_skype_teams_match.c.inc
DEST_ONEDRIVE=../src/lib/inc_generated/ndpi_ms_onedrive_match.c.inc
DEST_OFFICE365=../src/lib/inc_generated/ndpi_ms_office365_match.c.inc
TMP=/tmp/ms.json
LIST=/tmp/ms.list
# https://docs.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-worldwide
+1 -1
View File
@@ -2,7 +2,7 @@
cd "$(dirname "${0}")"
DEST=../src/lib/ndpi_tor_match.c.inc
DEST=../src/lib/inc_generated/ndpi_tor_match.c.inc
LIST=/tmp/tor.list
# There are at least two lists:
# * https://torstatus.rueckgr.at/ip_list_all.php/Tor_ip_list_ALL.csv
+1 -1
View File
@@ -2,7 +2,7 @@
cd "$(dirname "${0}")"
DEST=../src/lib/ndpi_whatsapp_match.c.inc
DEST=../src/lib/inc_generated/ndpi_whatsapp_match.c.inc
TMP=/tmp/wa.zip
LIST=/tmp/wa.list
# https://developers.facebook.com/docs/whatsapp/guides/network-requirements/
+1 -1
View File
@@ -2,7 +2,7 @@
cd "$(dirname "${0}")"
DEST=../src/lib/ndpi_zoom_match.c.inc
DEST=../src/lib/inc_generated/ndpi_zoom_match.c.inc
LIST=/tmp/zoom.list
# https://support.zoom.us/hc/en-us/articles/201362683-Zoom-network-firewall-or-proxy-server-settings
# There are few lists in this page, partially overlapping. Pick the generic one