]>
Commit | Line | Data |
---|---|---|
f25d0cf3 | 1 | /* Copyright (c) 2011, 2012 Nicira, Inc. |
daff3353 EJ |
2 | * |
3 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
4 | * you may not use this file except in compliance with the License. | |
5 | * You may obtain a copy of the License at: | |
6 | * | |
7 | * http://www.apache.org/licenses/LICENSE-2.0 | |
8 | * | |
9 | * Unless required by applicable law or agreed to in writing, software | |
10 | * distributed under the License is distributed on an "AS IS" BASIS, | |
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 | * See the License for the specific language governing permissions and | |
13 | * limitations under the License. | |
14 | */ | |
15 | ||
16 | #ifndef BUNDLE_H | |
17 | #define BUNDLE_H 1 | |
18 | ||
19 | #include <arpa/inet.h> | |
20 | #include <stdbool.h> | |
21 | #include <stddef.h> | |
22 | #include <stdint.h> | |
23 | ||
90bf1e07 | 24 | #include "ofp-errors.h" |
daff3353 EJ |
25 | #include "openflow/nicira-ext.h" |
26 | #include "openvswitch/types.h" | |
27 | ||
28 | struct ds; | |
29 | struct flow; | |
f25d0cf3 | 30 | struct ofpact_bundle; |
daff3353 EJ |
31 | struct ofpbuf; |
32 | ||
33 | /* NXAST_BUNDLE helper functions. | |
34 | * | |
35 | * See include/openflow/nicira-ext.h for NXAST_BUNDLE specification. */ | |
36 | ||
f25d0cf3 | 37 | uint16_t bundle_execute(const struct ofpact_bundle *, const struct flow *, |
daff3353 EJ |
38 | bool (*slave_enabled)(uint16_t ofp_port, void *aux), |
39 | void *aux); | |
f25d0cf3 BP |
40 | enum ofperr bundle_from_openflow(const struct nx_action_bundle *, |
41 | struct ofpbuf *ofpact); | |
42 | enum ofperr bundle_check(const struct ofpact_bundle *, int max_ports, | |
90bf1e07 | 43 | const struct flow *); |
f25d0cf3 BP |
44 | void bundle_to_nxast(const struct ofpact_bundle *, struct ofpbuf *of10); |
45 | void bundle_parse(const char *, struct ofpbuf *ofpacts); | |
46 | void bundle_parse_load(const char *, struct ofpbuf *ofpacts); | |
47 | void bundle_format(const struct ofpact_bundle *, struct ds *); | |
daff3353 EJ |
48 | |
49 | #endif /* bundle.h */ |