Skip to content

Commit

Permalink
Use the Ipaddr external library and remove the homebrew equivalent.
Browse files Browse the repository at this point in the history
This syncs direct with socket.
  • Loading branch information
avsm committed Aug 9, 2013
1 parent f535fd6 commit 369d5de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.9.4 (09-August-2013):
* Use the `Ipaddr` external library and remove the homebrew
equivalents in `Nettypes`.

0.9.3 (18-July-2013):
* Changes in module Manager: Removed some functions from the `.mli
(plug/unplug) and added some modifications in the way the Manager
Expand Down
3 changes: 2 additions & 1 deletion direct/lib/ethif.ml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ let writev t bufs =

let create netif =
let ipv4 = fun (_:Cstruct.t) -> return () in
let mac = Macaddr.of_bytes_exn (OS.Netif.mac netif) in
(* TODO: there's a race here if the MAC can change in the future *)
let mac = OS.Netif.mac netif in
let arp =
let get_mac () = mac in
let get_etherbuf () = OS.Netif.get_writebuf netif in
Expand Down

0 comments on commit 369d5de

Please sign in to comment.