Lines Matching refs:udp_table
125 struct udp_table udp_table __read_mostly;
136 static struct udp_table *udp_get_table_prot(struct sock *sk) in udp_get_table_prot()
138 return sk->sk_prot->h.udp_table ? : sock_net(sk)->ipv4.udp_table; in udp_get_table_prot()
242 struct udp_table *udptable = udp_get_table_prot(sk); in udp_lib_get_port()
446 const struct udp_table *udptable) in udp4_lib_lookup1()
528 struct udp_table *udptable) in udp4_lib_lookup4()
533 static void udp_rehash4(struct udp_table *udptable, struct sock *sk, in udp_rehash4()
538 static void udp_unhash4(struct udp_table *udptable, struct sock *sk) in udp_unhash4()
546 struct udp_table *udptable) in udp4_lib_lookup4()
579 static void udp_rehash4(struct udp_table *udptable, struct sock *sk, in udp_rehash4()
602 static void udp_unhash4(struct udp_table *udptable, struct sock *sk) in udp_unhash4()
625 struct udp_table *udptable; in udp_lib_hash4()
633 udptable = net->ipv4.udp_table; in udp_lib_hash4()
679 int sdif, struct udp_table *udptable, struct sk_buff *skb) in __udp4_lib_lookup()
705 udptable == net->ipv4.udp_table) { in __udp4_lib_lookup()
748 struct udp_table *udptable) in __udp4_lib_lookup_skb()
769 sdif, net->ipv4.udp_table, NULL); in udp4_lib_lookup_skb()
782 dif, 0, net->ipv4.udp_table, NULL); in udp4_lib_lookup()
872 struct udp_table *udptable, in __udp4_lib_err_encap()
931 int __udp4_lib_err(struct sk_buff *skb, u32 info, struct udp_table *udptable) in __udp4_lib_err()
1027 return __udp4_lib_err(skb, info, dev_net(skb->dev)->ipv4.udp_table); in udp_err()
2249 struct udp_table *udptable = udp_get_table_prot(sk); in udp_lib_unhash()
2283 struct udp_table *udptable = udp_get_table_prot(sk); in udp_lib_rehash()
2558 struct udp_table *udptable, in __udp4_lib_mcast_deliver()
2692 int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, in __udp4_lib_rcv()
2809 struct udp_table *udptable = net->ipv4.udp_table; in __udp4_lib_mcast_demux_lookup()
2844 struct udp_table *udptable = net->ipv4.udp_table; in __udp4_lib_demux_lookup()
2936 return __udp4_lib_rcv(skb, dev_net(skb->dev)->ipv4.udp_table, IPPROTO_UDP); in udp_rcv()
3296 .h.udp_table = NULL,
3317 static struct udp_table *udp_get_table_seq(struct seq_file *seq, in udp_get_table_seq()
3324 return net->ipv4.udp_table; in udp_get_table_seq()
3328 return afinfo->udp_table ? : net->ipv4.udp_table; in udp_get_table_seq()
3335 struct udp_table *udptable; in udp_get_first()
3363 struct udp_table *udptable; in udp_get_next()
3416 struct udp_table *udptable; in udp_seq_stop()
3509 struct udp_table *udptable; in bpf_iter_udp_batch()
3761 .udp_table = NULL,
3811 void __init udp_table_init(struct udp_table *table, const char *name) in udp_table_init()
3861 static struct udp_table __net_init *udp_pernet_table_alloc(unsigned int hash_entries) in udp_pernet_table_alloc()
3863 struct udp_table *udptable; in udp_pernet_table_alloc()
3903 struct udp_table *udptable = net->ipv4.udp_table; in udp_pernet_table_free()
3905 if (udptable == &udp_table) in udp_pernet_table_free()
3914 struct udp_table *udptable; in udp_set_table()
3934 net->ipv4.udp_table = udptable; in udp_set_table()
3940 net->ipv4.udp_table = &udp_table; in udp_set_table()
4053 udp_table_init(&udp_table, "UDP"); in udp_init()