summaryrefslogtreecommitdiff
path: root/include/openvswitch/ofp-packet.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2018-02-16 14:03:51 -0800
committerBen Pfaff <blp@ovn.org>2018-03-14 11:41:22 -0700
commitdfc77282c52f324c19a6819372c2ec17675bc7ce (patch)
tree9d74343cd057c7c90babead22c2b75f9726fb307 /include/openvswitch/ofp-packet.h
parent11b1e59f3af06a3ab02496abbb65564a077744a7 (diff)
downloadopenvswitch-dfc77282c52f324c19a6819372c2ec17675bc7ce.tar.gz
ofp-print: Move much of the printing code into message-specific files.
Until now, the ofp-print code has had a lot of logic specific to individual messages. This code is better put with the other code specific to those messages, so this commit starts to migrate it. There is more work of a similar type to do, but this is a reasonable start. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
Diffstat (limited to 'include/openvswitch/ofp-packet.h')
-rw-r--r--include/openvswitch/ofp-packet.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/openvswitch/ofp-packet.h b/include/openvswitch/ofp-packet.h
index f96e36613..67001cb3f 100644
--- a/include/openvswitch/ofp-packet.h
+++ b/include/openvswitch/ofp-packet.h
@@ -154,6 +154,12 @@ enum ofperr ofputil_decode_packet_in_private(
struct ofputil_packet_in_private *,
size_t *total_len, uint32_t *buffer_id);
+void ofputil_packet_in_private_format(
+ struct ds *, const struct ofputil_packet_in_private *,
+ size_t total_len, uint32_t buffer_id,
+ const struct ofputil_port_map *,
+ const struct ofputil_table_map *, int verbosity);
+
void ofputil_packet_in_private_destroy(struct ofputil_packet_in_private *);
/* Abstract packet-out message.
@@ -176,6 +182,11 @@ enum ofperr ofputil_decode_packet_out(struct ofputil_packet_out *,
struct ofpbuf *ofputil_encode_packet_out(const struct ofputil_packet_out *,
enum ofputil_protocol protocol);
+void ofputil_packet_out_format(struct ds *, const struct ofputil_packet_out *,
+ const struct ofputil_port_map *,
+ const struct ofputil_table_map *,
+ int verbosity);
+
char *parse_ofp_packet_out_str(struct ofputil_packet_out *, const char *,
const struct ofputil_port_map *,
const struct ofputil_table_map *,