History

netfilter: nf_tables: atomic dump and reset for stateful objects

This patch adds a new NFT_MSG_GETOBJ_RESET command perform an atomic dump-and-reset of the stateful object. This also comes with add support for atomic dump and reset for counter and quota objects.

Pablo Neira Ayuso committed 9 years ago

Commit 43da04a1 parent 795595f5 files · +85 −23Browse files

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

Unified · Split

include/uapi/linux/netfilter/nf_tables.h+2−0
@@ -89,6 +89,7 @@ enum nft_verdicts { · 88 unmodified lines
8989 * @NFT_MSG_NEWOBJ: create a stateful object (enum nft_obj_attributes)
9090 * @NFT_MSG_GETOBJ: get a stateful object (enum nft_obj_attributes)
9191 * @NFT_MSG_DELOBJ: delete a stateful object (enum nft_obj_attributes)
92+ * @NFT_MSG_GETOBJ_RESET: get and reset a stateful object (enum nft_obj_attributes)
9293 */
9394 enum nf_tables_msg_types {
9495 NFT_MSG_NEWTABLE,
@@ -112,6 +113,7 @@ enum nf_tables_msg_types { · 17 unmodified lines
112113 NFT_MSG_NEWOBJ,
113114 NFT_MSG_GETOBJ,
114115 NFT_MSG_DELOBJ,
116+ NFT_MSG_GETOBJ_RESET,
115117 NFT_MSG_MAX,
116118 };
117119

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