package
0.0.0-20200319171453-882ba6d92cbc
Repository: https://github.com/wenyingd/libopenflow.git
Documentation: pkg.go.dev

# Functions

Decode Action types.
No description provided by the author
No description provided by the author
No description provided by the author
FindFieldHeaderByName finds OXM/NXM field by name and mask.
No description provided by the author
No description provided by the author
Returns a new Action Output message which sends packets out port number.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Return a MatchField for arp operation type matching.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Create a new Bucket.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Echo request/reply messages can be sent from either the switch or the controller, and must return an echo reply.
Echo request/reply messages can be sent from either the switch or the controller, and must return an echo reply.
No description provided by the author
Return a MatchField for ethernet dest addr.
Return a MatchField for ethernet src addr.
Return a MatchField for ethertype matching.
FeaturesReply constructor.
FeaturesRequest constructor.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Create a new group mode message.
Return a MatchField for Input port matching.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Return a MatchField for ipv4/ipv6 dscp.
Return a MatchField for ipv4 protocol.
Return a MatchField for ipv4 dest addr.
Return a MatchField for ipv4 src addr.
Return a MatchField for ipv6 dest addr.
Return a MatchField for ipv6 src addr.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Return a MatchField for tunnel id matching.
Return a MatchField for mpls Bos matching.
Return a MatchField for mpls Label matching.
NewNXActionConjunction creates NXActionConjunction, the action in flow entry is like conjunction(ID, Clause/nclause).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewNXRange creates a NXRange using start and end number.
NewNXRangeByOfsNBits creates a NXRange using offshift and bit count.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SCTP_DST field.
SCTP_DST field.
No description provided by the author
No description provided by the author
TCP_DST field.
Return a tcp flags field.
TCP_SRC field.
Return a MatchField for tunel id matching.
Return a MatchField for tunnel ipv4 dst addr.
Return a MatchField for tunnel ipv4 src addr.
UDP_DST field.
UDP_SRC field.
Return a MatchField for vlan id matching.
No description provided by the author
ParseBundleError returns error according to bundle error code.

# Constants

ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_action_type 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
ofp_bad_action_code 1.3.
Unsupported, unknown or inconsistent flags.
Bundle ID doesn't exist.
Unsupported or unknown message control type.
Bundle ID is closed.
Bundle ID already exist.
Bundle is locking the resource.
Permissions error.
Length problem in included message.
Inconsistent or duplicate XID.
Unsupported message combination in this bundle.
One message in bundle failed.
Can't handle this many messages in bundle.
Unsupported message in this bundle.
Too many bundle IDs.
Bundle is taking too long.
Unspecified error.
Unknown instruction for experimenter id.
Unknown experimenter id specified.
Length problem in instructions.
Invalid Table-ID specified.
Permissions error.
Unknown instruction.
Switch or table does not support the instruction.
Metadata value unsupported by datapath.
Metadata mask value unsupported by datapath.
Unsupported datalink addr mask - switch does not support arbitrary datalink address mask.
Unsupported field type in the match.
Length problem in match.
Unsupported mask specified in the match, field is not dl-address or nw-address.
Unsupported network addr mask - switch does not support arbitrary network address mask.
A prerequisite was not met.
Match uses an unsupported tag/encap.
Unsupported match type specified by the match */.
Unsupported value in a match field.
Unsupported combination of fields masked or omitted in the match.
A field type was duplicated.
Permissions error.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_bad_request_code 1.3.
ofp_capabilities 1.3.
ofp_config_flags 1.3.
ofp_config_flags 1.3.
ofp_config_flags 1.3.
ofp_config_flags 1.3.
ofp_capabilities 1.3.
ofp_capabilities 1.3.
ofp_capabilities 1.3.
ofp_capabilities 1.3.
ofp_capabilities 1.3.
ofp_capabilities 1.3.
ofp_capabilities 1.3.
No description provided by the author
Error in action description.
Error in instruction list.
Request was not understood.
Experimenter error messages.
Problem modifying flow entry.
Problem modifying group entry.
Hello protocol failed.
Error in meter.
Port mod request failed.
Queue operation failed.
Controller Role request failed.
Setting table features failed.
Table mod request failed.
No description provided by the author
OFPFC_ADD = 0.
ofp_flow_mod_command 1.3.
ofp_flow_mod_command 1.3.
ofp_flow_mod_command 1.3.
ofp_flow_mod_command 1.3.
Check for overlapping entries first */.
Don’t keep track of byte count */.
Don’t keep track of packet count */.
Reset flow packet and byte counts */.
Send flow removed message when flow expires or is deleted.
Unsupported or unknown command.
Unsupported or unknown flags.
Table does not exist */.
Flow not added because of unsupported idle/hard timeout.
Permissions error.
Attempted to add overlapping flow with CHECK_OVERLAP flag set.
Flow not added because table was full.
Unspecified error.
Error in bucket.
Unsupported or unknown command.
Unsupported or unknown group type.
Error in watch port/group.
Group not deleted because another group is forwarding to it.
Switch does not support groups that forward to groups.
Permissions error.
Group not added because a group ADD attempted to replace an already-present group.
Group not added because Group specified is invalid.
Group entry would cause a loop.
The maximum number of action buckets for a group has been exceeded.
The group table is full.
Group not modified because a group MODIFY attempted to modify a non-existent group.
This group cannot watch the watch_port or watch_group specified.
Switch does not support unequal load 105 ➞ 2013; The Open Networking Foundation OpenFlow Switch Specification Version 1.3.3 sharing with select groups.
ofp_hello_failed_code 1.3.
ofp_hello_failed_code 1.3.
Applies the action(s) immediately */.
Clears all actions from the datapath action set */.
Experimenter instruction */.
Setup the next table in the lookup pipeline */.
Apply meter (rate limiter) */.
Write the action(s) onto the datapath action set */.
Setup the metadata field for use later in pipeline */.
NX_LEARN field offset.
NX_LEARN field offset.
ofp_match_type 1.3.
Deprecated.
No description provided by the author
No description provided by the author
Aggregate flow statistics.
Description of this OpenFlow switch.
Experimenter extension.
Individual flow statistics.
Group counter statistics.
Group description.
Group features.
Meter statistics.
Meter configuration.
Meter features.
Port statistics.
Port description.
Queue statistics for a port * The request body is struct _queue_stats_request.
Flow table statistics.
Table features.
NX_CT Flags.
NX_CT Flags.
NX_CT Flags.
NX_CT_STATES.
NX_CT_STATES.
NX_CT_STATES.
NX_CT_STATES.
NX_CT_STATES.
NX_CT_STATES.
NX_CT_STATES.
NX_CT_STATES.
NX_LEARN flags.
NX_LEARN flags.
NX_LEARN flags.
NX_NAT flags.
NX_NAT flags.
NX_NAT flags.
NX_NAT flags.
NX_NAT flags.
NX_NAT flags.
NX_NAT_RANGE flags.
NX_NAT_RANGE flags.
NX_NAT_RANGE flags.
NX_NAT_RANGE flags.
NX_NAT_RANGE flags.
NX_NAT_RANGE flags.
Length of Nicira extension message header.
Nicira extended action: multipath.
Nicira extended action: bundle.
Nicira extended action: bundle_load.
Nicira extended action: conjunction.
Nicira extended action: fin_timeout.
Nicira extended action: controller(userdata=xxx,pause).
Nicira extended action: ct.
Nicira extended action: ct_clear.
Nicira extended action: resubmit to table in ct.
Nicira extended action: set_mpls_ttl.
Nicira extended action: dec_nsh_ttl.
Nicira extended action: dec_ttl.
Nicira extended action: dec_ttl(id1,[id2]...).
Nicira extended action: drop spoofed arp packets.
Nicira extended action: exit.
Nicira extended action: output:field.
Nicira extended action: learn.
Nicira extended action: set_tunnel.
Nicira extended action: nat, need to be along with ct action.
Nicira extended action: note.
Nicira extended action: output:field.
Nicira extended action: output(port=port,max_len).
Nicira extended action: truncate output action.
Nicira extended action: pop_mpls.
Nicira extended action: pop_tunnel.
Nicira extended action: push_mpls.
Nicira extended action: decap.
Nicira extended action: encap.
Nicira extended action: load:data->dstField[m..n].
Nicira extended action: load.
Nicira extended action: move:srcField[m1..n1]->dstField[m2..n2].
Nicira extended action: resubmit(port).
Nicira extended action: resubmit(port, table).
Nicira extended action: sample.
Nicira extended action: sample, support for exporting egress tunnel.
Nicira extended action: set_mpls_label.
Nicira extended action: set_mpls_tc.
Nicira extended action: set_mpls_ttl.
Nicira extended action: set_queue.
Nicira extended action: set_tunnel.
Nicira extended action: set_tunnel64.
Nicira extended action: pop:dst.
Nicira extended action: push:src.
Vendor ID for Nicira extension messages.
nicira extension: arp_sha, ARP Source Ethernet Address */.
nicira extension: arp_tha, ARP Target Ethernet Address */.
nicira extension: conj_id, conjunction ID for conjunctive match */.
nicira extension: ct_label for conn_track */.
nicira extension: ct_mark for conn_track */.
nicira extension: ct_state for conn_track */.
nicira extension: ct_zone for conn_track */.
No description provided by the author
nicira extension: icmpv6_code, ICMPv6 code */.
nicira extension: icmpv6_type, ICMPv6 type */.
nicira extension: nw_ecn, TOS byte with DSCP bits cleared to 0 */.
nicira extension: ip_frag, IP fragments */.
nicira extension: nw_ttl, time-to-live field */.
nicira extension: tun_ipv6_src, IPv6 destination address */.
nicira extension: ipv6_label, least 20 bits hold flow label from IPv6 header, others are zero*/.
nicira extension: tun_ipv6_src, IPv6 source address */.
nicira extension: mpls_ttl, time-to-live field from MPLS label */.
nicira extension: nd_sll, ICMPv6 neighbor discovery source ethernet address*/.
nicira extension: nd_target, ICMPv6 neighbor discovery source ethernet address*/.
nicira extension: nd_tll, ICMPv6 neighbor discovery target ethernet address */.
nicira extension: pkg_mark, packet mark from Linux kernal */.
nicira extension: recirc_id, used with ct */.
nicira extension: reg0 */.
nicira extension: reg1 */.
nicira extension: reg10 */.
nicira extension: reg11 */.
nicira extension: reg12 */.
nicira extension: reg13 */.
nicira extension: reg14 */.
nicira extension: reg15 */.
nicira extension: reg2 */.
nicira extension: reg3 */.
nicira extension: reg4 */.
nicira extension: reg5 */.
nicira extension: reg6 */.
nicira extension: reg7 */.
nicira extension: reg8 */.
nicira extension: reg9 */.
nicira extension: tcp_flags */.
nicira extension: tunnel Flags */.
nicira extension: tun_gbp_flags, GBP policy Flags*/.
nicira extension: tun_gbp_id, GBP policy ID */.
nicira extension: tun_id, VNI */.
nicira extension: tun_dst, dst IPv4 address of tunnel */.
nicira extension: tun_src, src IPv4 address of tunnel */.
nicira extension: tun_dst_ipv6, src IPv6 address of tunnel */.
nicira extension: tun_dst_ipv6, dst IPv6 address of tunnel */.
nicira extension: tun_metadata for Geneve header variable data */.
nicira extension: tun_metadata, for Geneve header variable data */.
nicira extension: tun_metadata, for Geneve header variable data */.
nicira extension: tun_metadata for Geneve header variable data */.
nicira extension: tun_metadata, for Geneve header variable data */.
nicira extension: tun_metadata, for Geneve header variable data */.
nicira extension: tun_metadata, for Geneve header variable data */.
nicira extension: tun_metadata, for Geneve header variable data */.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
NXM_OF fields.
Bundle control flags.
Bundle control types.
Bundle control types.
Bundle control types.
Bundle control types.
Bundle control types.
Bundle control types.
Bundle control types.
Bundle control types.
Bundle control flags.
Bundle property types.
maximum max_len value which can be used to request a specific byte length.
indicates that no buffering should be applied and the whole packet is to be sent to the controller.
Represents all groups for group delete commands.
Wildcard group used only for flow stats requests.
Last usable group number.
New group.
Delete all matching groups.
Modify all matching groups.
All (multicast/broadcast) group.
Fast failover group.
Indirect group.
Select group.
More replies to follow.
More requests to follow.
OFPP_IN_PORT is the default number of in_port field in resubmit actions.
Wildcard table used for table config, flow stats and flow deletes.
No description provided by the author
No VLAN id was set.
Bit that indicate that a VLAN id is set */.
ONF Experimenter ID */.
Experimenter class */.
Backward compatibility with NXM */.
Backward compatibility with NXM */.
Basic class for OpenFlow */.
ARP opcode.
ARP source hardware address.
ARP source IPv4 address.
ARP target hardware address.
ARP target IPv4 address.
Ethernet destination address.
Ethernet source address.
Ethernet frame type.
ICMP code.
ICMP type.
ICMPv6 code.
ICMPv6 type.
Switch physical input port.
Switch input port.
IP DSCP (6 bits in ToS field).
IP ECN (2 bits in ToS field).
IP protocol.
IPv4 destination address.
IPv4 source address.
IPv6 destination address.
IPv6 Extension Header pseudo-field */.
IPv6 Flow Label */.
Source link-layer for ND.
Target address for ND.
Target link-layer for ND.
IPv6 source address.
Metadata passed between tables.
MPLS BoS bit.
MPLS label.
MPLS TC.
PBB I-SID.
PBB UCA header field (from OpenFlow 1.4) */.
SCTP destination port.
SCTP source port.
TCP destination port.
TCP flags (from OpenFlow 1.5) */.
TCP source port.
Logical Port Metadata.
UDP destination port.
UDP source port.
VLAN priority.
VLAN id.
ofp_port_no 1.3.
ofp_port_no 1.3.
ofp_port_no 1.3.
ofp_port_no 1.3.
ofp_port_no 1.3.
ofp_port_no 1.3.
ofp_port_no 1.3.
ofp_port_no 1.3.
ofp_port_no 1.3.
ofp_port_config 1.3.
ofp_port_config 1.3.
ofp_port_config 1.3.
ofp_port_config 1.3.
Error in match.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_features 1.3.
ofp_port_mod_failed_code 1.0.
ofp_port_mod_failed_code 1.0.
ofp_port_mod_failed_code 1.0.
ofp_port_mod_failed_code 1.0.
ofp_port_mod_failed_code 1.0.
ofp_port_reason 1.0.
ofp_port_reason 1.0.
ofp_port_reason 1.0.
ofp_port_state 1.3.
ofp_port_state 1.3.
ofp_port_state 1.3.
ofp_queue_op_failed_code 1.0.
ofp_queue_op_failed_code 1.0.
ofp_queue_op_failed_code 1.0.
Action explicitly output to controller.
Packet has invalid TTL */.
No matching flow (table-miss flow entry).
Evicted by a DELETE flow mod.
Group was removed.
Time exceeded hard_timeout.
Flow idle time exceeded idle_timeout.
No description provided by the author
Specified config is invalid.
Specified table does not exist.
Permissions error.
ofp_type 1.3.
Barrier messages.
Bundle message types.
Bundle message types.
ofp_type 1.3.
ofp_type 1.3.
ofp_type 1.3.
ofp_type 1.3.
ofp_type 1.3.
Switch configuration messages.
ofp_type 1.3.
ofp_type 1.3.
ofp_type 1.3.
Asynchronous message configuration.
ofp_type 1.3.
ofp_type 1.3.
ofp_type 1.3.
Immutable messages.
Meters and rate limiters configuration messages.
ofp_type 1.3.
Multipart messages.
Asynchronous messages.
Controller command messages.
ofp_type 1.3.
ofp_type 1.3.
ofp_type 1.3.
Queue Configuration messages.
ofp_type 1.3.
Controller role change request messages.
ofp_type 1.3.
ofp_type 1.3.
ofp_type 1.3.
No description provided by the author

# Variables

Returns a new OpenFlow header with version field set to v1.3.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Action structure for OFPAT_OUTPUT, which sends packets out ’port’.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ofp_aggregate_stats_reply 1.3.
ofp_aggregate_stats_request 1.3.
ARP Oper type field.
ARP Host Address field message, used by arp_sha and arp_tha match.
ARP Protocol Address field message, used by arp_spa and arp_tpa match.
No description provided by the author
BundleAdd is a message to add supported message in the opened bundle.
BundleControl is a message to control the bundle.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ofp_desc_stats 1.3.
BEGIN: ofp13 - 7.4.4 ofp_error_msg 1.3.
ETH_DST field.
ETH_SRC field.
ETH_TYPE field.
ofp_flow_mod 1.3.
BEGIN: ofp13 - 7.4.2.
ofp_flow_stats 1.3.
ofp_flow_stats_request 1.3.
GroupMod message.
IN_PORT field.
*_ACTION instructions.
No description provided by the author
Generic instruction header.
No description provided by the author
No description provided by the author
IP_DSCP field.
IP_PROTO field.
IPV4_DST field.
IPV4_SRC field.
IPV6_DST field.
IPV6_SRC field.
ofp_match 1.3.
One match field TLV.
METADATA field.
MplsBos field.
MplsLabel field.
ofp_multipart_reply 1.3.
ofp_multipart_request 1.3.
NXActionConjunction is NX action to configure conjunctive match flows.
NXActionConnTrack is NX action for conntrack.
NXActionCTNAT is NX action to set NAT in conntrack.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NXActionOutputReg is NX action to output to a field with a specified range.
NXActionRegLoad is NX action to load data to a specified field.
NXActionRegMove is NX action to move data from srcField to dstField.
NXActionResubmit is NX action to resubmit packet to a specified in_port.
NXActionResubmitTable is NX action to resubmit packet to a specified table and in_port.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ofp_packet_in 1.3.
When the controller wishes to send a packet out through the datapath, it uses the OFPT_PACKET_OUT message: The buffer_id is the same given in the ofp_packet_in message.
ofp_port 1.3.
Common struct for all port fields.
ofp_port_mod 1.3.
ofp_port_stats 1.0.
ofp_port_stats_request 1.0.
ofp_port_status.
ofp_queue_stats 1.0.
ofp_queue_stats_request 1.0.
ofp_switch_config 1.3.
No description provided by the author
FIXME: Everything below this needs to be changed for ofp1.3 ofp_table_stats 1.0.
Tcp flags field.
TUNNEL_ID field.
Tunnel IPv4 Dst field.
Tunnel IPv4 Src field.
No description provided by the author
No description provided by the author
ofp_vendor 1.3.
VLAN_ID field.

# Interfaces

No description provided by the author
No description provided by the author