marionnet-dev team mailing list archive
-
marionnet-dev team
-
Mailing list archive
-
Message #00425
[Branch ~marionnet-drivers/ocamlbricks/trunk] Rev 297: Added an ipcalc-like tool in the module Ipv4:
------------------------------------------------------------
revno: 297
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: ocamlbricks
timestamp: Wed 2012-01-11 23:08:34 +0100
message:
Added an ipcalc-like tool in the module Ipv4:
# (Ipv4.String.ipcalc "192.168.101.200/22")#print ;;
Address: 192.168.101.200
Netmask: 255.255.252.0 = 22
=>
Network: 192.168.100.0/22
HostMin: 192.168.100.1
HostMax: 192.168.103.254
Broadcast: 192.168.103.255
Hosts: 1022
- : unit = ()
# (Ipv4.String.ipcalc "192.168.101.200/22")#netmask ;;
- : Ipv4.ipv4 = (255, 255, 252, 0)
# (Ipv4.String.ipcalc "192.168.101.200/22")#network ;;
- : Ipv4.ipv4 = (192, 168, 100, 0)
modified:
STRUCTURES/ipv4.ml
STRUCTURES/ipv4.mli
--
lp:ocamlbricks
https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk
Your team marionnet-dev is subscribed to branch lp:ocamlbricks.
To unsubscribe from this branch go to https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk/+edit-subscription