summaryrefslogtreecommitdiff
path: root/net/linuxigd/files/patch-gateway.cpp
diff options
context:
space:
mode:
authorClive Lin <clive@FreeBSD.org>2002-08-04 07:37:39 +0000
committerClive Lin <clive@FreeBSD.org>2002-08-04 07:37:39 +0000
commitaf66874f38783fd619cc9b725409496d06308801 (patch)
tree370e03814869f348b033aff35eef9ad8dd8ff4c6 /net/linuxigd/files/patch-gateway.cpp
parentNew port: SDK for UPnP Devices (diff)
New port: linuxigd, Linux UPnP Internet Gateway Device.
This project is a deamon that emulates Microsoft's Internet Connection Service (ICS). It implements the UPnP Internet Gateway Device specification (IGD) and allows UPnP aware clients, such as MSN Messenger to work properly from behind a NAT firewall. PR: ports/41295 Submitted by: Yen-Ming Lee <leeym@utopia.leeym.com> Submitter sponsored by: Miss WeiWei.
Notes
Notes: svn path=/head/; revision=63954
Diffstat (limited to 'net/linuxigd/files/patch-gateway.cpp')
-rw-r--r--net/linuxigd/files/patch-gateway.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/linuxigd/files/patch-gateway.cpp b/net/linuxigd/files/patch-gateway.cpp
new file mode 100644
index 000000000000..ce5f1109014d
--- /dev/null
+++ b/net/linuxigd/files/patch-gateway.cpp
@@ -0,0 +1,18 @@
+--- gateway.cpp.orig Sat May 18 05:11:23 2002
++++ gateway.cpp Sat Aug 3 22:10:54 2002
+@@ -49,6 +49,7 @@
+
+ // The global GATE object
+ Gate gate;
++char *ExtIf;
+
+ // Callback Function wrapper. This is needed because ISO forbids a pointer to a bound
+ // member function. This corrects the issue.
+@@ -140,6 +141,7 @@
+ UpnpFinish();
+ exit(1);
+ }
++ ExtIf = argv[1];
+ gate.m_ipcon = new IPCon(argv[1]);
+ syslog(LOG_DEBUG, "Registering the root device\n");
+ if ((ret = UpnpRegisterRootDevice(desc_doc_url, GateDeviceCallbackEventHandler,