Add version option support to the nftables "osf" expression.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -1522,15 +1522,21 @@ enum nft_flowtable_hook_attributes { · 1521 unmodified lines | ||
| 1522 | 1522 | * |
| 1523 | 1523 | * @NFTA_OSF_DREG: destination register (NLA_U32: nft_registers) |
| 1524 | 1524 | * @NFTA_OSF_TTL: Value of the TTL osf option (NLA_U8) |
| 1525 | + * @NFTA_OSF_FLAGS: flags (NLA_U32) | |
| 1525 | 1526 | */ |
| 1526 | 1527 | enum nft_osf_attributes { |
| 1527 | 1528 | NFTA_OSF_UNSPEC, |
| 1528 | 1529 | NFTA_OSF_DREG, |
| 1529 | 1530 | NFTA_OSF_TTL, |
| 1531 | + NFTA_OSF_FLAGS, | |
| 1530 | 1532 | __NFTA_OSF_MAX, |
| 1531 | 1533 | }; |
| 1532 | 1534 | #define NFTA_OSF_MAX (__NFTA_OSF_MAX - 1) |
| 1533 | 1535 | |
| 1536 | +enum nft_osf_flags { | |
| 1537 | + NFT_OSF_F_VERSION = (1 << 0), | |
| 1538 | +}; | |
| 1539 | + | |
| 1534 | 1540 | /** |
| 1535 | 1541 | * enum nft_device_attributes - nf_tables device netlink attributes |
| 1536 | 1542 | * |