]> git.proxmox.com Git - mirror_ovs.git/blame - include/openvswitch/ofp-print.h
types: New struct eth_addr64 for EUI-64 identifiers.
[mirror_ovs.git] / include / openvswitch / ofp-print.h
CommitLineData
064af421 1/*
8811fc0a 2 * Copyright (c) 2008, 2009, 2011, 2012, 2015 Nicira, Inc.
064af421 3 *
a14bc59f
BP
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
064af421 7 *
a14bc59f
BP
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
064af421
BP
15 */
16
17/* OpenFlow protocol pretty-printer. */
18
25d436fb
BW
19#ifndef OPENVSWITCH_OFP_PRINT_H
20#define OPENVSWITCH_OFP_PRINT_H 1
064af421
BP
21
22#include <stdint.h>
23#include <stdio.h>
24
4f2cad2c 25struct ds;
bdcc5925
BP
26struct ofp10_match;
27struct ofp_flow_mod;
28struct ofp_header;
29struct ofputil_flow_stats;
8811fc0a
BP
30struct ofputil_table_features;
31struct ofputil_table_stats;
064af421
BP
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37void ofp_print(FILE *, const void *, size_t, int verbosity);
c499c75d 38void ofp_print_packet(FILE *stream, const void *data, size_t len);
064af421 39
eec25dc1 40void ofp10_match_print(struct ds *, const struct ofp10_match *, int verbosity);
4f2cad2c 41
064af421 42char *ofp_to_string(const void *, size_t, int verbosity);
eec25dc1 43char *ofp10_match_to_string(const struct ofp10_match *, int verbosity);
c499c75d 44char *ofp_packet_to_string(const void *data, size_t len);
4f2cad2c 45
bdcc5925
BP
46void ofp_print_flow_stats(struct ds *, struct ofputil_flow_stats *);
47void ofp_print_version(const struct ofp_header *, struct ds *);
8811fc0a
BP
48void ofp_print_table_features(
49 struct ds *, const struct ofputil_table_features *features,
50 const struct ofputil_table_features *prev_features,
51 const struct ofputil_table_stats *stats,
52 const struct ofputil_table_stats *prev_stats);
bdcc5925 53
064af421
BP
54#ifdef __cplusplus
55}
56#endif
57
58#endif /* ofp-print.h */