Skip to content

Commit 5ff8a24

Browse files
committed
Vanilla net-snmp 5.9.4
1 parent 3cdec74 commit 5ff8a24

File tree

1,316 files changed

+118927
-78261
lines changed

Some content is hidden

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

1,316 files changed

+118927
-78261
lines changed

.appveyor.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
image:
2+
- Ubuntu
3+
- Ubuntu1604
4+
- Ubuntu2004
5+
- macos-monterey
6+
- Visual Studio 2022
7+
8+
environment:
9+
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
10+
matrix:
11+
- BUILD: MSVCDYNAMIC64
12+
- BUILD: MSVCSTATIC64
13+
- BUILD: INSTALLER
14+
- BUILD: MinGW32
15+
- BUILD: MSYS2
16+
- BUILD: MinGW64
17+
18+
matrix:
19+
exclude:
20+
- image: Ubuntu
21+
BUILD: MSVCSTATIC64
22+
- image: Ubuntu
23+
BUILD: INSTALLER
24+
- image: Ubuntu
25+
BUILD: MinGW32
26+
- image: Ubuntu
27+
BUILD: MSYS2
28+
- image: Ubuntu
29+
BUILD: MinGW64
30+
- image: Ubuntu1604
31+
BUILD: MSVCSTATIC64
32+
- image: Ubuntu1604
33+
BUILD: INSTALLER
34+
- image: Ubuntu1604
35+
BUILD: MinGW32
36+
- image: Ubuntu1604
37+
BUILD: MSYS2
38+
- image: Ubuntu1604
39+
BUILD: MinGW64
40+
- image: Ubuntu2004
41+
BUILD: MSVCSTATIC64
42+
- image: Ubuntu2004
43+
BUILD: INSTALLER
44+
- image: Ubuntu2004
45+
BUILD: MinGW32
46+
- image: Ubuntu2004
47+
BUILD: MSYS2
48+
- image: Ubuntu2004
49+
BUILD: MinGW64
50+
- image: macos-monterey
51+
BUILD: MSVCSTATIC64
52+
- image: macos-monterey
53+
BUILD: INSTALLER
54+
- image: macos-monterey
55+
BUILD: MinGW32
56+
- image: macos-monterey
57+
BUILD: MSYS2
58+
- image: macos-monterey
59+
BUILD: MinGW64
60+
61+
artifacts:
62+
- path: installer
63+
64+
clone_depth: 5
65+
66+
install:
67+
- cmd: 'ci\openssl.bat'
68+
- sh: 'sudo ci/install.sh'
69+
70+
build_script:
71+
- cmd: 'ci\build.bat'
72+
- sh: 'ci/build.sh'
73+
74+
test_script:
75+
- cmd: 'ci\test.bat'
76+
- sh: 'if [ $(uname) != Darwin ]; then ci/test.sh; fi'

.cirrus.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
env:
2+
CIRRUS_CLONE_DEPTH: 5
3+
4+
freebsd_instance:
5+
image_family: freebsd-14-0-snap
6+
image_family: freebsd-13-1
7+
image_family: freebsd-13-0
8+
9+
task:
10+
install_script: sudo ci/install.sh
11+
script: ci/build.sh

.github/workflows/buildtest.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# See also https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
2+
3+
name: Build and test
4+
5+
on: [push, pull_request]
6+
7+
jobs:
8+
build_and_test:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
mode: [regular, disable-set, mini, read-only, wolfssl]
15+
16+
env:
17+
MODE: ${{ matrix.mode }}
18+
19+
steps:
20+
- uses: actions/checkout@main
21+
22+
- name: install required packages
23+
run: sudo bash -c "MODE=$MODE ci/install.sh"
24+
25+
- name: build
26+
run: ci/build.sh
27+
28+
- name: test
29+
run: ci/test.sh

.github/workflows/codechecker.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: CodeChecker
2+
3+
on: [workflow_dispatch]
4+
#on:
5+
# push:
6+
# branches: [ master ]
7+
8+
jobs:
9+
codechecker:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: install required packages
16+
run: sudo apt-get install libatm-dev libperl-dev libpopt-dev libsensors4-dev libssh2-1-dev libxml2-dev uuid-dev libkrb5-dev python3-setuptools
17+
18+
- name: install clang v12
19+
run: |
20+
wget https://apt.llvm.org/llvm.sh
21+
chmod +x llvm.sh
22+
sudo ./llvm.sh 12
23+
sudo apt-get install clang clang-tidy
24+
25+
- name: install packages required by CodeChecker
26+
run: |
27+
sudo apt-get install doxygen gcc-multilib python-virtualenv
28+
29+
- name: install nodejs version 12.x
30+
run: |
31+
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
32+
sudo apt-get install nodejs
33+
34+
- name: install CodeChecker v6.14
35+
run: |
36+
git clone https://github.com/Ericsson/CodeChecker.git /opt/codechecker
37+
git -C /opt/codechecker/ checkout -b b6.14.0 v6.14.0
38+
make -C /opt/codechecker venv
39+
. /opt/codechecker/venv/bin/activate
40+
make -C /opt/codechecker package
41+
42+
- name: CodeChecker version
43+
run: |
44+
source /opt/codechecker/venv/bin/activate
45+
export PATH=/opt/codechecker/build/CodeChecker/bin:$PATH;
46+
CodeChecker version
47+
48+
- name: configure
49+
run: MODE=regular; ci/net-snmp-configure ${GITHUB_REF##*/}
50+
51+
- name: Codechecker log
52+
run: |
53+
source /opt/codechecker/venv/bin/activate
54+
export PATH=/opt/codechecker/build/CodeChecker/bin:$PATH
55+
CodeChecker log -o codechecker-log.json -b "make"
56+
57+
- name: Codechecker analyze
58+
run: |
59+
source /opt/codechecker/venv/bin/activate
60+
export PATH=/opt/codechecker/build/CodeChecker/bin:$PATH
61+
echo "-*/conftest.c" > codechecker.skipfile
62+
echo "-*/conftest.cpp" >> codechecker.skipfile
63+
echo "-*/tmp.*.c" >> codechecker.skipfile
64+
CodeChecker analyze -j $(nproc) --clean --skip codechecker.skipfile -o ./results --report-hash context-free-v2 codechecker-log.json
65+
#CodeChecker analyze -j $(nproc) --clean --skip codechecker.skipfile --ctu -e sensitive -o ./results --report-hash context-free-v2 codechecker-log.json
66+
67+
- name: CodeChecker parse
68+
run: |
69+
source /opt/codechecker/venv/bin/activate;
70+
export PATH=/opt/codechecker/build/CodeChecker/bin:$PATH
71+
CodeChecker parse -e html ./results -o ./reports_html
72+
73+
- name: Archive CodeChecker results
74+
uses: actions/upload-artifact@v2
75+
with:
76+
name: CodeChecker reports
77+
path: reports_html

.gitignore

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
*~
21
*.bak
32
*.bs
43
*.ft
@@ -13,7 +12,10 @@
1312
*.out
1413
*.pdb
1514
*.rej
15+
*.swp
16+
*~
1617
.libs/
18+
__pycache__
1719
agent/*.exe
1820
agent/mibgroup/agent_module_dot_conf.h
1921
agent/mibgroup/agent_module_includes.h
@@ -35,6 +37,9 @@ apps/snmpget
3537
apps/snmpgetnext
3638
apps/snmpnetstat/*.exe
3739
apps/snmpnetstat/snmpnetstat
40+
apps/snmppcap
41+
apps/snmpping
42+
apps/snmpps
3843
apps/snmpset
3944
apps/snmpstatus
4045
apps/snmptable
@@ -71,18 +76,22 @@ Makefile
7176
man/*.[1358]
7277
man/default_store.3.h
7378
man/manaliases
74-
mibs/.index
7579
mk/
7680
module_tmp_header.h
7781
net-snmp-5*
7882
net-snmp-6*
7983
net-snmp-config
8084
net-snmp-config-x
8185
net-snmp-create-v3-user
86+
netsnmp-agent.pc
87+
netsnmp.pc
8288
NEWS.new*
89+
perl/*.json
8390
perl/*.yml
8491
perl/*/*.def
92+
perl/*/*.json
8593
perl/*/*.yml
94+
perl/*/*/*.json
8695
perl/*/*/*.yml
8796
perl/agent/agent.c
8897
perl/agent/default_store/default_store.c
@@ -92,7 +101,9 @@ perl/blib/
92101
perl/default_store/default_store.c
93102
perl/NetSNMP.c
94103
perl/OID/OID.c
104+
perl/OID/snmp.conf
95105
perl/SNMP/SNMP.c
106+
perl/SNMP/snmp.conf
96107
perl/SNMP/t/*.log
97108
perl/SNMP/t/*.pid
98109
perl/SNMP/t/*.stderr
@@ -102,6 +113,8 @@ perl/TrapReceiver/const-xs.inc
102113
perl/TrapReceiver/TrapReceiver.c
103114
pm_to_blib
104115
python/build
116+
python/netsnmp_python.egg-info/
117+
python/netsnmp/client_intf.*.so
105118
sedscript
106119
snmplib/snmpsm_init.h
107120
snmplib/snmpsm_shutdown.h
@@ -110,6 +123,7 @@ stamp-h
110123
TAGS
111124
testing/failed_tests
112125
testing/testing/
126+
testing/fuzzing/
113127
win32/*/debug
114128
win32/*/release
115129
win32/bin

0 commit comments

Comments
 (0)