aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/third_party/src/ndpi_patricia.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/third_party/src/ndpi_patricia.c b/src/lib/third_party/src/ndpi_patricia.c
index cf1eef229..5068d7a03 100644
--- a/src/lib/third_party/src/ndpi_patricia.c
+++ b/src/lib/third_party/src/ndpi_patricia.c
@@ -238,6 +238,16 @@ static ndpi_prefix_t * ndpi_New_Prefix2 (int family, void *dest, int bitlen, ndp
}
memcpy (&prefix->add.sin, dest, sizeof(struct in_addr));
}
+ else if(family == AF_MAC) {
+ default_bitlen = 48;
+ if(prefix == NULL) {
+ prefix = (ndpi_prefix_t*)ndpi_calloc(1, sizeof (ndpi_prefix_t));
+ if(!prefix)
+ return (NULL);
+ dynamic_allocated++;
+ }
+ memcpy (prefix->add.mac, dest, 6);
+ }
else {
return (NULL);
}