History

netfilter: nf_tables: add NFT_REG32_NUM

Add a definition including the maximum number of 32-bits registers that are used a scratchpad memory area to store data.

Pablo Neira Ayuso committed 4 years ago

Commit 642c8ef1 parent 2c865a81 file · +3 −1Browse files

Unified · Split

include/net/netfilter/nf_tables.h+3−1
@@ -105,6 +105,8 @@ struct nft_data { · 104 unmodified lines
105 };105 };
106} __attribute__((aligned(__alignof__(u64))));106} __attribute__((aligned(__alignof__(u64))));
107 107
108#define NFT_REG32_NUM 20
109
108/**110/**
109 * struct nft_regs - nf_tables register set111 * struct nft_regs - nf_tables register set
110 *112 *
@@ -115,7 +117,7 @@ struct nft_data { · 4 unmodified lines
115 */117 */
116struct nft_regs {118struct nft_regs {
117 union {119 union {
118 u32 data[20];120 u32 data[NFT_REG32_NUM];
119 struct nft_verdict verdict;121 struct nft_verdict verdict;
120 };122 };
121};123};

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