Lines 1-15
Link Here
|
1 |
--- noip2.c.orig 2007-08-27 23:54:19.000000000 +0200 |
1 |
--- noip2.c.orig 2009-11-17 20:23:40.000000000 +0100 |
2 |
+++ noip2.c 2007-12-24 12:25:18.000000000 +0100 |
2 |
+++ noip2.c 2009-11-17 20:27:45.000000000 +0100 |
3 |
@@ -185,7 +185,7 @@ |
3 |
@@ -198,7 +198,7 @@ |
4 |
#define CLIENT_IP_PORT 8245 |
4 |
#define CLIENT_IP_PORT 8245 |
5 |
|
5 |
|
6 |
#define VERSION "2.1.7" |
6 |
#define VERSION "2.1.9" |
7 |
-#define USER_AGENT "User-Agent: Linux-DUC/"VERSION |
7 |
-#define USER_AGENT "User-Agent: Linux-DUC/"VERSION |
8 |
+#define USER_AGENT "User-Agent: FreeBSD-DUC/"VERSION |
8 |
+#define USER_AGENT "User-Agent: FreeBSD-DUC/"VERSION |
9 |
#define SETTING_SCRIPT "settings.php?" |
9 |
#define SETTING_SCRIPT "settings.php?" |
10 |
#define USTRNG "username=" |
10 |
#define USTRNG "username=" |
11 |
#define PWDSTRNG "&pass=" |
11 |
#define PWDSTRNG "&pass=" |
12 |
@@ -292,7 +292,7 @@ |
12 |
@@ -308,7 +308,7 @@ |
13 |
#define CMSG21 "Please select the Internet interface from this list.\n" |
13 |
#define CMSG21 "Please select the Internet interface from this list.\n" |
14 |
#define CMSG22 "By typing the number associated with it." |
14 |
#define CMSG22 "By typing the number associated with it." |
15 |
#define CMSG23 "Too many network devices. Limit is %d" |
15 |
#define CMSG23 "Too many network devices. Limit is %d" |
Lines 18-24
Link Here
|
18 |
#define CMSG25 "Can't create config file (%s)" |
18 |
#define CMSG25 "Can't create config file (%s)" |
19 |
#define CMSG25a "Re-run noip, adding '-c configfilename' as a parameter." |
19 |
#define CMSG25a "Re-run noip, adding '-c configfilename' as a parameter." |
20 |
#define CMSG26 "Can't rename config file (%s)" |
20 |
#define CMSG26 "Can't rename config file (%s)" |
21 |
@@ -502,7 +502,7 @@ |
21 |
@@ -525,7 +525,7 @@ |
22 |
fprintf(stderr, "[ -d][ -D pid]"); |
22 |
fprintf(stderr, "[ -d][ -D pid]"); |
23 |
#endif |
23 |
#endif |
24 |
fprintf(stderr, "[ -i addr][ -S][ -M][ -h]"); |
24 |
fprintf(stderr, "[ -i addr][ -S][ -M][ -h]"); |
Lines 27-33
Link Here
|
27 |
fprintf(stderr, "Options: -C create configuration data\n"); |
27 |
fprintf(stderr, "Options: -C create configuration data\n"); |
28 |
fprintf(stderr, " -F force NAT off\n"); |
28 |
fprintf(stderr, " -F force NAT off\n"); |
29 |
fprintf(stderr, " -Y select all hosts/groups\n"); |
29 |
fprintf(stderr, " -Y select all hosts/groups\n"); |
30 |
@@ -2119,17 +2119,12 @@ |
30 |
@@ -2316,17 +2316,14 @@ |
31 |
dq = (unsigned char *)devs; // point at name list |
31 |
dq = (unsigned char *)devs; // point at name list |
32 |
for (ifa = ifap; ifa; ifa = ifa->ifa_next) { |
32 |
for (ifa = ifap; ifa; ifa = ifa->ifa_next) { |
33 |
if (ifa->ifa_addr->sa_family == AF_LINK) { |
33 |
if (ifa->ifa_addr->sa_family == AF_LINK) { |
Lines 40-51
Link Here
|
40 |
- || ifd->ifi_type == IFT_BRIDGE |
40 |
- || ifd->ifi_type == IFT_BRIDGE |
41 |
- || ifd->ifi_type == IFT_OTHER |
41 |
- || ifd->ifi_type == IFT_OTHER |
42 |
- || ifd->ifi_type == IFT_GIF) |
42 |
- || ifd->ifi_type == IFT_GIF) |
43 |
+ if (ifd->ifi_type == IFT_OTHER |
43 |
- continue; |
44 |
+ || ifd->ifi_type == IFT_GIF |
|
|
45 |
+ || ifd->ifi_type == IFT_LOOP |
46 |
+ || ifd->ifi_type == IFT_FAITH) |
47 |
continue; |
48 |
-#endif |
44 |
-#endif |
|
|
45 |
+ |
46 |
+ if (ifd->ifi_type == IFT_OTHER |
47 |
+ || ifd->ifi_type == IFT_GIF |
48 |
+ || ifd->ifi_type == IFT_LOOP |
49 |
+ || ifd->ifi_type == IFT_FAITH) |
50 |
+ continue; |
51 |
+ |
49 |
q = dq; // add new name into list |
52 |
q = dq; // add new name into list |
50 |
p = ifa->ifa_name; |
53 |
p = ifa->ifa_name; |
51 |
devnum++; |
54 |
devnum++; |