package frenetic

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Ip : sig ... end
type t = {
  1. dlSrc : Frenetic_kernel.Packet.dlAddr option;
  2. dlDst : Frenetic_kernel.Packet.dlAddr option;
  3. dlTyp : Frenetic_kernel.Packet.dlTyp option;
  4. dlVlan : Frenetic_kernel.Packet.dlVlan;
  5. dlVlanPcp : Frenetic_kernel.Packet.dlVlanPcp option;
  6. nwSrc : Ip.t option;
  7. nwDst : Ip.t option;
  8. nwProto : Frenetic_kernel.Packet.nwProto option;
  9. tpSrc : Frenetic_kernel.Packet.tpPort option;
  10. tpDst : Frenetic_kernel.Packet.tpPort option;
  11. inPort : portId option;
}

WARNING: There are dependencies between different fields that must be met

include Ppx_sexp_conv_lib.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val match_all : t

match_all is pattern that matches any packet

val less_eq : t -> t -> bool

less_eq p1 p2 returns true when p2 matches any packet that p1 will match

val eq : t -> t -> bool

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

val join : t -> t -> t

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

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

Innovation. Community. Security.