]> git.proxmox.com Git - mirror_ovs.git/blame - lib/ofp-print.h
netdev: Take responsibility for polling MII registers.
[mirror_ovs.git] / lib / ofp-print.h
CommitLineData
064af421
BP
1/*
2 * Copyright (c) 2008, 2009 Nicira Networks.
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
19#ifndef OFP_PRINT_H
20#define OFP_PRINT_H 1
21
22#include <stdint.h>
23#include <stdio.h>
24
25struct ofp_flow_mod;
26struct ofp_match;
4f2cad2c
JP
27struct ds;
28struct ofp_action_header;
064af421
BP
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34void ofp_print(FILE *, const void *, size_t, int verbosity);
35void ofp_print_packet(FILE *stream, const void *data, size_t len, size_t total_len);
36
4f2cad2c
JP
37void ofp_print_actions(struct ds *, const struct ofp_action_header *, size_t);
38void ofp_print_match(struct ds *, const struct ofp_match *, int verbosity);
39
064af421
BP
40char *ofp_to_string(const void *, size_t, int verbosity);
41char *ofp_match_to_string(const struct ofp_match *, int verbosity);
42char *ofp_packet_to_string(const void *data, size_t len, size_t total_len);
43char *ofp_message_type_to_string(uint8_t type);
44
4f2cad2c 45
064af421
BP
46#ifdef __cplusplus
47}
48#endif
49
50#endif /* ofp-print.h */