nps: poci/nws_poci.c - convert ip addreses to host byte order befo...

baggins baggins at pld-linux.org
Fri Sep 9 18:40:06 CEST 2005


Author: baggins                      Date: Fri Sep  9 16:40:06 2005 GMT
Module: nps                           Tag: HEAD
---- Log message:
- convert ip addreses to host byte order befor playing with them

---- Files affected:
nps/poci:
   nws_poci.c (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: nps/poci/nws_poci.c
diff -u nps/poci/nws_poci.c:1.3 nps/poci/nws_poci.c:1.4
--- nps/poci/nws_poci.c:1.3	Fri Sep  9 18:37:44 2005
+++ nps/poci/nws_poci.c	Fri Sep  9 18:40:01 2005
@@ -931,7 +931,7 @@
     close(fd);
 
     inp.s_addr = ntohl(platIp);
-    pref = calc_minimal_prefix(spIp, platIp);
+    pref = calc_minimal_prefix(ntohl(spIp), ntohl(platIp));
     snprintf(command,BUFSIZE,"/sbin/ip address flush jnet0 ; /sbin/ip address add %s/%d", inet_ntoa(inp), pref);
 
     rc = system(command);
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/nps/poci/nws_poci.c?r1=1.3&r2=1.4&f=u




More information about the pld-cvs-commit mailing list