]>
git.proxmox.com Git - mirror_ovs.git/blob - lib/bundle.h
1 /* Copyright (c) 2011, 2012 Nicira, Inc.
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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include <arpa/inet.h>
24 #include "ofp-errors.h"
25 #include "openflow/nicira-ext.h"
26 #include "openvswitch/types.h"
30 struct flow_wildcards
;
34 /* NXAST_BUNDLE helper functions.
36 * See include/openflow/nicira-ext.h for NXAST_BUNDLE specification. */
38 uint16_t bundle_execute(const struct ofpact_bundle
*, const struct flow
*,
39 struct flow_wildcards
*wc
,
40 bool (*slave_enabled
)(uint16_t ofp_port
, void *aux
),
42 enum ofperr
bundle_from_openflow(const struct nx_action_bundle
*,
43 struct ofpbuf
*ofpact
);
44 enum ofperr
bundle_check(const struct ofpact_bundle
*, int max_ports
,
46 void bundle_to_nxast(const struct ofpact_bundle
*, struct ofpbuf
*of10
);
47 void bundle_parse(const char *, struct ofpbuf
*ofpacts
);
48 void bundle_parse_load(const char *, struct ofpbuf
*ofpacts
);
49 void bundle_format(const struct ofpact_bundle
*, struct ds
*);