mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
netfilter: nft_objref: support for stateful object maps
This patch allows us to refer to stateful object dictionaries, the source register indicates the key data to be used to look up for the corresponding state object. We can refer to these maps through names or, alternatively, the map transaction id. This allows us to refer to both anonymous and named maps. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
8aeff920dc
commit
63aea29060
3 changed files with 125 additions and 1 deletions
|
|
@ -1153,11 +1153,17 @@ enum nft_fwd_attributes {
|
|||
*
|
||||
* @NFTA_OBJREF_IMM_TYPE: object type for immediate reference (NLA_U32: nft_register)
|
||||
* @NFTA_OBJREF_IMM_NAME: object name for immediate reference (NLA_STRING)
|
||||
* @NFTA_OBJREF_SET_SREG: source register of the data to look for (NLA_U32: nft_registers)
|
||||
* @NFTA_OBJREF_SET_NAME: name of the set where to look for (NLA_STRING)
|
||||
* @NFTA_OBJREF_SET_ID: id of the set where to look for in this transaction (NLA_U32)
|
||||
*/
|
||||
enum nft_objref_attributes {
|
||||
NFTA_OBJREF_UNSPEC,
|
||||
NFTA_OBJREF_IMM_TYPE,
|
||||
NFTA_OBJREF_IMM_NAME,
|
||||
NFTA_OBJREF_SET_SREG,
|
||||
NFTA_OBJREF_SET_NAME,
|
||||
NFTA_OBJREF_SET_ID,
|
||||
__NFTA_OBJREF_MAX
|
||||
};
|
||||
#define NFTA_OBJREF_MAX (__NFTA_OBJREF_MAX - 1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue