]>
Commit | Line | Data |
---|---|---|
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 | ||
25 | struct ofp_flow_mod; | |
26 | struct ofp_match; | |
4f2cad2c JP |
27 | struct ds; |
28 | struct ofp_action_header; | |
064af421 BP |
29 | |
30 | #ifdef __cplusplus | |
31 | extern "C" { | |
32 | #endif | |
33 | ||
34 | void ofp_print(FILE *, const void *, size_t, int verbosity); | |
35 | void ofp_print_packet(FILE *stream, const void *data, size_t len, size_t total_len); | |
36 | ||
4f2cad2c JP |
37 | void ofp_print_actions(struct ds *, const struct ofp_action_header *, size_t); |
38 | void ofp_print_match(struct ds *, const struct ofp_match *, int verbosity); | |
39 | ||
064af421 BP |
40 | char *ofp_to_string(const void *, size_t, int verbosity); |
41 | char *ofp_match_to_string(const struct ofp_match *, int verbosity); | |
42 | char *ofp_packet_to_string(const void *data, size_t len, size_t total_len); | |
43 | char *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 */ |