summaryrefslogtreecommitdiff
path: root/dns/noip/files/patch-noip2.c
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2009-11-17 20:56:28 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2009-11-17 20:56:28 +0000
commitbfcec71ece7e7e68f13c1d68b97c569e8fec76c1 (patch)
tree7b9f94d66d742acadb661509b058f3851bd0536e /dns/noip/files/patch-noip2.c
parent- update geodb-20091101 (diff)
- Update to 2.1.9
- Take maintainership PR: 140643 Approved by: kay.abendroth@raxion.net (maintainer)
Notes
Notes: svn path=/head/; revision=244401
Diffstat (limited to 'dns/noip/files/patch-noip2.c')
-rw-r--r--dns/noip/files/patch-noip2.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/dns/noip/files/patch-noip2.c b/dns/noip/files/patch-noip2.c
index ad0fe024bb59..62399450912a 100644
--- a/dns/noip/files/patch-noip2.c
+++ b/dns/noip/files/patch-noip2.c
@@ -1,15 +1,15 @@
---- noip2.c.orig 2007-08-27 23:54:19.000000000 +0200
-+++ noip2.c 2007-12-24 12:25:18.000000000 +0100
-@@ -185,7 +185,7 @@
+--- noip2.c.orig 2009-11-17 20:23:40.000000000 +0100
++++ noip2.c 2009-11-17 20:27:45.000000000 +0100
+@@ -198,7 +198,7 @@
#define CLIENT_IP_PORT 8245
- #define VERSION "2.1.7"
+ #define VERSION "2.1.9"
-#define USER_AGENT "User-Agent: Linux-DUC/"VERSION
+#define USER_AGENT "User-Agent: FreeBSD-DUC/"VERSION
#define SETTING_SCRIPT "settings.php?"
#define USTRNG "username="
#define PWDSTRNG "&pass="
-@@ -292,7 +292,7 @@
+@@ -308,7 +308,7 @@
#define CMSG21 "Please select the Internet interface from this list.\n"
#define CMSG22 "By typing the number associated with it."
#define CMSG23 "Too many network devices. Limit is %d"
@@ -18,7 +18,7 @@
#define CMSG25 "Can't create config file (%s)"
#define CMSG25a "Re-run noip, adding '-c configfilename' as a parameter."
#define CMSG26 "Can't rename config file (%s)"
-@@ -502,7 +502,7 @@
+@@ -525,7 +525,7 @@
fprintf(stderr, "[ -d][ -D pid]");
#endif
fprintf(stderr, "[ -i addr][ -S][ -M][ -h]");
@@ -27,7 +27,7 @@
fprintf(stderr, "Options: -C create configuration data\n");
fprintf(stderr, " -F force NAT off\n");
fprintf(stderr, " -Y select all hosts/groups\n");
-@@ -2119,17 +2119,12 @@
+@@ -2316,17 +2316,14 @@
dq = (unsigned char *)devs; // point at name list
for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
if (ifa->ifa_addr->sa_family == AF_LINK) {
@@ -40,12 +40,15 @@
- || ifd->ifi_type == IFT_BRIDGE
- || ifd->ifi_type == IFT_OTHER
- || ifd->ifi_type == IFT_GIF)
-+ if (ifd->ifi_type == IFT_OTHER
-+ || ifd->ifi_type == IFT_GIF
-+ || ifd->ifi_type == IFT_LOOP
-+ || ifd->ifi_type == IFT_FAITH)
- continue;
+- continue;
-#endif
++
++ if (ifd->ifi_type == IFT_OTHER
++ || ifd->ifi_type == IFT_GIF
++ || ifd->ifi_type == IFT_LOOP
++ || ifd->ifi_type == IFT_FAITH)
++ continue;
++
q = dq; // add new name into list
p = ifa->ifa_name;
devnum++;