Lines Matching refs:net
138 int ip_send_skb(struct net *net, struct sk_buff *skb);
192 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument
193 #define IP_INC_STATS_BH(net, field) SNMP_INC_STATS64_BH((net)->mib.ip_statistics, field) argument
194 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument
195 #define IP_ADD_STATS_BH(net, field, val) SNMP_ADD_STATS64_BH((net)->mib.ip_statistics, field, val) argument
196 #define IP_UPD_PO_STATS(net, field, val) SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val) argument
197 #define IP_UPD_PO_STATS_BH(net, field, val) SNMP_UPD_PO_STATS64_BH((net)->mib.ip_statistics, field,… argument
198 #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) argument
199 #define NET_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.net_statistics, field) argument
200 #define NET_INC_STATS_USER(net, field) SNMP_INC_STATS_USER((net)->mib.net_statistics, field) argument
201 #define NET_ADD_STATS(net, field, adnd) SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument
202 #define NET_ADD_STATS_BH(net, field, adnd) SNMP_ADD_STATS_BH((net)->mib.net_statistics, field, adnd) argument
203 #define NET_ADD_STATS_USER(net, field, adnd) SNMP_ADD_STATS_USER((net)->mib.net_statistics, field, … argument
215 void inet_get_local_port_range(struct net *net, int *low, int *high);
218 static inline int inet_is_local_reserved_port(struct net *net, int port) in inet_is_local_reserved_port() argument
220 if (!net->ipv4.sysctl_local_reserved_ports) in inet_is_local_reserved_port()
222 return test_bit(port, net->ipv4.sysctl_local_reserved_ports); in inet_is_local_reserved_port()
231 static inline int inet_is_local_reserved_port(struct net *net, int port) in inet_is_local_reserved_port() argument
252 #define IP4_REPLY_MARK(net, mark) \ argument
253 ((net)->ipv4.sysctl_fwmark_reflect ? (mark) : 0)
302 struct net *net = dev_net(dst->dev); in ip_dst_mtu_maybe_forward() local
304 if (net->ipv4.sysctl_ip_fwd_use_pmtu || in ip_dst_mtu_maybe_forward()
323 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs);
325 static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, in ip_select_ident_segs() argument
343 __ip_select_ident(net, iph, segs); in ip_select_ident_segs()
347 static inline void ip_select_ident(struct net *net, struct sk_buff *skb, in ip_select_ident() argument
350 ip_select_ident_segs(net, skb, sk, 1); in ip_select_ident()
491 int ip_frag_mem(struct net *net);
514 int ip_options_compile(struct net *net, struct ip_options *opt,
516 int ip_options_get(struct net *net, struct ip_options_rcu **optp,
518 int ip_options_get_from_user(struct net *net, struct ip_options_rcu **optp,
530 int ip_cmsg_send(struct net *net, struct msghdr *msg,