Update primary code license to Apache 2.0.
[cascardo/ovs.git] / vswitchd / proc-net-compat.h
1 /* Copyright (c) 2009 Nicira Networks
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 VSWITCHD_PROC_NET_COMPAT_H
17 #define VSWITCHD_PROC_NET_COMPAT_H 1
18
19 #include "packets.h"
20
21 struct compat_bond {
22     bool up;
23     int updelay;
24     int downdelay;
25     int n_slaves;
26     struct compat_bond_slave *slaves;
27 };
28
29 struct compat_bond_slave {
30     const char *name;
31     bool up;
32     uint8_t mac[ETH_ADDR_LEN];
33 };
34
35 int proc_net_compat_init(void);
36 void proc_net_compat_update_bond(const char *name, const struct compat_bond *);
37 void proc_net_compat_update_vlan(const char *dev, const char *vlandev,
38                                  int vlan);
39
40 #endif /* vswitchd/proc-net-compat.h */