miniupnpd: introduce IGDv1 variant
authorStijn Tintel <[email protected]>
Thu, 4 Feb 2021 17:16:44 +0000 (19:16 +0200)
committerStijn Tintel <[email protected]>
Thu, 4 Feb 2021 20:51:45 +0000 (22:51 +0200)
commit7f5534ac7a88124c59b23188bcdc39bd9e92d879
treeac21de6904241981de090ea4953bdf2100f62b39
parent7ec5a355d735a3ca0d5c66f9179429dc4ba87492
miniupnpd: introduce IGDv1 variant

Microsoft Windows, Xbox and possibly other operating systems do not
support IGDv2. With IGDv2 enabled, they send a HTTP GET request for
rootDesc.xml and WANIPCn.xml, and then nothing happens. The Microsoft
implementation probably doesn't like the WANIPCn.xml response and
decides UPnP is not available. When miniupnpd is built without IGDv2
support, after the 2 HTTP GET requests, there is a HTTP POST request to
/ctl/IPConn, and miniupnpd configures the port forward as expected.

The runtime option force_igd_desc_v1=yes (UCI: igvd1) does not solve
this problem. It's possible this was enough in earlier miniupnpd
versions, but it does not fix the problem the current version.

Since we are a modern distro, we want to support the latest and
greatest, so we should default to IGDv2 enabled. Introducing a
menuconfig option to disable IGDv2 would only help people who build
their own images, so offer a separate package variant for IGDv1.

Signed-off-by: Stijn Tintel <[email protected]>
net/miniupnpd/Makefile