[fpc-pascal] [NETWORK - LINUX ]: Calculate broadcast - network
    TOUZEAU DAVID 
    david.touzeau at fr.kaspersky.com
       
    Thu Oct 12 15:46:50 CEST 2006
    
    
  
<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
    
    
More information about the fpc-pascal
mailing list