nettle-openflow-0.2.0: OpenFlow protocol messages, binary formats, and servers.




data Match Source

Each flow entry includes a match, which essentially defines packet-matching condition. Fields that are left Nothing are wildcards.


matchAny :: MatchSource

A match that matches every packet.

isExactMatch :: Match -> BoolSource

Return True if given Match represents an exact match, i.e. no wildcards and the IP addresses' prefixes cover all bits.

getExactMatch :: PortID -> Get MatchSource

Utility function to get an exact match corresponding to a packet (as given by a byte sequence).

matches :: (PortID, EthernetFrame) -> Match -> BoolSource

Models the match semantics of an OpenFlow switch.