History

netfilter: Remove IP_CT_NEW_REPLY definition.

Remove the definition of IP_CT_NEW_REPLY from the kernel as it does not make sense. This allows the definition of IP_CT_NUMBER to be simplified as well.

Jarno Rajahalme committed 10 years ago

Commit bfa3f9d1 parent d157bd72 files · +9 −5Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/netfilter/nf_conntrack_common.h+9−3
@@ -20,9 +20,15 @@ enum ip_conntrack_info { · 19 unmodified lines
2020
2121 IP_CT_ESTABLISHED_REPLY = IP_CT_ESTABLISHED + IP_CT_IS_REPLY,
2222 IP_CT_RELATED_REPLY = IP_CT_RELATED + IP_CT_IS_REPLY,
23− IP_CT_NEW_REPLY = IP_CT_NEW + IP_CT_IS_REPLY,
24− /* Number of distinct IP_CT types (no NEW in reply dirn). */
25− IP_CT_NUMBER = IP_CT_IS_REPLY * 2 - 1
23+ /* No NEW in reply direction. */
24+
25+ /* Number of distinct IP_CT types. */
26+ IP_CT_NUMBER,
27+
28+ /* only for userspace compatibility */
29+#ifndef __KERNEL__
30+ IP_CT_NEW_REPLY = IP_CT_NUMBER,
31+#endif
2632 };
2733
2834 #define NF_CT_STATE_INVALID_BIT (1 << 0)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t