Update of /cvsroot/fink/experimental/thesin/finkinfo/test
In directory sc8-pr-cvs1:/tmp/cvs-serv6610
Modified Files:
noip-2.0.7-1.patch
Log Message:
Updates
Index: noip-2.0.7-1.patch
===================================================================
RCS file: /cvsroot/fink/experimental/thesin/finkinfo/test/noip-2.0.7-1.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- noip-2.0.7-1.patch 3 Mar 2003 03:53:40 -0000 1.2
+++ noip-2.0.7-1.patch 3 Mar 2003 21:33:44 -0000 1.3
@@ -24,7 +24,7 @@
- rm -f ${TGT}
diff -ruN noip-2.0.7.orig/noip2.c noip-2.0.7/noip2.c
--- noip-2.0.7.orig/noip2.c Thu Feb 27 10:49:40 2003
-+++ noip-2.0.7/noip2.c Sun Mar 2 20:48:00 2003
++++ noip-2.0.7/noip2.c Mon Mar 3 14:31:52 2003
@@ -95,11 +95,11 @@
#endif
#endif
@@ -83,3 +83,51 @@
fprintf(stderr, "Options: -C create configuration data\n");
fprintf(stderr, " -F force NAT off\n");
fprintf(stderr, " -Y select all hosts/groups\n");
+@@ -1803,7 +1805,7 @@
+
+ int fd, i, devnum=0;
+ int num_ifreq;
+- unsigned char *p, *q, *dq;
++ unsigned char *p, *tmpp, *q, *dq;
+ struct ifreq *pIfr;
+ struct ifconf Ifc;
+ static struct ifreq IfcBuf[MAX_NET_DEVS];
+@@ -1823,11 +1825,26 @@
+ dq = devs; // add new name into list
+ for (pIfr=Ifc.ifc_req,i=0; i<num_ifreq; pIfr++,i++) {
+ q = dq; // add new name into list
+- p = pIfr->ifr_name;
+- if (strcmp("lo", p) == 0)
++ tmpp = pIfr->ifr_name;
++
++ /*** strip devices with no name ***/
++ if (strlen(tmpp) <= 2) {
++ continue;
++ }
++ /*** strip localloop device ***/
++ if (strncmp("lo", tmpp, 2) == 0) {
+ continue;
+- if (strchr(p, ':') != NULL)
++ /*** strip extra Darwin devices ***/
++ } else if (strncmp("gif", tmpp, 3) == 0) {
++ continue;
++ } else if (strncmp("stf", tmpp, 3) == 0) {
++ continue;
++ }
++ /*** strip non device lines ***/
++ if (strchr(tmpp, ':') != NULL) {
+ continue;
++ }
++ p = tmpp;
+ devnum++;
+ while (*p)
+ *q++ = *p++;
+@@ -1838,6 +1855,8 @@
+ }
+ dq += LINELEN;
+ }
++ /*** return only kept values ***/
++ //devs = p;
+ return devnum;
+ }
+ /////////////////////////////////////////////////////////////////////////////
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits