]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: add support to set meta keys
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 26 Dec 2013 19:23:07 +0000 (20:23 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 28 Dec 2013 22:08:20 +0000 (23:08 +0100)
commit35f9338e6ae0169b9a8fd665d4f02608224010c5
treeefed8635d49e5180e155827c6221c52b6b801ed9
parenta54d7b05fb241dae62039d2c200e9a18941cf250
netlink: add support to set meta keys

Arturo Borrero added kernel support to set meta keys in
http://patchwork.ozlabs.org/patch/305281/ and the corresponding
library support in http://patchwork.ozlabs.org/patch/305283/.

This patch enhances nft to use this new kernel feature. The
following example shows how to set the packet mark.

% nft add rule ip filter input meta mark set 22
% nft list table filter
table ip filter {
        chain input {
                 type filter hook input priority 0;
                 meta mark set 0x00000016
        }
}

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink_delinearize.c
src/netlink_linearize.c