package frenetic

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Pattern.IpSource

Sourcetype t = Packet.nwAddr * int32
include Ppx_sexp_conv_lib.Sexpable.S with type t := t
Sourceval t_of_sexp : Sexplib0__.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0__.Sexp.t
Sourceval match_all : t

match_all is pattern that matches any address

Sourceval less_eq : t -> t -> bool

less_eq x1 x2 returns true when x2 matches any address that x1 will match

Sourceval eq : t -> t -> bool

eq p1 p2 returns true when p1 and p2 match the same set of addresses

Sourceval join : t -> t -> t

join p1 p2 is the least pattern pm such that less_eq p1 pm and less_eq p2 pm

Sourceval intersect : t -> t -> t option

intersect x1 x2 returns the intersection of when x1 and x2

Sourceval compatible : t -> t -> bool

compatible x1 x2 returns true when x1 and x2 have a non-empty intersection

Sourceval shift : t -> int32

ip_shift x returns an int32 after shifting x by its mask

Sourceval format : Format.formatter -> t -> unit
Sourceval string_of : t -> string
OCaml

Innovation. Community. Security.