Lines Matching refs:net

211 #define IP6_REPLY_MARK(net, mark) \  argument
212 ((net)->ipv6.sysctl.fwmark_reflect ? (mark) : 0)
220 #define _DEVINC(net, statname, mod, idev, field) \ argument
225 mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
229 #define _DEVINCATOMIC(net, statname, mod, idev, field) \ argument
234 mod##SNMP_INC_STATS((net)->mib.statname##_statistics, (field));\
238 #define _DEVINC_ATOMIC_ATOMIC(net, statname, idev, field) \ argument
243 SNMP_INC_STATS_ATOMIC_LONG((net)->mib.statname##_statistics, (field));\
246 #define _DEVADD(net, statname, mod, idev, field, val) \ argument
251 mod##SNMP_ADD_STATS((net)->mib.statname##_statistics, (field), (val));\
254 #define _DEVUPD(net, statname, mod, idev, field, val) \ argument
259 mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\
264 #define IP6_INC_STATS(net, idev,field) \ argument
265 _DEVINC(net, ipv6, , idev, field)
266 #define __IP6_INC_STATS(net, idev,field) \ argument
267 _DEVINC(net, ipv6, __, idev, field)
268 #define IP6_ADD_STATS(net, idev,field,val) \ argument
269 _DEVADD(net, ipv6, , idev, field, val)
270 #define __IP6_ADD_STATS(net, idev,field,val) \ argument
271 _DEVADD(net, ipv6, __, idev, field, val)
272 #define IP6_UPD_PO_STATS(net, idev,field,val) \ argument
273 _DEVUPD(net, ipv6, , idev, field, val)
274 #define __IP6_UPD_PO_STATS(net, idev,field,val) \ argument
275 _DEVUPD(net, ipv6, __, idev, field, val)
276 #define ICMP6_INC_STATS(net, idev, field) \ argument
277 _DEVINCATOMIC(net, icmpv6, , idev, field)
278 #define __ICMP6_INC_STATS(net, idev, field) \ argument
279 _DEVINCATOMIC(net, icmpv6, __, idev, field)
281 #define ICMP6MSGOUT_INC_STATS(net, idev, field) \ argument
282 _DEVINC_ATOMIC_ATOMIC(net, icmpv6msg, idev, field +256)
283 #define ICMP6MSGIN_INC_STATS(net, idev, field) \ argument
284 _DEVINC_ATOMIC_ATOMIC(net, icmpv6msg, idev, field)
341 struct net *fl_net;
431 bool ip6_autoflowlabel(struct net *net, const struct ipv6_pinfo *np);
797 static inline u32 ipv6_portaddr_hash(const struct net *net, in ipv6_portaddr_hash() argument
801 unsigned int hash, mix = net_hash_mix(net); in ipv6_portaddr_hash()
904 __be32 ipv6_select_ident(struct net *net,
907 __be32 ipv6_proxy_select_ident(struct net *net, struct sk_buff *skb);
941 static inline bool ipv6_can_nonlocal_bind(struct net *net, in ipv6_can_nonlocal_bind() argument
944 return net->ipv6.sysctl.ip_nonlocal_bind || in ipv6_can_nonlocal_bind()
959 static inline __be32 ip6_make_flowlabel(struct net *net, struct sk_buff *skb, in ip6_make_flowlabel() argument
971 net->ipv6.sysctl.auto_flowlabels == IP6_AUTO_FLOW_LABEL_OFF || in ip6_make_flowlabel()
973 net->ipv6.sysctl.auto_flowlabels != IP6_AUTO_FLOW_LABEL_FORCED)) in ip6_make_flowlabel()
986 if (net->ipv6.sysctl.flowlabel_state_ranges) in ip6_make_flowlabel()
992 static inline int ip6_default_np_autolabel(struct net *net) in ip6_default_np_autolabel() argument
994 switch (net->ipv6.sysctl.auto_flowlabels) { in ip6_default_np_autolabel()
1005 static inline __be32 ip6_make_flowlabel(struct net *net, struct sk_buff *skb, in ip6_make_flowlabel() argument
1011 static inline int ip6_default_np_autolabel(struct net *net) in ip6_default_np_autolabel() argument
1018 static inline int ip6_multipath_hash_policy(const struct net *net) in ip6_multipath_hash_policy() argument
1020 return net->ipv6.sysctl.multipath_hash_policy; in ip6_multipath_hash_policy()
1022 static inline u32 ip6_multipath_hash_fields(const struct net *net) in ip6_multipath_hash_fields() argument
1024 return net->ipv6.sysctl.multipath_hash_fields; in ip6_multipath_hash_fields()
1027 static inline int ip6_multipath_hash_policy(const struct net *net) in ip6_multipath_hash_policy() argument
1031 static inline u32 ip6_multipath_hash_fields(const struct net *net) in ip6_multipath_hash_fields() argument
1089 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb);
1129 int ip6_dst_lookup(struct net *net, struct sock *sk, struct dst_entry **dst,
1131 struct dst_entry *ip6_dst_lookup_flow(struct net *net, const struct sock *sk, struct flowi6 *fl6,
1138 struct net *net, struct socket *sock,
1142 struct dst_entry *ip6_blackhole_route(struct net *net,
1149 int ip6_output(struct net *net, struct sock *sk, struct sk_buff *skb);
1153 void ip6_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int nexthdr,
1156 int __ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
1157 int ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
1256 int ac6_proc_init(struct net *net);
1257 void ac6_proc_exit(struct net *net);
1260 int tcp6_proc_init(struct net *net);
1261 void tcp6_proc_exit(struct net *net);
1262 int udp6_proc_init(struct net *net);
1263 void udp6_proc_exit(struct net *net);
1272 static inline int ac6_proc_init(struct net *net) { return 0; } in ac6_proc_init() argument
1273 static inline void ac6_proc_exit(struct net *net) { } in ac6_proc_exit() argument
1279 struct ctl_table *ipv6_icmp_sysctl_init(struct net *net);
1281 struct ctl_table *ipv6_route_sysctl_init(struct net *net);
1282 size_t ipv6_route_sysctl_table_size(struct net *net);