diff options
author | Patrick McHardy <kaber@trash.net> | 2015-04-12 21:10:41 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2015-06-02 13:03:58 +0200 |
commit | 8ede6005f41afb69e415e1227fc7800308a63819 (patch) | |
tree | ffafc83b6e8a0eb454ec7b48fa77620e6afa85ff /include/mini-gmp.h | |
parent | 9c641885afea6f46b62f591ed9b0e3006fb23701 (diff) |
netlink_delinearize: introduce register translation helper
Introduce a helper function to translate register numbers from the kernel
from the compat values to the NFT_REG32 values.
Internally we use the register numbers 0-16:
* 0 is the verdict register in both old and new addressing modes.
* 1-16 are the 32 bit data registers
The NFT_REG32_00 values are mapped to 1-16, the NFT_REG_1-NFT_REG_4
values are each use up 4 registers starting at 1 (1, 5, 9, 13).
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/mini-gmp.h')
0 files changed, 0 insertions, 0 deletions