Skip to content

Commit

Permalink
net, netns_xt: shrink netns_xt members
Browse files Browse the repository at this point in the history
In case if kernel was compiled without ebtables support
there is no need to keep ebt_table pointers in netns_xt
structure.

Make it config dependent.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Cyrill Gorcunov authored and David S. Miller committed Jul 6, 2009
1 parent 1490fd8 commit e04af02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/net/netns/x_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ struct ebt_table;

struct netns_xt {
struct list_head tables[NFPROTO_NUMPROTO];
#if defined(CONFIG_BRIDGE_NF_EBTABLES) || \
defined(CONFIG_BRIDGE_NF_EBTABLES_MODULE)
struct ebt_table *broute_table;
struct ebt_table *frame_filter;
struct ebt_table *frame_nat;
#endif
};
#endif

0 comments on commit e04af02

Please sign in to comment.