aboutsummaryrefslogtreecommitdiff
path: root/lib/ofp-print.h
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2009-07-14 13:03:57 -0700
committerJustin Pettit <jpettit@nicira.com>2009-07-29 17:04:18 -0700
commit4f2cad2c3b1079ede2d3eed0dd25423552105255 (patch)
tree9bf0b5232981f37b7c5d6e3717bbc0135c87d22d /lib/ofp-print.h
parentc2fea58ce74361f355bedc3ab580a514d615809f (diff)
vswitchd: Add unixctl command to dump all flows, including hidden ones
Previously, the only way to query the flow table was to run "ovs-ofctl dump-flows". This returned most flows, but not those marked hidden by secchan. Hidden flows are setup by mechanisms such as in-band control, since they must not be modified by users of the controller. However, when debugging problems on the switch, it is often useful to see what the flow table is actually doing. The new "bridge/dump-flows" command added to ovs-appctl shows all flows being used by the OpenFlow stack.
Diffstat (limited to 'lib/ofp-print.h')
-rw-r--r--lib/ofp-print.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ofp-print.h b/lib/ofp-print.h
index 2c9548b3..a362a65a 100644
--- a/lib/ofp-print.h
+++ b/lib/ofp-print.h
@@ -24,6 +24,8 @@
struct ofp_flow_mod;
struct ofp_match;
+struct ds;
+struct ofp_action_header;
#ifdef __cplusplus
extern "C" {
@@ -32,11 +34,15 @@ extern "C" {
void ofp_print(FILE *, const void *, size_t, int verbosity);
void ofp_print_packet(FILE *stream, const void *data, size_t len, size_t total_len);
+void ofp_print_actions(struct ds *, const struct ofp_action_header *, size_t);
+void ofp_print_match(struct ds *, const struct ofp_match *, int verbosity);
+
char *ofp_to_string(const void *, size_t, int verbosity);
char *ofp_match_to_string(const struct ofp_match *, int verbosity);
char *ofp_packet_to_string(const void *data, size_t len, size_t total_len);
char *ofp_message_type_to_string(uint8_t type);
+
#ifdef __cplusplus
}
#endif