forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datapath: Provide simple version of if_ether.h on non-Linux systems.
Signed-off-by: Jesse Gross <[email protected]>
- Loading branch information
1 parent
e297c6b
commit 8773132
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
noinst_HEADERS += \ | ||
include/linux/if_ether.h \ | ||
include/linux/openvswitch.h \ | ||
include/linux/types.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2013 Nicira, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef LINUX_IF_ETHER_H | ||
#define LINUX_IF_ETHER_H 1 | ||
|
||
/* On Linux, this header file just includes <linux/if_ether.h>. | ||
* | ||
* On other platforms, this header file implements just enough of | ||
* <linux/if_ether.h> to allow <linux/openvswitch.h> to work. */ | ||
|
||
#if defined(HAVE_LINUX_IF_ETHER_H) || defined(__KERNEL__) | ||
#include_next <linux/if_ether.h> | ||
#else /* no <linux/if_ether.h> */ | ||
#define ETH_ALEN 6 /* Octets in one ethernet addr */ | ||
#endif | ||
|
||
#endif /* <linux/if_ether.h> */ |