mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
update a few consts to openflow 1.3 - we downconvert them to the less
common 1.0 in the controller when necessary.
This commit is contained in:
parent
30e305cf4b
commit
94fbd492ca
1 changed files with 13 additions and 11 deletions
|
@ -123,29 +123,27 @@ export {
|
||||||
## from the bro openflow framework
|
## from the bro openflow framework
|
||||||
const INVALID_COOKIE = 0xffffffffffffffff;
|
const INVALID_COOKIE = 0xffffffffffffffff;
|
||||||
# Openflow pysical port definitions
|
# Openflow pysical port definitions
|
||||||
## Maximum number of physical switch ports.
|
|
||||||
const OFPP_MAX = 0xff00;
|
|
||||||
## Send the packet out the input port. This
|
## Send the packet out the input port. This
|
||||||
## virual port must be explicitly used in
|
## virual port must be explicitly used in
|
||||||
## order to send back out of the input port.
|
## order to send back out of the input port.
|
||||||
const OFPP_IN_PORT = 0xfff8;
|
const OFPP_IN_PORT = 0xfffffff8;
|
||||||
## Perform actions in flow table.
|
## Perform actions in flow table.
|
||||||
## NB: This can only be the destination port
|
## NB: This can only be the destination port
|
||||||
## for packet-out messages.
|
## for packet-out messages.
|
||||||
const OFPP_TABLE = 0xfff9;
|
const OFPP_TABLE = 0xfffffff9;
|
||||||
## Process with normal L2/L3 switching.
|
## Process with normal L2/L3 switching.
|
||||||
const OFPP_NORMAL = 0xfffa;
|
const OFPP_NORMAL = 0xfffffffa;
|
||||||
## All pysical ports except input port and
|
## All pysical ports except input port and
|
||||||
## those disabled by STP.
|
## those disabled by STP.
|
||||||
const OFPP_FLOOD = 0xfffb;
|
const OFPP_FLOOD = 0xfffffffb;
|
||||||
## All pysical ports except input port.
|
## All pysical ports except input port.
|
||||||
const OFPP_ALL = 0xfffc;
|
const OFPP_ALL = 0xfffffffc;
|
||||||
## Send to controller.
|
## Send to controller.
|
||||||
const OFPP_CONTROLLER = 0xfffd;
|
const OFPP_CONTROLLER = 0xfffffffd;
|
||||||
## Local openflow "port".
|
## Local openflow "port".
|
||||||
const OFPP_LOCAL = 0xfffe;
|
const OFPP_LOCAL = 0xfffffffe;
|
||||||
## Not associated with a pysical port.
|
## Wildcard port used only for flow mod (delete) and flow stats requests.
|
||||||
const OFPP_NONE = 0xffff;
|
const OFPP_ANY = 0xffffffff;
|
||||||
# Openflow no buffer constant.
|
# Openflow no buffer constant.
|
||||||
const OFP_NO_BUFFER = 0xffffffff;
|
const OFP_NO_BUFFER = 0xffffffff;
|
||||||
## Send flow removed message when flow
|
## Send flow removed message when flow
|
||||||
|
@ -158,6 +156,10 @@ export {
|
||||||
## when the controller is disconnected.
|
## when the controller is disconnected.
|
||||||
const OFPFF_EMERG = 0x4;
|
const OFPFF_EMERG = 0x4;
|
||||||
|
|
||||||
|
# Wildcard table used for table config,
|
||||||
|
# flow stats and flow deletes.
|
||||||
|
const OFPTT_ALL = 0xff;
|
||||||
|
|
||||||
## Openflow action_type definitions
|
## Openflow action_type definitions
|
||||||
##
|
##
|
||||||
## The openflow action type defines
|
## The openflow action type defines
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue