Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
veth: add kernel header linux/veth.h for VETH defines
Similar to what's done with <linux/if_link.h>, make sure used defines actually exist. Otherwise building on even slightly older kernels fails. Taken from upstream kernel commit 1860e379875dfe7271c649058aeddffe5afd9d0d (tag: v3.15), file 'include/uapi/linux/veth.h'. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
- Loading branch information
Showing
3 changed files
with
13 additions
and
8 deletions.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef __NET_VETH_H_ | ||
#define __NET_VETH_H_ | ||
|
||
enum { | ||
VETH_INFO_UNSPEC, | ||
VETH_INFO_PEER, | ||
|
||
__VETH_INFO_MAX | ||
#define VETH_INFO_MAX (__VETH_INFO_MAX - 1) | ||
}; | ||
|
||
#endif |
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