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.
compat: add SCTP netfilter states for older kernels
Bake in the SCTP states from the kernel UAPI. This means an older revision of the kernel headers won't interfere with the SCTP display enhancement. Additionally, if a newer version is available, or if x-compiling the datapath module we defer to that version (since this is just meant to provide the missing definitions). This will be used in a future commit. Signed-off-by: Aaron Conole <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information
Showing
4 changed files
with
43 additions
and
0 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
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,26 @@ | ||
#ifndef __LINUX_NETFILTER_CONNTRACK_SCTP_WRAPPER_H | ||
#define __LINUX_NETFILTER_CONNTRACK_SCTP_WRAPPER_H 1 | ||
|
||
#if defined(__KERNEL__) || defined(HAVE_SCTP_CONNTRACK_HEARTBEATS) | ||
#include_next <linux/netfilter/nf_conntrack_sctp.h> | ||
#else | ||
|
||
/* These are the states defined in the kernel UAPI for connection | ||
* tracking. */ | ||
enum sctp_conntrack { | ||
SCTP_CONNTRACK_NONE, | ||
SCTP_CONNTRACK_CLOSED, | ||
SCTP_CONNTRACK_COOKIE_WAIT, | ||
SCTP_CONNTRACK_COOKIE_ECHOED, | ||
SCTP_CONNTRACK_ESTABLISHED, | ||
SCTP_CONNTRACK_SHUTDOWN_SENT, | ||
SCTP_CONNTRACK_SHUTDOWN_RECD, | ||
SCTP_CONNTRACK_SHUTDOWN_ACK_SENT, | ||
SCTP_CONNTRACK_HEARTBEAT_SENT, | ||
SCTP_CONNTRACK_HEARTBEAT_ACKED, | ||
SCTP_CONNTRACK_MAX | ||
}; | ||
|
||
#endif | ||
|
||
#endif |