The network IP and the broadcast address are usually determined by your IT 
department if they are static addresses or automatically assigned by the DHCP 
server on your network, if one is present. 
 
Robert Wolfe, MCSE/RHCE,
Survey Research and Data Acquisition Resource
Department of Health Behavior; Roswell Park Cancer Institute
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

________________________________

From: [EMAIL PROTECTED] on behalf of TOUZEAU DAVID
Sent: Thu 10/12/2006 9:46 AM
To: fpc-pascal@lists.freepascal.org
Subject: [fpc-pascal] [NETWORK - LINUX ]: Calculate broadcast - network



<message>
</message>
Dear

I develop a tool that change the network settings in /etc/network/interfaces

the config file must be
iface eth0 inet static
         address 192.168.xx.xx
         netmask 255.255.255.0
         network 192.168.xx.0
         broadcast 192.168.xx.255
         gateway 192.168.xx.xx


In this case when user type 10.1.1.2 and 255.255.0.0 i need to calculate
the network address and broadcast.

Where can i found a function that return the good answer ? Is there
somebody has developped a such function ?




--

David Touzeau -------------------------- Linux Ubuntu Dapper 6.0.6
FreePascal-Lazarus,perl,delphi,php icq:160018849
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




This email message may contain legally privileged and/or confidential 
information.  If you are not the intended recipient(s), or the employee or 
agent responsible for the delivery of this message to the intended 
recipient(s), you are hereby notified that any disclosure, copying, 
distribution, or use of this email message is prohibited.  If you have received 
this message in error, please notify the sender immediately by e-mail and 
delete this email message from your computer. Thank you.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to