package albatross

  1. Overview
  2. Docs
type t
val is_root : t -> bool
val equal : t -> t -> bool
val image_file : t -> Fpath.t
val fifo_file : t -> Fpath.t
val of_list : string list -> (t, [> `Msg of string ]) result
val to_list : t -> string list
val drop : t -> t
val drop_front : t -> t
val append : string -> t -> (t, [> `Msg of string ]) result
val prepend : string -> t -> (t, [> `Msg of string ]) result
val append_exn : string -> t -> t
val concat : t -> t -> t
val root : t
val valid_label : string -> bool
val to_string : t -> string
val of_string : string -> (t, [> `Msg of string ]) result
val drop_super : super:t -> sub:t -> t option
val is_sub : super:t -> sub:t -> bool
val domain : t -> t
val pp : t Fmt.t
val block_name : t -> string -> t
val mac : t -> string -> Macaddr.t

mac t bridge outputs deterministically a mac address for t on bridge. The resulting mac address is computed as follows: as prefix, the (no longer active) 00:80:41 (VEB Kombinat Robotron) is used, the remaining three bytes are the first three bytes of the MD5 digest of bridge ^ "." ^ to_string t.

i.e., mac ["foo";"bar"] "default" = 00:80:41:1b:11:78

OCaml

Innovation. Community. Security.