[prev in list] [next in list] [prev in thread] [next in thread]
List: ipcop-svn
Subject: [Ipcop-svn] SF.net SVN: ipcop:[3499]
From: owes () users ! sourceforge ! net
Date: 2009-08-27 13:16:23
Message-ID: E1Mgepz-00043b-Vl () 74yxhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Revision: 3499
http://ipcop.svn.sourceforge.net/ipcop/?rev=3499&view=rev
Author: owes
Date: 2009-08-27 13:16:23 +0000 (Thu, 27 Aug 2009)
Log Message:
-----------
Drop calculation of broadcast and writing of _BROADCAST setting.
Modified Paths:
--------------
ipcop/trunk/src/installer/helper_newt.c
Modified: ipcop/trunk/src/installer/helper_newt.c
===================================================================
--- ipcop/trunk/src/installer/helper_newt.c 2009-08-27 13:14:54 UTC (rev 3498)
+++ ipcop/trunk/src/installer/helper_newt.c 2009-08-27 13:16:23 UTC (rev 3499)
@@ -262,27 +262,19 @@
unsigned long int intaddress;
unsigned long int intnetaddress;
unsigned long int intnetmask;
- unsigned long int intbroadcast;
struct in_addr i_addr;
char *netaddress;
- char *broadcast;
update_kv(ð_kv, addresskey, (char *) addressresult);
update_kv(ð_kv, netmaskkey, (char *) netmaskresult);
/* calculate netaddress */
intaddress = inet_addr(addressresult);
intnetmask = inet_addr(netmaskresult);
- /* calculate broadcast */
intnetaddress = intaddress & intnetmask;
i_addr.s_addr = intnetaddress;
netaddress = inet_ntoa(i_addr);
update_kv(ð_kv, netaddresskey, (char *) netaddress);
- intbroadcast = intnetaddress | ~intnetmask;
- i_addr.s_addr = intbroadcast;
- broadcast = inet_ntoa(i_addr);
- update_kv(ð_kv, broadcastkey, (char *) broadcast);
-
changed_config = 1;
*changed_flag = 1;
}
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic