58093a84b6beaacb0e3d2e489f8af65272ea9e93
[openvswitch] / include / openflow / openflow-1.2.h
1 /* Copyright (c) 2008, 2011, 2012 The Board of Trustees of The Leland Stanford
2  * Junior University
3  *
4  * We are making the OpenFlow specification and associated documentation
5  * (Software) available for public use and benefit with the expectation
6  * that others will use, modify and enhance the Software and contribute
7  * those enhancements back to the community. However, since we would
8  * like to make the Software available for broadest use, with as few
9  * restrictions as possible permission is hereby granted, free of
10  * charge, to any person obtaining a copy of this Software to deal in
11  * the Software under the copyrights without restriction, including
12  * without limitation the rights to use, copy, modify, merge, publish,
13  * distribute, sublicense, and/or sell copies of the Software, and to
14  * permit persons to whom the Software is furnished to do so, subject to
15  * the following conditions:
16  *
17  * The above copyright notice and this permission notice shall be
18  * included in all copies or substantial portions of the Software.
19  *
20  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23  * NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
24  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27  * SOFTWARE.
28  *
29  * The name and trademarks of copyright holder(s) may NOT be used in
30  * advertising or publicity pertaining to the Software or any
31  * derivatives without specific, written prior permission.
32  */
33
34 /*
35  * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc.
36  * Copyright (c) 2012 Horms Solutions Ltd.
37  *
38  * Licensed under the Apache License, Version 2.0 (the "License");
39  * you may not use this file except in compliance with the License.
40  * You may obtain a copy of the License at:
41  *
42  *     http://www.apache.org/licenses/LICENSE-2.0
43  *
44  * Unless required by applicable law or agreed to in writing, software
45  * distributed under the License is distributed on an "AS IS" BASIS,
46  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
47  * See the License for the specific language governing permissions and
48  * limitations under the License.
49  */
50
51 /* OpenFlow: protocol between controller and datapath. */
52
53 #ifndef OPENFLOW_12_H
54 #define OPENFLOW_12_H 1
55
56 #include "openflow/openflow-1.1.h"
57
58 /* OpenFlow 1.2 specific message types, in addition to the common message
59  * types. */
60 enum ofp12_type {
61     /* Controller role change request messages. */
62     OFPT12_ROLE_REQUEST = 24,   /* Controller/switch message */
63     OFPT12_ROLE_REPLY,          /* Controller/switch message */
64 };
65
66 /*
67  * OXM Class IDs.
68  * The high order bit differentiate reserved classes from member classes.
69  * Classes 0x0000 to 0x7FFF are member classes, allocated by ONF.
70  * Classes 0x8000 to 0xFFFE are reserved classes, reserved for standardisation.
71  */
72 enum ofp12_oxm_class {
73     OFPXMC12_NXM_0          = 0x0000, /* Backward compatibility with NXM */
74     OFPXMC12_NXM_1          = 0x0001, /* Backward compatibility with NXM */
75     OFPXMC12_OPENFLOW_BASIC = 0x8000, /* Basic class for OpenFlow */
76     OFPXMC12_EXPERIMENTER   = 0xffff, /* Experimenter class */
77 };
78
79 /* OXM Flow match field types for OpenFlow basic class. */
80 enum oxm12_ofb_match_fields {
81     OFPXMT12_OFB_IN_PORT,        /* Switch input port. */
82     OFPXMT12_OFB_IN_PHY_PORT,    /* Switch physical input port. */
83     OFPXMT12_OFB_METADATA,       /* Metadata passed between tables. */
84     OFPXMT12_OFB_ETH_DST,        /* Ethernet destination address. */
85     OFPXMT12_OFB_ETH_SRC,        /* Ethernet source address. */
86     OFPXMT12_OFB_ETH_TYPE,       /* Ethernet frame type. */
87     OFPXMT12_OFB_VLAN_VID,       /* VLAN id. */
88     OFPXMT12_OFB_VLAN_PCP,       /* VLAN priority. */
89     OFPXMT12_OFB_IP_DSCP,        /* IP DSCP (6 bits in ToS field). */
90     OFPXMT12_OFB_IP_ECN,         /* IP ECN (2 bits in ToS field). */
91     OFPXMT12_OFB_IP_PROTO,       /* IP protocol. */
92     OFPXMT12_OFB_IPV4_SRC,       /* IPv4 source address. */
93     OFPXMT12_OFB_IPV4_DST,       /* IPv4 destination address. */
94     OFPXMT12_OFB_TCP_SRC,        /* TCP source port. */
95     OFPXMT12_OFB_TCP_DST,        /* TCP destination port. */
96     OFPXMT12_OFB_UDP_SRC,        /* UDP source port. */
97     OFPXMT12_OFB_UDP_DST,        /* UDP destination port. */
98     OFPXMT12_OFB_SCTP_SRC,       /* SCTP source port. */
99     OFPXMT12_OFB_SCTP_DST,       /* SCTP destination port. */
100     OFPXMT12_OFB_ICMPV4_TYPE,    /* ICMP type. */
101     OFPXMT12_OFB_ICMPV4_CODE,    /* ICMP code. */
102     OFPXMT12_OFB_ARP_OP,         /* ARP opcode. */
103     OFPXMT12_OFB_ARP_SPA,        /* ARP source IPv4 address. */
104     OFPXMT12_OFB_ARP_TPA,        /* ARP target IPv4 address. */
105     OFPXMT12_OFB_ARP_SHA,        /* ARP source hardware address. */
106     OFPXMT12_OFB_ARP_THA,        /* ARP target hardware address. */
107     OFPXMT12_OFB_IPV6_SRC,       /* IPv6 source address. */
108     OFPXMT12_OFB_IPV6_DST,       /* IPv6 destination address. */
109     OFPXMT12_OFB_IPV6_FLABEL,    /* IPv6 Flow Label */
110     OFPXMT12_OFB_ICMPV6_TYPE,    /* ICMPv6 type. */
111     OFPXMT12_OFB_ICMPV6_CODE,    /* ICMPv6 code. */
112     OFPXMT12_OFB_IPV6_ND_TARGET, /* Target address for ND. */
113     OFPXMT12_OFB_IPV6_ND_SLL,    /* Source link-layer for ND. */
114     OFPXMT12_OFB_IPV6_ND_TLL,    /* Target link-layer for ND. */
115     OFPXMT12_OFB_MPLS_LABEL,     /* MPLS label. */
116     OFPXMT12_OFB_MPLS_TC,        /* MPLS TC. */
117 };
118
119 /* OXM implementation makes use of NXM as they are the same format
120  * with different field definitions
121  */
122
123 #define OXM_HEADER(FIELD, LENGTH) \
124     NXM_HEADER(OFPXMC12_OPENFLOW_BASIC, FIELD, LENGTH)
125 #define OXM_HEADER_W(FIELD, LENGTH) \
126     NXM_HEADER_W(OFPXMC12_OPENFLOW_BASIC, FIELD, LENGTH)
127
128 #define IS_OXM_HEADER(header) (NXM_VENDOR(header) == OFPXMC12_OPENFLOW_BASIC)
129
130 #define OXM_OF_IN_PORT        OXM_HEADER   (OFPXMT12_OFB_IN_PORT, 4)
131 #define OXM_OF_IN_PHY_PORT    OXM_HEADER   (OFPXMT12_OFB_IN_PHY_PORT, 4)
132 #define OXM_OF_METADATA       OXM_HEADER   (OFPXMT12_OFB_METADATA, 8)
133 #define OXM_OF_ETH_DST        OXM_HEADER   (OFPXMT12_OFB_ETH_DST, 6)
134 #define OXM_OF_ETH_DST_W      OXM_HEADER_W (OFPXMT12_OFB_ETH_DST, 6)
135 #define OXM_OF_ETH_SRC        OXM_HEADER   (OFPXMT12_OFB_ETH_SRC, 6)
136 #define OXM_OF_ETH_SRC_W      OXM_HEADER_W (OFPXMT12_OFB_ETH_SRC, 6)
137 #define OXM_OF_ETH_TYPE       OXM_HEADER   (OFPXMT12_OFB_ETH_TYPE, 2)
138 #define OXM_OF_VLAN_VID       OXM_HEADER   (OFPXMT12_OFB_VLAN_VID, 2)
139 #define OXM_OF_VLAN_VID_W     OXM_HEADER_W (OFPXMT12_OFB_VLAN_VID, 2)
140 #define OXM_OF_VLAN_PCP       OXM_HEADER   (OFPXMT12_OFB_VLAN_PCP, 1)
141 #define OXM_OF_IP_DSCP        OXM_HEADER   (OFPXMT12_OFB_IP_DSCP, 1)
142 #define OXM_OF_IP_ECN         OXM_HEADER   (OFPXMT12_OFB_IP_ECN, 1)
143 #define OXM_OF_IP_PROTO       OXM_HEADER   (OFPXMT12_OFB_IP_PROTO, 1)
144 #define OXM_OF_IPV4_SRC       OXM_HEADER   (OFPXMT12_OFB_IPV4_SRC, 4)
145 #define OXM_OF_IPV4_SRC_W     OXM_HEADER_W (OFPXMT12_OFB_IPV4_SRC, 4)
146 #define OXM_OF_IPV4_DST       OXM_HEADER   (OFPXMT12_OFB_IPV4_DST, 4)
147 #define OXM_OF_IPV4_DST_W     OXM_HEADER_W (OFPXMT12_OFB_IPV4_DST, 4)
148 #define OXM_OF_TCP_SRC        OXM_HEADER   (OFPXMT12_OFB_TCP_SRC, 2)
149 #define OXM_OF_TCP_DST        OXM_HEADER   (OFPXMT12_OFB_TCP_DST, 2)
150 #define OXM_OF_UDP_SRC        OXM_HEADER   (OFPXMT12_OFB_UDP_SRC, 2)
151 #define OXM_OF_UDP_DST        OXM_HEADER   (OFPXMT12_OFB_UDP_DST, 2)
152 #define OXM_OF_SCTP_SRC       OXM_HEADER   (OFPXMT12_OFB_SCTP_SRC, 2)
153 #define OXM_OF_SCTP_DST       OXM_HEADER   (OFPXMT12_OFB_SCTP_DST, 2)
154 #define OXM_OF_ICMPV4_TYPE    OXM_HEADER   (OFPXMT12_OFB_ICMPV4_TYPE, 1)
155 #define OXM_OF_ICMPV4_CODE    OXM_HEADER   (OFPXMT12_OFB_ICMPV4_CODE, 1)
156 #define OXM_OF_ARP_OP         OXM_HEADER   (OFPXMT12_OFB_ARP_OP, 2)
157 #define OXM_OF_ARP_SPA        OXM_HEADER   (OFPXMT12_OFB_ARP_SPA, 4)
158 #define OXM_OF_ARP_SPA_W      OXM_HEADER_W (OFPXMT12_OFB_ARP_SPA, 4)
159 #define OXM_OF_ARP_TPA        OXM_HEADER   (OFPXMT12_OFB_ARP_TPA, 4)
160 #define OXM_OF_ARP_TPA_W      OXM_HEADER_W (OFPXMT12_OFB_ARP_TPA, 4)
161 #define OXM_OF_ARP_SHA        OXM_HEADER   (OFPXMT12_OFB_ARP_SHA, 6)
162 #define OXM_OF_ARP_SHA_W      OXM_HEADER_W (OFPXMT12_OFB_ARP_SHA, 6)
163 #define OXM_OF_ARP_THA        OXM_HEADER   (OFPXMT12_OFB_ARP_THA, 6)
164 #define OXM_OF_ARP_THA_W      OXM_HEADER_W (OFPXMT12_OFB_ARP_THA, 6)
165 #define OXM_OF_IPV6_SRC       OXM_HEADER   (OFPXMT12_OFB_IPV6_SRC, 16)
166 #define OXM_OF_IPV6_SRC_W     OXM_HEADER_W (OFPXMT12_OFB_IPV6_SRC, 16)
167 #define OXM_OF_IPV6_DST       OXM_HEADER   (OFPXMT12_OFB_IPV6_DST, 16)
168 #define OXM_OF_IPV6_DST_W     OXM_HEADER_W (OFPXMT12_OFB_IPV6_DST, 16)
169 #define OXM_OF_IPV6_FLABEL    OXM_HEADER   (OFPXMT12_OFB_IPV6_FLABEL, 4)
170 #define OXM_OF_IPV6_FLABEL_W  OXM_HEADER_W (OFPXMT12_OFB_IPV6_FLABEL, 4)
171 #define OXM_OF_ICMPV6_TYPE    OXM_HEADER   (OFPXMT12_OFB_ICMPV6_TYPE, 1)
172 #define OXM_OF_ICMPV6_CODE    OXM_HEADER   (OFPXMT12_OFB_ICMPV6_CODE, 1)
173 #define OXM_OF_IPV6_ND_TARGET OXM_HEADER   (OFPXMT12_OFB_IPV6_ND_TARGET, 16)
174 #define OXM_OF_IPV6_ND_SLL    OXM_HEADER   (OFPXMT12_OFB_IPV6_ND_SLL, 6)
175 #define OXM_OF_IPV6_ND_TLL    OXM_HEADER   (OFPXMT12_OFB_IPV6_ND_TLL, 6)
176 #define OXM_OF_MPLS_LABEL     OXM_HEADER   (OFPXMT12_OFB_MPLS_LABEL, 4)
177 #define OXM_OF_MPLS_TC        OXM_HEADER   (OFPXMT12_OFB_MPLS_TC, 1)
178
179 /* The VLAN id is 12-bits, so we can use the entire 16 bits to indicate
180  * special conditions.
181  */
182 enum ofp12_vlan_id {
183     OFPVID12_PRESENT = 0x1000, /* Bit that indicate that a VLAN id is set */
184     OFPVID12_NONE    = 0x0000, /* No VLAN id was set. */
185 };
186
187 /* Header for OXM experimenter match fields. */
188 struct ofp12_oxm_experimenter_header {
189     ovs_be32 oxm_header;   /* oxm_class = OFPXMC_EXPERIMENTER */
190     ovs_be32 experimenter; /* Experimenter ID which takes the same
191                               form as in struct ofp11_experimenter_header. */
192 };
193 OFP_ASSERT(sizeof(struct ofp12_oxm_experimenter_header) == 8);
194
195 enum ofp12_action_type {
196     OFPAT12_OUTPUT       = 0,  /* Output to switch port. */
197     OFPAT12_COPY_TTL_OUT = 11, /* Copy TTL "outwards" -- from next-to-outermost
198                                   to outermost */
199     OFPAT12_COPY_TTL_IN,       /* Copy TTL "inwards" -- from outermost to
200                                   next-to-outermost */
201     OFPAT12_SET_MPLS_TTL = 15, /* MPLS TTL */
202     OFPAT12_DEC_MPLS_TTL,      /* Decrement MPLS TTL */
203     OFPAT12_PUSH_VLAN,         /* Push a new VLAN tag */
204     OFPAT12_POP_VLAN,          /* Pop the outer VLAN tag */
205     OFPAT12_PUSH_MPLS,         /* Push a new MPLS tag */
206     OFPAT12_POP_MPLS,          /* Pop the outer MPLS tag */
207     OFPAT12_SET_QUEUE,         /* Set queue id when outputting to a port */
208     OFPAT12_GROUP,             /* Apply group. */
209     OFPAT12_SET_NW_TTL,        /* IP TTL. */
210     OFPAT12_DEC_NW_TTL,        /* Decrement IP TTL. */
211     OFPAT12_SET_FIELD,         /* Set a header field using OXM TLV format. */
212     OFPAT12_EXPERIMENTER = 0xffff
213 };
214
215 enum ofp12_controller_max_len {
216     OFPCML12_MAX       = 0xffe5, /* maximum max_len value which can be used
217                                   * to request a specific byte length. */
218     OFPCML12_NO_BUFFER = 0xffff  /* indicates that no buffering should be
219                                   * applied and the whole packet is to be
220                                   * sent to the controller. */
221 };
222
223 /* Action structure for OFPAT12_SET_FIELD. */
224 struct ofp12_action_set_field {
225     ovs_be16 type;                  /* OFPAT12_SET_FIELD. */
226     ovs_be16 len;                   /* Length is padded to 64 bits. */
227     /* Followed by:
228      * - Exactly oxm_len bytes containing a single OXM TLV, then
229      * - Exactly ((oxm_len + 4) + 7)/8*8 - (oxm_len + 4) (between 0 and 7)
230      *   bytes of all-zero bytes
231      */
232     uint8_t field[4];               /* OXM TLV - Make compiler happy */
233 };
234 OFP_ASSERT(sizeof(struct ofp12_action_set_field) == 8);
235
236 /* OpenFlow 1.2 specific flags
237  * (struct ofp12_flow_mod, member flags). */
238 enum ofp12_flow_mod_flags {
239     OFPFF12_RESET_COUNTS  = 1 << 2   /* Reset flow packet and byte counts. */
240 };
241
242 /* OpenFlow 1.2 specific capabilities
243  * (struct ofp_switch_features, member capabilities). */
244 enum ofp12_capabilities {
245     OFPC12_PORT_BLOCKED   = 1 << 8   /* Switch will block looping ports. */
246 };
247
248 /* OpenFlow 1.2 specific types
249  * (struct ofp11_stats_request/reply, member type). */
250 enum ofp12_stats_types {
251     /* Group features.
252      * The request body is empty.
253      * The reply body is struct ofp12_group_features_stats. */
254     OFPST12_GROUP_FEATURES = 8
255 };
256
257 /* OpenFlow 1.2 specific properties
258  * (struct ofp_queue_prop_header member property). */
259 enum ofp12_queue_properties {
260     OFPQT12_MIN_RATE = 1,         /* Minimum datarate guaranteed. */
261     OFPQT12_MAX_RATE = 2,         /* Maximum datarate. */
262     OFPQT12_EXPERIMENTER = 0xffff /* Experimenter defined property. */
263 };
264
265 /* Body of reply to OFPST_TABLE request. */
266 struct ofp12_table_stats {
267     struct ofp11_stats_msg osm;
268     uint8_t table_id;        /* Identifier of table.  Lower numbered tables
269                                 are consulted first. */
270     uint8_t pad[7];          /* Align to 64-bits. */
271     char name[OFP_MAX_TABLE_NAME_LEN];
272     ovs_be64 match;          /* Bitmap of (1 << OFPXMT_*) that indicate the
273                                 fields the table can match on. */
274     ovs_be64 wildcards;      /* Bitmap of (1 << OFPXMT_*) wildcards that are
275                                 supported by the table. */
276     ovs_be32 write_actions;  /* Bitmap of OFPAT_* that are supported
277                                 by the table with OFPIT_WRITE_ACTIONS. */
278     ovs_be32 apply_actions;  /* Bitmap of OFPAT_* that are supported
279                                 by the table with OFPIT_APPLY_ACTIONS. */
280     ovs_be64 write_setfields;/* Bitmap of (1 << OFPXMT_*) header fields that
281                                 can be set with OFPIT_WRITE_ACTIONS. */
282     ovs_be64 apply_setfields;/* Bitmap of (1 << OFPXMT_*) header fields that
283                                 can be set with OFPIT_APPLY_ACTIONS. */
284     ovs_be64 metadata_match; /* Bits of metadata table can match. */
285     ovs_be64 metadata_write; /* Bits of metadata table can write. */
286     ovs_be32 instructions;   /* Bitmap of OFPIT_* values supported. */
287     ovs_be32 config;         /* Bitmap of OFPTC_* values */
288     ovs_be32 max_entries;    /* Max number of entries supported. */
289     ovs_be32 active_count;   /* Number of active entries. */
290     ovs_be64 lookup_count;   /* Number of packets looked up in table. */
291     ovs_be64 matched_count;  /* Number of packets that hit table. */
292 };
293 OFP_ASSERT(sizeof(struct ofp12_table_stats) == 144);
294
295 /* Body of reply to OFPST12_GROUP_FEATURES request. Group features. */
296 struct ofp12_group_features_stats {
297     struct ofp11_stats_msg osm;
298     ovs_be32  types;           /* Bitmap of OFPGT_* values supported. */
299     ovs_be32  capabilities;    /* Bitmap of OFPGFC12_* capability supported. */
300     ovs_be32  max_groups[4];   /* Maximum number of groups for each type. */
301     ovs_be32  actions[4];      /* Bitmaps of OFPAT_* that are supported. */
302 };
303 OFP_ASSERT(sizeof(struct ofp12_group_features_stats) == 56);
304
305 /* Group configuration flags */
306 enum ofp12_group_capabilities {
307     OFPGFC12_SELECT_WEIGHT   = 1 << 0, /* Support weight for select groups */
308     OFPGFC12_SELECT_LIVENESS = 1 << 1, /* Support liveness for select groups */
309     OFPGFC12_CHAINING        = 1 << 2, /* Support chaining groups */
310     OFPGFC12_CHAINING_CHECKS = 1 << 3, /* Check chaining for loops and delete */
311 };
312
313 /* Body for ofp12_stats_request/reply of type OFPST_EXPERIMENTER. */
314 struct ofp12_experimenter_stats_header {
315     ovs_be32 experimenter;    /* Experimenter ID which takes the same form
316                                  as in struct ofp_experimenter_header. */
317     ovs_be32 exp_type;        /* Experimenter defined. */
318     /* Experimenter-defined arbitrary additional data. */
319 };
320 OFP_ASSERT(sizeof(struct ofp12_experimenter_stats_header) == 8);
321
322 /* Role request and reply message. */
323 struct ofp12_role_request {
324     struct ofp_header header; /* Type OFPT12_ROLE_REQUEST/OFPT12_ROLE_REPLY. */
325     ovs_be32 role;            /* One of OFPCR12_ROLE_*. */
326     uint8_t pad[4];           /* Align to 64 bits. */
327     ovs_be64 generation_id;   /* Master Election Generation Id */
328 };
329 OFP_ASSERT(sizeof(struct ofp12_role_request) == 24);
330
331 /* Controller roles. */
332 enum ofp12_controller_role {
333     OFPCR12_ROLE_NOCHANGE,    /* Don't change current role. */
334     OFPCR12_ROLE_EQUAL,       /* Default role, full access. */
335     OFPCR12_ROLE_MASTER,      /* Full access, at most one master. */
336     OFPCR12_ROLE_SLAVE,       /* Read-only access. */
337 };
338
339 /* Packet received on port (datapath -> controller). */
340 struct ofp12_packet_in {
341     struct ofp_header header;
342     ovs_be32 buffer_id;     /* ID assigned by datapath. */
343     ovs_be16 total_len;     /* Full length of frame. */
344     uint8_t reason;         /* Reason packet is being sent (one of OFPR_*) */
345     uint8_t table_id;       /* ID of the table that was looked up */
346     /* Followed by:
347      *   - Match
348      *   - Exactly 2 all-zero padding bytes, then
349      *   - An Ethernet frame whose length is inferred from header.length.
350      * The padding bytes preceding the Ethernet frame ensure that the IP
351      * header (if any) following the Ethernet header is 32-bit aligned.
352      */
353     /* struct ofp12_match match; */
354     /* uint8_t pad[2];         Align to 64 bit + 16 bit */
355     /* uint8_t data[0];        Ethernet frame */
356 };
357 OFP_ASSERT(sizeof(struct ofp12_packet_in) == 16);
358
359 /* Flow removed (datapath -> controller). */
360 struct ofp12_flow_removed {
361     struct ofp_header header;
362     ovs_be64 cookie;          /* Opaque controller-issued identifier. */
363
364     ovs_be16 priority;        /* Priority level of flow entry. */
365     uint8_t reason;           /* One of OFPRR_*. */
366     uint8_t table_id;         /* ID of the table */
367
368     ovs_be32 duration_sec;    /* Time flow was alive in seconds. */
369     ovs_be32 duration_nsec;   /* Time flow was alive in nanoseconds beyond
370                                  duration_sec. */
371     ovs_be16 idle_timeout;    /* Idle timeout from original flow mod. */
372     ovs_be16 hard_timeout;    /* Hard timeout from original flow mod. */
373     ovs_be64 packet_count;
374     ovs_be64 byte_count;
375     /* struct ofp12_match match;  Description of fields. Variable size. */
376 };
377 OFP_ASSERT(sizeof(struct ofp12_flow_removed) == 48);
378
379 #endif /* openflow/openflow-1.2.h */