aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/addrconf.h2
-rw-r--r--include/net/if_inet6.h2
-rw-r--r--include/net/netfilter/nf_conntrack_l4proto.h39
3 files changed, 43 insertions, 0 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index 14b789a123e7..1656c5978498 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -317,6 +317,8 @@ bool ipv6_chk_acast_addr(struct net *net, struct net_device *dev,
317 const struct in6_addr *addr); 317 const struct in6_addr *addr);
318bool ipv6_chk_acast_addr_src(struct net *net, struct net_device *dev, 318bool ipv6_chk_acast_addr_src(struct net *net, struct net_device *dev,
319 const struct in6_addr *addr); 319 const struct in6_addr *addr);
320int ipv6_anycast_init(void);
321void ipv6_anycast_cleanup(void);
320 322
321/* Device notifier */ 323/* Device notifier */
322int register_inet6addr_notifier(struct notifier_block *nb); 324int register_inet6addr_notifier(struct notifier_block *nb);
diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h
index d7578cf49c3a..c9c78c15bce0 100644
--- a/include/net/if_inet6.h
+++ b/include/net/if_inet6.h
@@ -146,10 +146,12 @@ struct ifacaddr6 {
146 struct in6_addr aca_addr; 146 struct in6_addr aca_addr;
147 struct fib6_info *aca_rt; 147 struct fib6_info *aca_rt;
148 struct ifacaddr6 *aca_next; 148 struct ifacaddr6 *aca_next;
149 struct hlist_node aca_addr_lst;
149 int aca_users; 150 int aca_users;
150 refcount_t aca_refcnt; 151 refcount_t aca_refcnt;
151 unsigned long aca_cstamp; 152 unsigned long aca_cstamp;
152 unsigned long aca_tstamp; 153 unsigned long aca_tstamp;
154 struct rcu_head rcu;
153}; 155};
154 156
155#define IFA_HOST IPV6_ADDR_LOOPBACK 157#define IFA_HOST IPV6_ADDR_LOOPBACK
diff --git a/include/net/netfilter/nf_conntrack_l4proto.h b/include/net/netfilter/nf_conntrack_l4proto.h
index eed04af9b75e..ae7b86f587f2 100644
--- a/include/net/netfilter/nf_conntrack_l4proto.h
+++ b/include/net/netfilter/nf_conntrack_l4proto.h
@@ -153,4 +153,43 @@ void nf_ct_l4proto_log_invalid(const struct sk_buff *skb,
153 const char *fmt, ...) { } 153 const char *fmt, ...) { }
154#endif /* CONFIG_SYSCTL */ 154#endif /* CONFIG_SYSCTL */
155 155
156static inline struct nf_generic_net *nf_generic_pernet(struct net *net)
157{
158 return &net->ct.nf_ct_proto.generic;
159}
160
161static inline struct nf_tcp_net *nf_tcp_pernet(struct net *net)
162{
163 return &net->ct.nf_ct_proto.tcp;
164}
165
166static inline struct nf_udp_net *nf_udp_pernet(struct net *net)
167{
168 return &net->ct.nf_ct_proto.udp;
169}
170
171static inline struct nf_icmp_net *nf_icmp_pernet(struct net *net)
172{
173 return &net->ct.nf_ct_proto.icmp;
174}
175
176static inline struct nf_icmp_net *nf_icmpv6_pernet(struct net *net)
177{
178 return &net->ct.nf_ct_proto.icmpv6;
179}
180
181#ifdef CONFIG_NF_CT_PROTO_DCCP
182static inline struct nf_dccp_net *nf_dccp_pernet(struct net *net)
183{
184 return &net->ct.nf_ct_proto.dccp;
185}
186#endif
187
188#ifdef CONFIG_NF_CT_PROTO_SCTP
189static inline struct nf_sctp_net *nf_sctp_pernet(struct net *net)
190{
191 return &net->ct.nf_ct_proto.sctp;
192}
193#endif
194
156#endif /*_NF_CONNTRACK_PROTOCOL_H*/ 195#endif /*_NF_CONNTRACK_PROTOCOL_H*/