package albatross

  1. Overview
  2. Docs

Module Vmm_core.NameSource

Sourcemodule Label : sig ... end
Sourcemodule Path : sig ... end
Sourcetype t
Sourceval equal : t -> t -> bool
Sourceval pp : t Fmt.t
Sourceval path : t -> Path.t
Sourceval name : t -> Label.t option
Sourceval make : Path.t -> Label.t -> t
Sourceval make_of_path : Path.t -> t
Sourceval drop_prefix_exn : t -> Path.t -> t
Sourceval drop_path : t -> t
Sourceval drop_label : t -> t
Sourceval to_labels : t -> Label.t list
Sourceval to_list : t -> string list
Sourceval of_list : string list -> (t, [> `Msg of string ]) result
Sourceval to_string : t -> string
Sourceval of_string : string -> (t, [> `Msg of string ]) result
Sourceval root : t
Sourceval is_root : t -> bool
Sourceval image_file : t -> Fpath.t
Sourceval fifo_file : t -> Fpath.t
Sourceval block_name : t -> string -> t
Sourceval 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