mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-26 08:55:40 +00:00
Place all existing user defined tables in struct net *, instead of having one list per family. This saves us from one level of indentation in netlink dump functions. Place pointer to struct nft_af_info in struct nft_table temporarily, as we still need this to put back reference module reference counter on table removal. This patch comes in preparation for the removal of struct nft_af_info. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
23 lines
466 B
C
23 lines
466 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _NETNS_NFTABLES_H_
|
|
#define _NETNS_NFTABLES_H_
|
|
|
|
#include <linux/list.h>
|
|
|
|
struct nft_af_info;
|
|
|
|
struct netns_nftables {
|
|
struct list_head af_info;
|
|
struct list_head tables;
|
|
struct list_head commit_list;
|
|
struct nft_af_info *ipv4;
|
|
struct nft_af_info *ipv6;
|
|
struct nft_af_info *inet;
|
|
struct nft_af_info *arp;
|
|
struct nft_af_info *bridge;
|
|
struct nft_af_info *netdev;
|
|
unsigned int base_seq;
|
|
u8 gencursor;
|
|
};
|
|
|
|
#endif
|