ipv4.h 539 字节
Newer Older
1 2 3 4 5 6
/*
 * ipv4 in net namespaces
 */

#ifndef __NETNS_IPV4_H__
#define __NETNS_IPV4_H__
7

8 9
#include <net/inet_frag.h>

10 11
struct ctl_table_header;
struct ipv4_devconf;
12
struct fib_rules_ops;
13
struct hlist_head;
14
struct sock;
15

16
struct netns_ipv4 {
17
#ifdef CONFIG_SYSCTL
18
	struct ctl_table_header	*forw_hdr;
19
#endif
20 21
	struct ipv4_devconf	*devconf_all;
	struct ipv4_devconf	*devconf_dflt;
22 23 24
#ifdef CONFIG_IP_MULTIPLE_TABLES
	struct fib_rules_ops	*rules_ops;
#endif
25
	struct hlist_head	*fib_table_hash;
26
	struct sock		*fibnl;
27 28

	struct netns_frags	frags;
29 30
};
#endif