package frenetic

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Ip : sig ... end
type t = {
  1. dlSrc : Packet.dlAddr option;
  2. dlDst : Packet.dlAddr option;
  3. dlTyp : Packet.dlTyp option;
  4. dlVlan : Packet.dlVlan;
  5. dlVlanPcp : Packet.dlVlanPcp option;
  6. nwSrc : Ip.t option;
  7. nwDst : Ip.t option;
  8. nwProto : Packet.nwProto option;
  9. tpSrc : Packet.tpPort option;
  10. tpDst : 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 : Format.formatter -> t -> unit
val string_of : t -> string