History

netfilter: nft_exthdr: Support SCTP chunks

Chunks are SCTP header extensions similar in implementation to IPv6 extension headers or TCP options. Reusing exthdr expression to find and extract field values from them is therefore pretty straightforward. For now, this supports extracting data from chunks at a fixed offset (and length) only - chunks themselves are an extensible data structure; in order to make all fields available, a nested extension search is needed.

Phil Sutter committed 5 years ago

Commit 133dc201 parent af9207a2 files · +53 −0Browse files

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

Unified · Split

include/uapi/linux/netfilter/nf_tables.h+2−0
@@ -813,11 +813,13 @@ enum nft_exthdr_flags { · 812 unmodified lines
813 * @NFT_EXTHDR_OP_IPV6: match against ipv6 extension headers813 * @NFT_EXTHDR_OP_IPV6: match against ipv6 extension headers
814 * @NFT_EXTHDR_OP_TCP: match against tcp options814 * @NFT_EXTHDR_OP_TCP: match against tcp options
815 * @NFT_EXTHDR_OP_IPV4: match against ipv4 options815 * @NFT_EXTHDR_OP_IPV4: match against ipv4 options
816 * @NFT_EXTHDR_OP_SCTP: match against sctp chunks
816 */817 */
817enum nft_exthdr_op {818enum nft_exthdr_op {
818 NFT_EXTHDR_OP_IPV6,819 NFT_EXTHDR_OP_IPV6,
819 NFT_EXTHDR_OP_TCPOPT,820 NFT_EXTHDR_OP_TCPOPT,
820 NFT_EXTHDR_OP_IPV4,821 NFT_EXTHDR_OP_IPV4,
822 NFT_EXTHDR_OP_SCTP,
821 __NFT_EXTHDR_OP_MAX823 __NFT_EXTHDR_OP_MAX
822};824};
823#define NFT_EXTHDR_OP_MAX (__NFT_EXTHDR_OP_MAX - 1)825#define NFT_EXTHDR_OP_MAX (__NFT_EXTHDR_OP_MAX - 1)

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