Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 831651 Details for
Bug 881029
net-misc/autoupnp: Support specifying the interface to use
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to support sperifying the interface to use via `getenv`
IF_envvar.patch (text/plain), 1.12 KB, created by
A Schenck
on 2022-11-11 21:56:34 UTC
(
hide
)
Description:
Patch to support sperifying the interface to use via `getenv`
Filename:
MIME Type:
Creator:
A Schenck
Created:
2022-11-11 21:56:34 UTC
Size:
1.12 KB
patch
obsolete
>diff -ur autoupnp-0.4.7.orig/autoupnp autoupnp-0.4.7/autoupnp >--- autoupnp-0.4.7.orig/autoupnp 2022-11-11 13:49:46.091888980 -0800 >+++ autoupnp-0.4.7/autoupnp 2022-11-11 13:52:46.491693433 -0800 >@@ -15,6 +15,10 @@ > to export AutoUPnP LD_PRELOAD to the currently running shell. > eval "\$(autoupnp off)" > to remove AutoUPnP from LD_PRELOAD in the currently running shell. >+ >+If the AUTOUPNP_IF environment var is specified, that named interface will >+be used for discovering UPnP devices which will subsequently be used for >+forwarding. > _EOF_ > } > >diff -ur autoupnp-0.4.7.orig/src/upnp.c autoupnp-0.4.7/src/upnp.c >--- autoupnp-0.4.7.orig/src/upnp.c 2022-11-11 13:49:46.098555638 -0800 >+++ autoupnp-0.4.7/src/upnp.c 2022-11-11 13:50:18.241851128 -0800 >@@ -58,7 +58,7 @@ > #endif > if (!igd_set_up) { > #if MINIUPNPC_API_VERSION >= 14 >- struct UPNPDev* devlist = upnpDiscover(discovery_delay, NULL, NULL, 0, 0, 2, NULL); >+ struct UPNPDev* devlist = upnpDiscover(discovery_delay, getenv("AUTOUPNP_IF"), NULL, 0, 0, 2, NULL); > #elif MINIUPNPC_API_VERSION >= 8 > struct UPNPDev* devlist = upnpDiscover(discovery_delay, NULL, NULL, 0, 0, NULL); > #else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 881029
: 831651