Setting tag sliver-openvswitch-2.2.90-1
[sliver-openvswitch.git] / include / linux / if_ether.h
1 /*
2  * Copyright (c) 2013 Nicira, Inc.
3  *
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:
7  *
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.
15  */
16
17 #ifndef LINUX_IF_ETHER_H
18 #define LINUX_IF_ETHER_H 1
19
20 /* On Linux, this header file just includes <linux/if_ether.h>.
21  *
22  * On other platforms, this header file implements just enough of
23  * <linux/if_ether.h> to allow <linux/openvswitch.h> to work. */
24
25 #if defined(HAVE_LINUX_IF_ETHER_H) || defined(__KERNEL__)
26 #include_next <linux/if_ether.h>
27 #else  /* no <linux/if_ether.h> */
28 #define ETH_ALEN        6               /* Octets in one ethernet addr   */
29 #endif
30
31 #endif /* <linux/if_ether.h> */