Lines Matching refs:net
84 struct net *net, unsigned int num) in udp_hashslot() argument
86 return &table->hash[udp_hashfn(net, num, table->mask)]; in udp_hashslot()
199 static inline __be16 udp_flow_src_port(struct net *net, struct sk_buff *skb, in udp_flow_src_port() argument
206 inet_get_local_port_range(net, &min, &max); in udp_flow_src_port()
257 struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport,
259 struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport,
262 struct sock *udp6_lib_lookup(struct net *net,
266 struct sock *__udp6_lib_lookup(struct net *net,
274 #define UDP_INC_STATS_USER(net, field, is_udplite) do { \ argument
275 if (is_udplite) SNMP_INC_STATS_USER((net)->mib.udplite_statistics, field); \
276 else SNMP_INC_STATS_USER((net)->mib.udp_statistics, field); } while(0)
277 #define UDP_INC_STATS_BH(net, field, is_udplite) do { \ argument
278 if (is_udplite) SNMP_INC_STATS_BH((net)->mib.udplite_statistics, field); \
279 else SNMP_INC_STATS_BH((net)->mib.udp_statistics, field); } while(0)
281 #define UDP6_INC_STATS_BH(net, field, is_udplite) do { \ argument
282 if (is_udplite) SNMP_INC_STATS_BH((net)->mib.udplite_stats_in6, field);\
283 else SNMP_INC_STATS_BH((net)->mib.udp_stats_in6, field); \
285 #define UDP6_INC_STATS_USER(net, field, __lite) do { \ argument
286 if (__lite) SNMP_INC_STATS_USER((net)->mib.udplite_stats_in6, field); \
287 else SNMP_INC_STATS_USER((net)->mib.udp_stats_in6, field); \
321 int udp_proc_register(struct net *net, struct udp_seq_afinfo *afinfo);
322 void udp_proc_unregister(struct net *net, struct udp_seq_afinfo *afinfo);