Skip to content

Packet.tpSrc dies silently with invalid argument #10

Open
@jcollard

Description

@jcollard

While working through the Frenetic tutorial (http://frenetic-lang.github.io/tutorials/OxMonitor/) I wrote the following:

let is_http_packet (pk : Packet.packet) : bool =
  Packet.tpSrc pk = 80 && Packet.nwProto pk = 6

When a packet pk would arrive without a valid port, the controller would exit silently without saying why it was exiting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions