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
1522 *1522 *
1523 * @NFTA_OSF_DREG: destination register (NLA_U32: nft_registers)1523 * @NFTA_OSF_DREG: destination register (NLA_U32: nft_registers)
1524 * @NFTA_OSF_TTL: Value of the TTL osf option (NLA_U8)1524 * @NFTA_OSF_TTL: Value of the TTL osf option (NLA_U8)
1525 * @NFTA_OSF_FLAGS: flags (NLA_U32)
1525 */1526 */
1526enum nft_osf_attributes {1527enum nft_osf_attributes {
1527 NFTA_OSF_UNSPEC,1528 NFTA_OSF_UNSPEC,
1528 NFTA_OSF_DREG,1529 NFTA_OSF_DREG,
1529 NFTA_OSF_TTL,1530 NFTA_OSF_TTL,
1531 NFTA_OSF_FLAGS,
1530 __NFTA_OSF_MAX,1532 __NFTA_OSF_MAX,
1531};1533};
1532#define NFTA_OSF_MAX (__NFTA_OSF_MAX - 1)1534#define NFTA_OSF_MAX (__NFTA_OSF_MAX - 1)
1533 1535
1536enum nft_osf_flags {
1537 NFT_OSF_F_VERSION = (1 << 0),
1538};
1539
1534/**1540/**
1535 * enum nft_device_attributes - nf_tables device netlink attributes1541 * enum nft_device_attributes - nf_tables device netlink attributes
1536 *1542 *