Vitaliy Ivanov
10506b5173
Generate NDPI_API_VERSION based on git commands.
...
https://github.com/ntop/PF_RING/issues/668
Check for .git directory works in case of usual clone of nDPI repo.
But if you integrate is as submodule then .git is a file.
Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com >
2020-10-29 12:35:05 +01:00
Vitaliy Ivanov
24f2cd6fc1
example: fix build warning.
...
ndpiReader.c:24:0: warning: "_GNU_SOURCE" redefined
#define _GNU_SOURCE
<command-line>:0:0: note: this is the location of the previous definition
Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com >
2020-01-13 16:15:58 +02:00
Vitaliy Ivanov
cbabbd5865
example: fix compilation of ndpireader on latest dpdk.
...
reader_util.c:1708:43: error: 'ETHER_MAX_LEN' undeclared here (not in a function)
.rxmode = { .max_rx_pkt_len = ETHER_MAX_LEN }
^~~~~~~~~~~~~
DPDK before 19.08 had a macro ETHER_MAX_LEN, in later versions it was
changed to RTE_ETHER_MAX_LEN.
Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com >
2020-01-13 16:10:09 +02:00
Vitaliy Ivanov
fd963538f3
build: cleanup of dpdk examples.
...
- clean install dependencies on example binary
- add more rules to clean command
Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com >
2018-11-29 13:40:37 +02:00
Vitaliy Ivanov
a3abbc3ebb
build: do not fail if example app is not present.
...
Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com >
2018-11-28 19:23:27 +02:00
Vitaliy Ivanov
8df6b5c1bf
build: install example binaries to dst dir.
...
make install DESTDIR=/build/nDPI/
Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com >
2018-11-28 17:40:01 +02:00
Vitaliy Ivanov
9cbf25a76f
build: cleanup .so.X.X.X if present.
...
Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com >
2018-11-28 16:56:22 +02:00
Vitaliy Ivanov
923ba84f65
gitignore: ignore dpdk artifacts.
...
Also similarly to shared libraries do not hide static lib.
Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com >
2018-11-28 16:43:17 +02:00
Vitaliy Ivanov
ea7e7c753b
build: correct example dpdk linking with pcap.
...
- take libpcap from configure information.
- clean up distclean.
Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com >
2018-11-28 16:40:34 +02:00