meta-flow: Correctly set destination MAC in mf_set_flow_value().
[sliver-openvswitch.git] / ofproto / ofproto-unixctl.man
1 .SS "OFPROTO COMMANDS"
2 These commands manage the core OpenFlow switch implementation (called
3 \fBofproto\fR).
4 .
5 .IP "\fBofproto/list\fR"
6 Lists the names of the running ofproto instances.  These are the names
7 that may be used on \fBofproto/trace\fR.
8 .
9 .IP "\fBofproto/trace \fIswitch priority tun_id in_port packet\fR"
10 .IQ "\fBofproto/trace \fIswitch odp_flow \fB\-generate\fR"
11 Traces the path of an imaginary packet through \fIswitch\fR.  Both
12 forms require \fIswitch\fR, the switch on which the packet arrived
13 (one of those listed by \fBofproto/list\fR).  The first form specifies
14 a packet's contents explicitly:
15 .RS
16 .IP "\fIpriority\fR"
17 Packet QoS priority. Use \fB0\fR if QoS is not setup.
18 .IP "\fItun_id\fR"
19 The tunnel ID on which the packet arrived.  Use
20 \fB0\fR if the packet did not arrive through a tunnel.
21 .IP "\fIin_port\fR"
22 The OpenFlow port on which the packet arrived.  Use \fB65534\fR if the
23 packet arrived on \fBOFPP_LOCAL\fR, the local port.
24 .IP "\fIpacket\fR"
25 A sequence of hex digits specifying the packet's contents.  An
26 Ethernet frame is at least 14 bytes long, so there must be at least 28
27 hex digits.  Obviously, it is inconvenient to type in the hex digits
28 by hand, so the \fBovs\-pcap\fR(1) and \fBovs\-tcpundump\fR(1)
29 utilities provide easier ways.
30 .RE
31 .IP
32 The second form specifies the packet's contents implicitly:
33 .RS
34 .IP "\fIodp_flow\fR"
35 A flow in the form printed by \fBovs\-dpctl\fR(8)'s \fBdump\-flows\fR
36 command.  This is not an OpenFlow flow: besides other differences, it
37 never contains wildcards.  \fB\*(PN\fR generates an arbitrary packet
38 that has the specified \fIodp_flow\fR.
39 .RE
40 .IP
41 \fB\*(PN\fR will respond with extensive information on how the packet
42 would be handled if it were to be received.  The packet will not
43 actually be sent, but side effects such as MAC learning will occur.
44 .
45 .IP "\fBofproto/trace \fIswitch odp_flow\fR"
46 Traces the path of a packet in an imaginary flow through
47 \fIswitch\fR.  The arguments are:
48 .RS
49 .IP "\fIswitch\fR"
50 The switch on which the packet arrived (one of those listed by
51 \fBofproto/list\fR).
52 .IP "\fIodp_flow\fR"
53 A flow in the form printed by \fBovs\-dpctl\fR(8)'s \fBdump\-flows\fR
54 command.  This is not an OpenFlow flow: besides other differences, it
55 never contains wildcards.
56 .RE
57 .IP
58 \fB\*(PN\fR will respond with extensive information on how a packet
59 in \fIodp_flow\fR would be handled if it were received by
60 \fIswitch\fR.  No packet will actually be sent.  Some side effects may
61 occur, but MAC learning in particular will not.
62 .IP
63 This form of \fBofproto/trace\fR cannot determine the complete set of
64 datapath actions in some corner cases.  If the results say that this
65 is the case, rerun \fBofproto/trace\fR supplying a packet in the flow
66 to get complete results.