y500 / libtorrent

Automatically exported from code.google.com/p/libtorrent
0 stars 0 forks source link

Support for Internet Gateway Device v2 (IGD:2) spec #749

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The recent miniupnpd package update in Arch Linux is compiled with the option 
"--igd2". The problem is, it broke qbittorrent 3.2.0 port mapping feature.

The "--igd2" option seems to be "Internet Gateway Device v2 spec"[1] which 
replaced the older v1 spec, it would be nice if libtorrent could followup.

[1] http://upnp.org/specs/gw/igd2

Original issue reported on code.google.com by t27049...@gmail.com on 22 May 2015 at 5:31

GoogleCodeExporter commented 8 years ago
It's surprising that they wouldn't advertise support for version 1 as well. Do 
you know if any part of the version 1 API is unsupported by version 2?

Is it just a matter of matching version 2 as well and keep doing the same thing?

Original comment by arvid.no...@gmail.com on 23 May 2015 at 12:48

GoogleCodeExporter commented 8 years ago
> It's surprising that they wouldn't advertise support for version 1 as well
Yeah, miniupnpd made it a build option instead of a runtime option...

I haven't looked into the specs yet, just googled it, so couldn't give more 
help.
That switch should also broke utorrent (and other apps) as well, but nobody (in 
arch community) seems to be complaining...

Original comment by t27049...@gmail.com on 5 Jun 2015 at 11:02

GoogleCodeExporter commented 8 years ago
I looked into this, it seems libtorrent is hard-coded to "WANIPConnection:1" & 
"WANPPPConnection:1", these are not supported in IGD2.

In IGD2, the correct ones should be "WANIPConnection:2" & "WANPPPConnection:2" 
respectively.

You might want to detect which IGD version is in use by looking at the number 
following "InternetGatewayDevice", for example:
<root><device><deviceType>urn:schemas-upnp-org:device:InternetGatewayDevice:2

The "soap_action" currently using is supported in IGD2, so no need to change 
that.

Hope this will help.

Original comment by t27049...@gmail.com on 27 Jun 2015 at 1:57