History

netfilter: nft_osf: Add version option support

Add version option support to the nftables "osf" expression.

Fernando Fernandez Mancera committed 7 years ago

Commit 22c76521 parent 6978cdb4 files · +46 −15Browse files

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

Unified · Split

include/uapi/linux/netfilter/nf_tables.h+6−0
@@ -1522,15 +1522,21 @@ enum nft_flowtable_hook_attributes { · 1521 unmodified lines
15221522 *
15231523 * @NFTA_OSF_DREG: destination register (NLA_U32: nft_registers)
15241524 * @NFTA_OSF_TTL: Value of the TTL osf option (NLA_U8)
1525+ * @NFTA_OSF_FLAGS: flags (NLA_U32)
15251526 */
15261527 enum nft_osf_attributes {
15271528 NFTA_OSF_UNSPEC,
15281529 NFTA_OSF_DREG,
15291530 NFTA_OSF_TTL,
1531+ NFTA_OSF_FLAGS,
15301532 __NFTA_OSF_MAX,
15311533 };
15321534 #define NFTA_OSF_MAX (__NFTA_OSF_MAX - 1)
15331535
1536+enum nft_osf_flags {
1537+ NFT_OSF_F_VERSION = (1 << 0),
1538+};
1539+
15341540 /**
15351541 * enum nft_device_attributes - nf_tables device netlink attributes
15361542 *