Lines Matching refs:net
110 int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb);
111 int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb);
112 int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
113 int (*output)(struct net *, struct sock *, struct sk_buff *));
115 int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
116 int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
134 int ip_send_skb(struct net *net, struct sk_buff *skb);
188 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument
189 #define IP_INC_STATS_BH(net, field) SNMP_INC_STATS64_BH((net)->mib.ip_statistics, field) argument
190 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument
191 #define IP_ADD_STATS_BH(net, field, val) SNMP_ADD_STATS64_BH((net)->mib.ip_statistics, field, val) argument
192 #define IP_UPD_PO_STATS(net, field, val) SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val) argument
193 #define IP_UPD_PO_STATS_BH(net, field, val) SNMP_UPD_PO_STATS64_BH((net)->mib.ip_statistics, field,… argument
194 #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) argument
195 #define NET_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.net_statistics, field) argument
196 #define NET_INC_STATS_USER(net, field) SNMP_INC_STATS_USER((net)->mib.net_statistics, field) argument
197 #define NET_ADD_STATS(net, field, adnd) SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument
198 #define NET_ADD_STATS_BH(net, field, adnd) SNMP_ADD_STATS_BH((net)->mib.net_statistics, field, adnd) argument
199 #define NET_ADD_STATS_USER(net, field, adnd) SNMP_ADD_STATS_USER((net)->mib.net_statistics, field, … argument
221 void inet_get_local_port_range(struct net *net, int *low, int *high);
224 static inline int inet_is_local_reserved_port(struct net *net, int port) in inet_is_local_reserved_port() argument
226 if (!net->ipv4.sysctl_local_reserved_ports) in inet_is_local_reserved_port()
228 return test_bit(port, net->ipv4.sysctl_local_reserved_ports); in inet_is_local_reserved_port()
237 static inline int inet_is_local_reserved_port(struct net *net, int port) in inet_is_local_reserved_port() argument
258 #define IP4_REPLY_MARK(net, mark) \ argument
259 ((net)->ipv4.sysctl_fwmark_reflect ? (mark) : 0)
310 struct net *net = dev_net(dst->dev); in ip_dst_mtu_maybe_forward() local
312 if (net->ipv4.sysctl_ip_fwd_use_pmtu || in ip_dst_mtu_maybe_forward()
334 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs);
336 static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, in ip_select_ident_segs() argument
354 __ip_select_ident(net, iph, segs); in ip_select_ident_segs()
358 static inline void ip_select_ident(struct net *net, struct sk_buff *skb, in ip_select_ident() argument
361 ip_select_ident_segs(net, skb, sk, 1); in ip_select_ident()
509 int ip_defrag(struct net *net, struct sk_buff *skb, u32 user);
511 struct sk_buff *ip_check_defrag(struct net *net, struct sk_buff *skb, u32 user);
513 static inline struct sk_buff *ip_check_defrag(struct net *net, struct sk_buff *skb, u32 user) in ip_check_defrag() argument
518 int ip_frag_mem(struct net *net);
541 int ip_options_compile(struct net *net, struct ip_options *opt,
543 int ip_options_get(struct net *net, struct ip_options_rcu **optp,
545 int ip_options_get_from_user(struct net *net, struct ip_options_rcu **optp,
557 int ip_cmsg_send(struct net *net, struct msghdr *msg,