Commit Graph

2151 Commits

Author SHA1 Message Date
Thomas Bernard 57ae40fe10
miniupnpd: reject AddPinhole when InternalPort or RemortePort is empty
https://miniupnp.tuxfamily.org/forum/viewtopic.php?p=5839
2023-01-28 15:49:53 +01:00
Thomas Bernard 5a003a4f56 actions/upload-artifact v2 => v3
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2023-01-28 15:12:58 +01:00
Thomas Bernard 9f244fc777 actions/checkout@v2 => actions/checkout@v3 2023-01-28 12:09:35 +01:00
Thomas Bernard d15c15bbcd codeql-action/init / analyze @v1 => @v2
https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/
2023-01-28 12:04:26 +01:00
Thomas Bernard 8ced59d384
2022 => 2023 2023-01-26 23:53:58 +01:00
Thomas Bernard ec57d80849
2022 => 2023 2023-01-26 23:49:41 +01:00
Thomas Bernard b10c247fb1
upnpc.c: prevent warning with gcc 10 and 11
src/upnpc.c:153:37: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 6 [-Wformat-truncation=]
  153 |                 snprintf(index, 6, "%d", i);
      |                                     ^~
src/upnpc.c:153:36: note: directive argument in the range [0, 2147483647]
  153 |                 snprintf(index, 6, "%d", i);
      |                                    ^~~~

Somehow the static analyser fails to recognize that 0 <= i < 65536

see #643
2023-01-26 23:44:26 +01:00
Thomas Bernard 98cc9f1b43
miniupnpd.init.d.script: also run ip6tables_init/ip6tables_removeall scripts
for support of IPv6
see https://miniupnp.tuxfamily.org/forum/viewtopic.php?t=2338
2023-01-21 13:00:03 +01:00
Thomas Bernard f4a739d730
miniupnpd version 2.3.2 2023-01-20 00:25:03 +01:00
Thomas Bernard 62e2ea175f miniupnpd/Changelog.txt: Fix NFTables again (RULE_HANDLE using more than 32 bits)
see #582
2023-01-15 18:43:09 +01:00
Thomas Bernard 904dda47ed
nftnlrdr_misc.c: replace nftnl_rule_get_data() usage with specific nftnl_rule_get_*() functions
nftnl_rule_get_u32()
nftnl_rule_get_u64()
nftnl_rule_get_str()

closes #641
should fix #582
2023-01-14 19:18:37 +01:00
Thomas Bernard 67ea8c8bc3 nftnlrdr_misc.c: debug message about proto_min_reg/proto_min_val 2023-01-14 19:16:40 +01:00
Thomas Bernard 014c9df8ee cmake use CMAKE_INSTALL_INCLUDEDIR 2023-01-04 22:49:35 +01:00
Thomas Bernard deea33c2b9 cmake: install of external-ip.sh
see #637
2023-01-04 22:48:57 +01:00
Thomas Bernard 12f7201abe cmake: install man page
fixes #637
2023-01-04 22:42:10 +01:00
Thomas Bernard b9bbab490a cmake: install listdevices / upnpc-static / upnpc-shared
see #637
2023-01-04 22:33:19 +01:00
Thomas Bernard 207cf440a2 minissdpd version 1.6.0 2022-10-22 20:44:00 +02:00
Thomas Bernard d62a36c054
minissdpd/getifaddr.c: symbolic link from ../miniupnpd/getifaddr.c 2022-10-22 20:29:30 +02:00
Thomas Bernard e5c9f72195 minissdpd: fix error message 2022-10-22 20:15:26 +02:00
scribam ea67c29b64 miniupnpc: update cmake project version 2022-10-21 23:45:35 +02:00
Thomas Bernard 7d1d8bc386
miniupnpc version 2.2.4 2022-10-21 23:05:29 +02:00
Thomas Bernard aa7e399604
miniupnpc: make test with CMake
fixes #531
2022-10-21 22:49:49 +02:00
Thomas Bernard fef6d4d17c
miniupnpc/testminiwget.sh / testupnpreplyparse.sh: allow to define executables 2022-10-21 22:45:46 +02:00
Thomas Bernard 2eecb06eb0 fix workflows triggers 2022-10-21 21:41:05 +02:00
Thomas Bernard a1535b0488 2022 2022-10-21 21:36:05 +02:00
Thomas Bernard fd62384959 miniupnpd: add option to match rules description with regex 2022-10-21 21:35:50 +02:00
yangfl 2ff8cb17da miniupnpd: Add option to match rules with regex
Some reports that a certain app is abusing UPnP for exploiting upload
bandwidth. This commit adds support to restrict UPnP rules to a regex.
By matching requester's description string against rule's regex, this
will make some obstacles for that app.
2022-10-21 21:26:39 +02:00
Thomas BERNARD 59335e4637
Merge pull request #591 from miniupnp/cmake-pkg-config
miniupnpc/CMakeLists.txt: generate and install miniupnpc.pc
2022-10-20 00:30:38 +02:00
Thomas Bernard 012c9aba47 appveyor.yml: compile for python 3.10 2022-10-17 00:48:20 +02:00
Thomas Bernard 3144201548 appveyor.yml: compile for python 3.8 2022-10-17 00:44:15 +02:00
Thomas Bernard 4d4c09f594
appveyor.yml: deploy to PyPI with twine
closes #573
2022-10-17 00:31:16 +02:00
Thomas Bernard 85a833adb8
appveyor.yml: add Python 3.6 2022-10-17 00:18:48 +02:00
Thomas Bernard 1c853a3276 SECURITY.md: miniupnpd 2.3.x 2022-10-16 08:14:06 +02:00
Thomas Bernard eb07f0c466 miniupnpd 2.3.1 2022-10-16 08:03:35 +02:00
Thomas Bernard a4e12c01c4
miniupnpd: move READNU32/WRITENU32/etc. to rw_unaligned.h 2022-10-16 07:54:38 +02:00
Thomas Bernard c13a4b15f1
upnpdescgen.c: include macros.h for UNUSED
fixes 3a2b15af4c
2022-10-16 07:43:42 +02:00
Thomas BERNARD 3f6350da6a
Merge pull request #630 from miniupnp/issue-628
fixes Issue 628 - bug on big endian
2022-10-16 07:33:19 +02:00
Thomas Bernard ac5e908881
miniupnpc/CMakeLists.txt: use project VERSION/DESCRIPTION/HOMEPAGE_URL 2022-10-15 17:36:28 +02:00
Thomas Bernard 89ac1d6bf6
miniupnpc: add URL in generated miniupnpc.pc 2022-10-15 17:29:40 +02:00
Thomas Bernard 9350846757
miniupnpc: add Homepage url, version and desc in miniupnpc.pc generated by CMake build 2022-10-15 17:29:40 +02:00
Thomas Bernard 5a398006b9
miniupnpc/CMakeLists.txt: generate and install miniupnpc.pc
fixes #574
2022-10-15 17:29:39 +02:00
Thomas Bernard 3a2b15af4c
miniupnpd: fix warnings when compiling with IGD_V2 disabled
fixes #617

./upnpdescgen.c:946:1: warning: unused label 'unstack' [-Wunused-label]
unstack:
^~~~~~~~
./upnpdescgen.c:891:12: warning: unused parameter 'force_igd1' [-Wunused-parameter]
       int force_igd1)
           ^
./upnpdescgen.c:1035:61: warning: unused parameter 'force_igd1' [-Wunused-parameter]
genServiceDesc(int * len, const struct serviceDesc * s, int force_igd1)
                                                            ^
3 warnings generated.
2022-10-15 13:09:36 +02:00
Thomas Bernard df04310d39 Brian John 2022-10-11 07:51:44 +02:00
Thomas Bernard 61127ca0be
nftnlrdr_misc.c: expr_set_reg_val_u16() has uint16_t arg 2022-10-10 02:33:04 +02:00
Thomas Bernard 890e4ec218
nftnlrdr_misc.c: fix parse_rule_immediate()
so it works correctly on both little endian and big endian CPUs
should fix #628
2022-10-10 02:32:58 +02:00
Thomas Bernard 8bbe1c1339 remove useless UNUSED() 2022-10-10 01:23:26 +02:00
Thomas BERNARD 1de377faf6
Merge pull request #624 from mmyjona/master
fix netbsd build
2022-09-17 18:16:42 +02:00
mmyjona 72d3183e2d
fix netbsd build 2022-09-15 04:51:57 -07:00
fanquake b62ae38f3c
build: use lowercase x in _WIN32_WINNT define
For consistency with all other usages of `_WIN32_WINNT` throughout the
code, and to match the mingw-w64 headers.
2022-09-10 10:44:30 +01:00
Thomas BERNARD 68c8ec508a
Merge pull request #621 from fanquake/mingw_clean_distfile
build: add distfile to miniupnpc make clean target
2022-08-31 22:46:35 +02:00