]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: Correct initial value of bytes counter in nftables rule
authorYanchuan Nian <ycnian@gmail.com>
Thu, 19 Jun 2014 12:23:47 +0000 (20:23 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 25 Jun 2014 12:13:03 +0000 (14:13 +0200)
commit2a96066f56cb007711d70ac2e60415f0c86f4233
treeea84ecbbb44a10a92954ae3df3be331aaa567cdf
parent6b39cecf634ade76ae6b19c632ef5890639481cb
netlink: Correct initial value of bytes counter in nftables rule

Packages can be accounted by nftables through such command.
% nft add rule filter output ip daddr 8.8.8.8 counter

You can also give the initial values of packets and bytes.
% nft add rule filter output ip daddr 8.8.8.8 counter  packets 10 bytes 20

But packets and bytes are both initialized to 10 in above command for there is
a mistake in the program.

Signed-off-by: Yanchuan Nian <ycnian@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink_linearize.c