Commit Graph

37 Commits

Author SHA1 Message Date
Thomas Bernard f3513a9c65 miniupnpcmodule.c: 2024 2024-05-09 17:11:42 +02:00
Thomas Bernard 0e9d26f163 miniupnpcmodule.c: fix typo 2024-05-09 17:09:55 +02:00
Thomas Bernard 2b4c0c5ca2
miniupnpcmodule.c: follow UPNP_GetValidIGD() changes 2024-05-09 16:01:54 +02:00
Thomas Bernard c0a50ce33e
miniupnpc: distinguish between not connected IGD and connected to a private IP
fixes #732
2024-05-08 17:37:17 +02:00
Thomas Bernard 2edbc62c50
addr_is_reserved(): debug log 2024-05-08 16:52:41 +02:00
Thomas BERNARD ecb25c3bbb
Merge pull request #723 from bozheng1988/master
upnpc: Add -f option to delete multiple port redirections
2024-05-08 15:57:54 +02:00
Hennadii Stepanov f70623c652
Fix macro expression that guards `snprintf` for Windows
Otherwise, the `snprintf` is still wrongly emulated for the following
cases:
 - mingw-w64 6.0.0 or new with ucrt
 - mingw-w64 8.0.0 or new with iso c ext
2024-04-20 16:35:06 +01:00
imEgo d0aca478d4 upnpc.c: Add -f option to upnpc program (delete multiple port redirections) 2024-04-03 20:50:56 +08:00
Thomas Bernard 85c95a463b
upnpc.c: move usage printing to a specific function
to stderr when there is an argument error.
to stdout with --help/-h
2024-01-27 00:35:03 +01:00
Thomas BERNARD c42892f387
Merge pull request #690 from Self-Hosting-Group/upnpc_fix_and_complete_check_of_the_number_of_options_required
upnpc: Fix and complete check of the number of options required
2024-01-26 01:41:25 +01:00
Self-Hosting-Group b44ab26b28 upnpc: Fix and complete check of the number of options required 2024-01-21 21:16:01 +01:00
Self-Hosting-Group 39543ed3ca miniupnpc: Exit with 1 if no UPnP devices found with upnp-listdevices 2024-01-21 21:10:59 +01:00
Self-Hosting-Group e165af32ae upnpc: Show hint to use IPv6 (option -6) for pinhole commands
Control points that have not been authenticated and authorized as defined in IGDv2 SHOULD use their IPv6 GUA when calling this action.
http://upnp.org/specs/gw/UPnP-gw-WANIPv6FirewallControl-v1-Service.pdf
2024-01-13 10:10:13 +01:00
Thomas Bernard 93b44ed36d upnpc.c: Usage: / Notes: / Options: 2024-01-08 00:09:32 +01:00
Thomas Bernard ed5b0ad4f3
upnpc.c: reformat usage 2024-01-07 23:56:24 +01:00
Thomas Bernard 78afeed634 upnpc: update printed "banner" 2024-01-07 23:55:30 +01:00
Thomas Bernard c8b2e1a619 add a comment about ignoring 713 SpecifiedArrayIndexInvalid
see #682
2024-01-04 02:56:13 +01:00
Thomas BERNARD c6fc63ead0
Merge pull request #682 from Self-Hosting-Group/upnpc_do_not_show_the_normally_occurring_error_713
upnpc: Do not show the normally occurring error 713
2024-01-04 02:53:55 +01:00
Thomas Bernard 32c0fda01c upnpc.c: 2023 => 2024 2024-01-04 01:23:27 +01:00
Thomas Bernard 3c7b8c0cc3 upnpc.c: improve usage text 2024-01-04 01:19:58 +01:00
Thomas Bernard a6aa371166
minisoap.c: Content type with charset=utf-8
UPnP Device Architecture 1.0 (3.2.1 p48)
CONTENT-TYPE
Required. Must be text/xml. Should include character coding used, which must be “utf-8”.

UPnP Device Architecture 1.1 (3.2.1 p75)
CONTENT-TYPE
REQUIRED. Field value MUST be “text/xml; charset="utf-8" ”
2024-01-04 01:13:31 +01:00
Self-Hosting-Group 847380967c upnpc: Do not show the normally occurring error 713
SpecifiedArrayIndexInvalid when listing port mappings with -l.
2024-01-01 21:36:28 +01:00
Benoit Maricau 9698973600 minissdpc.c: fix memory allocation error
No room allocated for end of strings ("\0")
2023-07-14 14:04:39 +02:00
Thomas Bernard a765292fd7
upnpc.c: Rewrite usage 2023-06-29 11:49:11 +02:00
Thomas Bernard 1865947a57 fix and complete error messages for errors 7xx 2023-06-27 01:12:36 +02:00
Thomas Bernard b557fdf4db
miniupnpc: Make User-Agent compliant. 2023-06-16 00:38:07 +02:00
Thomas Bernard 51fa714bbb
upnpc.c: proceed with UpdatePinhole for most CheckPinholeWorking errors 2023-06-12 01:18:59 +02:00
Thomas Bernard e663006e68
upnpc.c: GetListOfPortMappings NewStartPort 0 => 1
that's no point in listing port mappings with port from 0 to 65535,
1 to 65535 is OK ;)
2023-06-05 09:15:53 +02:00
Thomas Bernard 5861f92425
upnpc.c: CheckPinholeWorking is optional
Error 602 should be returned if it is not implemented

see #658
2023-05-30 00:29:15 +02:00
Thomas Bernard cd703d4cd0
upnperrors.c: add 60x errors from UPnP Device Architecture 2023-05-30 00:28:04 +02: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 51f185fd13
upnpc.c: use of @ to replace local lan address
example :
$ upnpc-static -a @ 9999 9999 TCP

fixes #532
2022-02-20 00:27:34 +01:00
Sergey Ponomarev 1479881003 minixml.c sync sources
In the commit a0573e2518
was fixed a buffer overflow in the minixml.c but it wasn't copied to upnpc-async.
To make comparison simpler the header was also synced
2022-01-27 11:29:16 +02:00
Thomas Bernard f1dc690c3d
pythonmodule: allow to specify root desc url as selectigd() argument
fixes #571
2021-11-09 19:55:22 +01:00
Thomas Bernard d61d3e6b66
miniupnpcmodules.c: #include <structmember.h>
à la place de #include "structmember.h"
2021-09-28 23:45:41 +02:00
Thomas Bernard 92b1c8198d
WIP. Reorganize src build directories 2021-08-22 23:26:04 +02:00