Skip to content

Commit 1dc7b73

Browse files
committed
Merge master into docs
2 parents 44712fa + 1b4361d commit 1dc7b73

File tree

275 files changed

+47203
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+47203
-4
lines changed

.clang-format

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
Language: Cpp
3+
BasedOnStyle: WebKit
4+
5+
AlwaysBreakBeforeMultilineStrings: true
6+
AlignAfterOpenBracket: AlwaysBreak
7+
AllowAllArgumentsOnNextLine: false
8+
AllowAllParametersOfDeclarationOnNextLine: false
9+
AllowShortFunctionsOnASingleLine: Inline
10+
AlwaysBreakTemplateDeclarations: Yes
11+
BinPackArguments: false
12+
BinPackParameters: false
13+
BreakInheritanceList: BeforeComma
14+
ColumnLimit: 100
15+
Cpp11BracedListStyle: true
16+
FixNamespaceComments: true
17+
IndentGotoLabels: false
18+
KeepEmptyLinesAtTheStartOfBlocks: false
19+
NamespaceIndentation: None
20+
ShortNamespaceLines: 0
21+
SpaceAfterCStyleCast: true
22+
SpaceAfterTemplateKeyword: false
23+
SpaceInEmptyBlock: false
24+
SpacesInContainerLiterals: false
25+
PointerAlignment: Left
26+
UseTab: false
27+
IndentWidth: 4
28+
...

.github/workflows/c-cpp.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build and Checks
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches: '*'
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
submodules: recursive
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev libunwind-dev libfuse3-dev fuse3 cmake liblz4-dev
22+
( git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig)
23+
( git clone --depth 1 https://github.com/CESNET/nemea-modules /tmp/nemea-modules; cd /tmp/nemea-modules; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; )
24+
( git clone -b release --depth 1 https://github.com/CESNET/telemetry /tmp/telemetry; cd /tmp/telemetry; mkdir build && cd build; cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&make -j10 && sudo make install; )
25+
- name: autoreconf
26+
run: autoreconf -i
27+
- name: configure
28+
run: ./configure --with-raw --with-pcap --with-nemea --with-gtest
29+
- name: make
30+
run: make
31+
- name: make check
32+
run: make check
33+
- name: make distcheck
34+
run: make distcheck
35+
- name: configure with debug
36+
run: ./configure --with-raw --with-pcap --with-nemea --with-gtest --enable-debug CXXFLAGS=-coverage CFLAGS=-coverage LDFLAGS=-lgcov
37+
- name: rebuild and check
38+
run: make clean; make check
39+
- uses: codecov/codecov-action@v4
40+
with:
41+
flags: tests # optional
42+
name: ipfixprobe # optional
43+
fail_ci_if_error: true # optional (default = false)
44+
token: ${{ secrets.CODECOV_TOKEN }}
45+
verbose: true
46+
gcov: true
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ master ]
9+
schedule:
10+
- cron: '33 12 * * 6'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'cpp' ]
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v3
29+
30+
- name: Install dependencies
31+
run: |
32+
sudo apt-get update
33+
sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev libfuse3-dev fuse3 cmake liblz4-dev
34+
( git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig)
35+
( git clone -b release --depth 1 https://github.com/CESNET/telemetry /tmp/telemetry; cd /tmp/telemetry; mkdir build && cd build; cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&make -j10 && sudo make install; )
36+
# Initializes the CodeQL tools for scanning.
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@v2
39+
with:
40+
languages: ${{ matrix.language }}
41+
# If you wish to specify custom queries, you can do so here or in a config file.
42+
# By default, queries listed here will override any specified in a config file.
43+
# Prefix the list here with "+" to use these queries and those in the config file.
44+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
45+
46+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
47+
# If this step fails, then you should remove it and run the build manually (see below)
48+
#- name: Autobuild
49+
# uses: github/codeql-action/autobuild@v2
50+
51+
# ℹ️ Command-line programs to run using the OS shell.
52+
# 📚 https://git.io/JvXDl
53+
54+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
55+
# and modify them (or add more) to build your code if your project
56+
# uses a compiled language
57+
58+
#- run: |
59+
# make bootstrap
60+
# make release
61+
- name: Build
62+
run: |
63+
autoreconf -i
64+
./configure --with-nemea
65+
make
66+
67+
- name: Perform CodeQL Analysis
68+
uses: github/codeql-action/analyze@v2

.github/workflows/coverity.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: coverity
2+
3+
on:
4+
push:
5+
branches: 'coverity'
6+
pull_request:
7+
branches: 'master'
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Install dependencies
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get -y install git build-essential autoconf libtool libpcap-dev pkg-config libxml2-dev libfuse3-dev fuse3 cmake liblz4-dev
20+
( git clone --depth 1 https://github.com/CESNET/nemea-framework /tmp/nemea-framework; cd /tmp/nemea-framework; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; sudo ldconfig)
21+
( git clone --depth 1 https://github.com/CESNET/nemea-modules /tmp/nemea-modules; cd /tmp/nemea-modules; ./bootstrap.sh &&./configure --bindir=/usr/bin/nemea/ -q &&make -j10 && sudo make install; )
22+
( git clone -b release --depth 1 https://github.com/CESNET/telemetry /tmp/telemetry; cd /tmp/telemetry; mkdir build && cd build; cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&make -j10 && sudo make install; )
23+
- name: autoreconf
24+
run: autoreconf -i
25+
- name: configure
26+
run: ./configure --with-nemea
27+
- uses: vapier/coverity-scan-action@v1
28+
with:
29+
30+
token: ${{ secrets.COVERITY_SCAN_TOKEN }}

.gitignore

Lines changed: 123 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,123 @@
1-
_site/
2-
.sass-cache/
3-
.jekyll-metadata/
4-
.jekyll-cache/
1+
# http://www.gnu.org/software/automake
2+
3+
Makefile.in
4+
/ar-lib
5+
/mdate-sh
6+
/py-compile
7+
/test-driver
8+
/ylwrap
9+
.deps/
10+
nfbCInterface/.deps/
11+
.dirstamp
12+
13+
# http://www.gnu.org/software/autoconf
14+
15+
autom4te.cache
16+
/autoscan.log
17+
/autoscan-*.log
18+
/aclocal.m4
19+
/compile
20+
/config.guess
21+
/config.h.in
22+
/config.log
23+
/config.status
24+
/config.sub
25+
/configure
26+
/configure.scan
27+
/depcomp
28+
/install-sh
29+
/missing
30+
/stamp-h1
31+
32+
# https://www.gnu.org/software/libtool/
33+
34+
/ltmain.sh
35+
36+
# http://www.gnu.org/software/texinfo
37+
38+
/texinfo.tex
39+
40+
# http://www.gnu.org/software/m4/
41+
42+
m4/libtool.m4
43+
m4/ltoptions.m4
44+
m4/ltsugar.m4
45+
m4/ltversion.m4
46+
m4/lt~obsolete.m4
47+
48+
# Generated Makefile
49+
# (meta build system like autotools,
50+
# can automatically generate from config.status script
51+
# (which is called by configure script))
52+
Makefile
53+
54+
# Prerequisites
55+
*.d
56+
57+
# Compiled Object files
58+
*.slo
59+
*.lo
60+
*.o
61+
*.obj
62+
63+
# Precompiled Headers
64+
*.gch
65+
*.pch
66+
67+
# Compiled Dynamic libraries
68+
*.so
69+
*.dylib
70+
*.dll
71+
72+
# Fortran module files
73+
*.mod
74+
*.smod
75+
76+
# Compiled Static libraries
77+
*.lai
78+
*.la
79+
*.a
80+
*.lib
81+
82+
# Executables
83+
*.exe
84+
*.out
85+
*.app
86+
87+
88+
# Generated Ipfixprobe Files
89+
config.h
90+
.idea/
91+
ipfixprobe.bash
92+
ipfixprobe.spec
93+
libtool
94+
fields.c
95+
fields.h
96+
ipfixprobe-nemea.*
97+
ipfixprobe
98+
ipfixprobe_stats
99+
ipfixprobe-*.tar.gz
100+
101+
# Test Outputs
102+
tests/*/*.log
103+
tests/*/*.trs
104+
tests/output/
105+
tests/functional/output
106+
# Unit test binaries
107+
tests/unit/byte_utils
108+
tests/unit/flowifc
109+
tests/unit/options
110+
tests/unit/unirec
111+
tests/unit/utils
112+
113+
# Mac Finder metafile
114+
**/.DS_Store
115+
116+
# vscode settings files
117+
.vscode
118+
119+
# jekyll files
120+
docs/_site/
121+
docs/.sass-cache/
122+
docs/.jekyll-metadata/
123+
docs/.jekyll-cache/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "googletest"]
2+
path = googletest
3+
url = https://github.com/google/googletest.git

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
language: c
2+
compiler:
3+
- gcc
4+
5+
env:
6+
global:
7+
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
8+
# via the "travis encrypt" command using the project repo's public key
9+
- secure: "Xa7VWMjBIw16U/WN0AzI2QHq36OgVSyGsEUElP/wRzfMjXjIh2a0qa6xOui305Az7jBb3/aF5p15pETif9WK4HUs9lXtNOaSRN0+kXX7zKnt4gehr1T659yc7T4hTuxNilEQPjk9Rmw4NfXo89jrYMvV1bTNxVXQg0FZu7SO7COCsyCs2mKj1GtqEJSgYL9epaByPmaG8QA8A+8sGRDZhB1tqeiYeBlramlqkleNHnRF7Hw+gfH44wLuK9RnRNXV0O3C4wQDqZukBXudODWZHDeqZ+EXawW72yh4Y+0lltis3fDoOzJKYvRvelah0lszrdBz48EZdYhp7UbeuxVKnNn7nb4F5I64I4p6yzHnjWJFV2KLxutLjcrNUZlDrLC7hy274dIrUwhlAHMIqjkJuABWNRzyluzYbe1cN8EL4p+pQdfsWousLlLBGrkjTgsdBm7NFiwpYqoQZQMig/0Yloxf2d+Xxbsujk+GF0fn8vMLYZzR0RLQDNjbrzuv59fnWLH3htfPX0+xJctsrXKR2cptk3q1JLSmCXloEgvt5iwYu805IA+tjzGcLAHt4VsOJe+gXFoQmxlnFwL2jwACjkLx7B2sUM5FnnKyC4wzI6yUQIJ3W3ZsFX0n3iT8gmfBr0ewTPQz4TZXM2hj4ZeAfzUvxszI44f41TZUiOBIraw="
10+
11+
addons:
12+
apt:
13+
sources:
14+
- ubuntu-toolchain-r-test
15+
packages:
16+
- gawk
17+
- gcc-multilib
18+
- g++
19+
- autoconf
20+
- autoconf
21+
- pkg-config
22+
- make
23+
- automake
24+
- libpcap-dev
25+
coverity_scan:
26+
project:
27+
name: "CESNET/ipfixprobe"
28+
description: "Build submitted via Travis CI"
29+
notification_email: [email protected]
30+
build_command_prepend: "autoreconf -i && ./configure"
31+
build_command: "make -j2"
32+
branch_pattern: coverity
33+
34+
script:
35+
- autoreconf -i && ./configure && make -j2
36+

0 commit comments

Comments
 (0)