Lines Matching full:net

29 #include <net/inet_sock.h>
30 #include <net/route.h>
31 #include <net/snmp.h>
32 #include <net/flow.h>
33 #include <net/flow_dissector.h>
34 #include <net/netns/hash.h>
35 #include <net/lwtunnel.h>
36 #include <net/inet_dscp.h>
169 void ip_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int proto);
171 int ip_mr_output(struct net *net, struct sock *sk, struct sk_buff *skb);
172 int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb);
173 int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb);
174 int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
175 int (*output)(struct net *, struct sock *, struct sk_buff *));
215 int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
216 int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
233 int ip_send_skb(struct net *net, struct sk_buff *skb);
294 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument
295 #define __IP_INC_STATS(net, field) __SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument
296 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument
297 #define __IP_ADD_STATS(net, field, val) __SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument
298 #define IP_UPD_PO_STATS(net, field, val) SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val) argument
299 #define __IP_UPD_PO_STATS(net, field, val) __SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, v… argument
300 #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) argument
301 #define __NET_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.net_statistics, field) argument
302 #define NET_ADD_STATS(net, field, adnd) SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument
303 #define __NET_ADD_STATS(net, field, adnd) __SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument
353 static inline void inet_get_local_port_range(const struct net *net, int *low, int *high) in inet_get_local_port_range() argument
355 u32 range = READ_ONCE(net->ipv4.ip_local_ports.range); in inet_get_local_port_range()
363 static inline bool inet_is_local_reserved_port(const struct net *net, unsigned short port) in inet_is_local_reserved_port() argument
365 if (!net->ipv4.sysctl_local_reserved_ports) in inet_is_local_reserved_port()
367 return test_bit(port, net->ipv4.sysctl_local_reserved_ports); in inet_is_local_reserved_port()
375 static inline bool inet_port_requires_bind_service(struct net *net, unsigned short port) in inet_port_requires_bind_service() argument
377 return port < READ_ONCE(net->ipv4.sysctl_ip_prot_sock); in inet_port_requires_bind_service()
381 static inline bool inet_is_local_reserved_port(struct net *net, unsigned short port) in inet_is_local_reserved_port() argument
386 static inline bool inet_port_requires_bind_service(struct net *net, unsigned short port) in inet_port_requires_bind_service() argument
403 #define IP4_REPLY_MARK(net, mark) \ argument
404 (READ_ONCE((net)->ipv4.sysctl_fwmark_reflect) ? (mark) : 0)
412 #include <net/dst.h>
473 struct net *net; in ip_dst_mtu_maybe_forward() local
478 net = dev_net_rcu(dev); in ip_dst_mtu_maybe_forward()
479 if (READ_ONCE(net->ipv4.sysctl_ip_fwd_use_pmtu) || in ip_dst_mtu_maybe_forward()
555 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs);
557 static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, in ip_select_ident_segs() argument
585 __ip_select_ident(net, iph, segs); in ip_select_ident_segs()
589 static inline void ip_select_ident(struct net *net, struct sk_buff *skb, in ip_select_ident() argument
592 ip_select_ident_segs(net, skb, sk, 1); in ip_select_ident()
705 static inline u32 ipv4_portaddr_hash(const struct net *net, in ipv4_portaddr_hash() argument
709 return jhash_1word((__force u32)saddr, net_hash_mix(net)) ^ port; in ipv4_portaddr_hash()
744 int ip_defrag(struct net *net, struct sk_buff *skb, u32 user);
746 struct sk_buff *ip_check_defrag(struct net *net, struct sk_buff *skb, u32 user);
748 static inline struct sk_buff *ip_check_defrag(struct net *net, struct sk_buff *skb, u32 user) in ip_check_defrag() argument
767 int __ip_options_echo(struct net *net, struct ip_options *dopt,
769 static inline int ip_options_echo(struct net *net, struct ip_options *dopt, in ip_options_echo() argument
772 return __ip_options_echo(net, dopt, skb, &IPCB(skb)->opt); in ip_options_echo()
776 int __ip_options_compile(struct net *net, struct ip_options *opt,
778 int ip_options_compile(struct net *net, struct ip_options *opt,
780 int ip_options_get(struct net *net, struct ip_options_rcu **optp,
818 bool icmp_global_allow(struct net *net);
819 void icmp_global_consume(struct net *net);