diff options
author | Ben Warren <ben@skyportsystems.com> | 2016-04-14 15:20:21 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-04-14 16:38:32 -0700 |
commit | 25d436fbd49fc4f420c8bb3dcb71209b11c8e11a (patch) | |
tree | 94ecf6c415445fb755ad4f4100190e1d090e9702 /include | |
parent | 66bd43fa50b49534d29c2be94532da9ccb499c34 (diff) | |
download | openvswitch-25d436fbd49fc4f420c8bb3dcb71209b11c8e11a.tar.gz |
Move lib/ofp-print.h to include/openvswitch directory
Signed-off-by: Ben Warren <ben@skyportsystems.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openvswitch/automake.mk | 1 | ||||
-rw-r--r-- | include/openvswitch/ofp-print.h | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/include/openvswitch/automake.mk b/include/openvswitch/automake.mk index a82b3de2f..d8541dc84 100644 --- a/include/openvswitch/automake.mk +++ b/include/openvswitch/automake.mk @@ -13,6 +13,7 @@ openvswitchinclude_HEADERS = \ include/openvswitch/ofp-errors.h \ include/openvswitch/ofp-msgs.h \ include/openvswitch/ofp-parse.h \ + include/openvswitch/ofp-print.h \ include/openvswitch/ofp-prop.h \ include/openvswitch/ofp-util.h \ include/openvswitch/packets.h \ diff --git a/include/openvswitch/ofp-print.h b/include/openvswitch/ofp-print.h new file mode 100644 index 000000000..58fd4039d --- /dev/null +++ b/include/openvswitch/ofp-print.h @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2008, 2009, 2011, 2012, 2015 Nicira, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* OpenFlow protocol pretty-printer. */ + +#ifndef OPENVSWITCH_OFP_PRINT_H +#define OPENVSWITCH_OFP_PRINT_H 1 + +#include <stdint.h> +#include <stdio.h> + +struct ds; +struct ofp10_match; +struct ofp_flow_mod; +struct ofp_header; +struct ofputil_flow_stats; +struct ofputil_table_features; +struct ofputil_table_stats; + +#ifdef __cplusplus +extern "C" { +#endif + +void ofp_print(FILE *, const void *, size_t, int verbosity); +void ofp_print_packet(FILE *stream, const void *data, size_t len); + +void ofp10_match_print(struct ds *, const struct ofp10_match *, int verbosity); + +char *ofp_to_string(const void *, size_t, int verbosity); +char *ofp10_match_to_string(const struct ofp10_match *, int verbosity); +char *ofp_packet_to_string(const void *data, size_t len); + +void ofp_print_flow_stats(struct ds *, struct ofputil_flow_stats *); +void ofp_print_version(const struct ofp_header *, struct ds *); +void ofp_print_table_features( + struct ds *, const struct ofputil_table_features *features, + const struct ofputil_table_features *prev_features, + const struct ofputil_table_stats *stats, + const struct ofputil_table_stats *prev_stats); + +#ifdef __cplusplus +} +#endif + +#endif /* ofp-print.h */ |