udp_table
static const struct ib_field udp_table[] = {
ib_pack(udp_table, ARRAY_SIZE(udp_table),
int dif, int sdif, struct udp_table *tbl,
struct udp_table *udp_table;
struct udp_table *udp_table;
extern struct udp_table udp_table;
void udp_table_init(struct udp_table *, const char *);
static inline struct udp_hslot *udp_hashslot(struct udp_table *table,
static inline struct udp_hslot *udp_hashslot2(struct udp_table *table,
static inline void udp_table_hash4_init(struct udp_table *table)
static inline struct udp_hslot *udp_hashslot4(struct udp_table *table,
static inline void udp_table_hash4_init(struct udp_table *table)
static inline struct udp_hslot *udp_hashslot4(struct udp_table *table,
struct udp_table *tbl, struct sk_buff *skb);
int dif, int sdif, struct udp_table *tbl,
struct udp_table *udp_table;
extern struct udp_table udplite_table;
dif, sdif, net->ipv4.udp_table, NULL);
net->ipv4.udp_table, NULL);
udp_hash_entries = net->ipv4.udp_table->mask + 1;
if (!net_eq(net, &init_net) && net->ipv4.udp_table == &udp_table)
return __udp4_lib_err(skb, info, dev_net(skb->dev)->ipv4.udp_table);
struct udp_table udp_table __read_mostly;
static struct udp_table *udp_get_table_prot(struct sock *sk)
return sk->sk_prot->h.udp_table ? : sock_net(sk)->ipv4.udp_table;
struct udp_table *udptable = udp_get_table_prot(sk);
struct udp_table *udptable = udp_get_table_prot(sk);
struct udp_table *udptable = udp_get_table_prot(sk);
struct udp_table *udptable,
int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
struct udp_table *udptable = net->ipv4.udp_table;
struct udp_table *udptable = net->ipv4.udp_table;
return __udp4_lib_rcv(skb, dev_net(skb->dev)->ipv4.udp_table, IPPROTO_UDP);
.h.udp_table = NULL,
static struct udp_table *udp_get_table_seq(struct seq_file *seq,
return net->ipv4.udp_table;
return afinfo->udp_table ? : net->ipv4.udp_table;
struct udp_table *udptable;
struct udp_table *udptable;
struct udp_table *udptable;
struct udp_table *udptable;
.udp_table = NULL,
void __init udp_table_init(struct udp_table *table, const char *name)
static struct udp_table __net_init *udp_pernet_table_alloc(unsigned int hash_entries)
struct udp_table *udptable;
struct udp_table *udptable = net->ipv4.udp_table;
if (udptable == &udp_table)
struct udp_table *udptable;
net->ipv4.udp_table = udptable;
net->ipv4.udp_table = &udp_table;
udp_table_init(&udp_table, "UDP");
const struct udp_table *udptable)
struct udp_table *udptable)
static void udp_rehash4(struct udp_table *udptable, struct sock *sk,
static void udp_unhash4(struct udp_table *udptable, struct sock *sk)
struct udp_table *udptable)
static void udp_rehash4(struct udp_table *udptable, struct sock *sk,
static void udp_unhash4(struct udp_table *udptable, struct sock *sk)
struct udp_table *udptable;
udptable = net->ipv4.udp_table;
int sdif, struct udp_table *udptable, struct sk_buff *skb)
udptable == net->ipv4.udp_table) {
struct udp_table *udptable)
sdif, net->ipv4.udp_table, NULL);
dif, 0, net->ipv4.udp_table, NULL);
struct udp_table *udptable,
int __udp4_lib_err(struct sk_buff *skb, u32 info, struct udp_table *udptable)
udp_dump(sock_net(cb->skb->sk)->ipv4.udp_table, skb, cb, r);
return udp_dump_one(sock_net(cb->skb->sk)->ipv4.udp_table, cb, req);
struct udp_table *tbl)
return __udp_diag_destroy(in_skb, req, sock_net(in_skb->sk)->ipv4.udp_table);
static int udp_dump_one(struct udp_table *tbl,
static void udp_dump(struct udp_table *table, struct sk_buff *skb,
int __udp4_lib_rcv(struct sk_buff *, struct udp_table *, int);
int __udp4_lib_err(struct sk_buff *, u32, struct udp_table *);
sdif, net->ipv4.udp_table, NULL);
struct udp_table udplite_table __read_mostly;
.h.udp_table = &udplite_table,
.udp_table = &udplite_table,
int __udp6_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
struct udp_table *udptable = net->ipv4.udp_table;
return __udp6_lib_rcv(skb, dev_net(skb->dev)->ipv4.udp_table, IPPROTO_UDP);
.udp_table = NULL,
.h.udp_table = NULL,
const struct udp_table *udptable)
struct udp_table *udptable)
struct udp_table *udptable)
int dif, int sdif, struct udp_table *udptable,
udptable == net->ipv4.udp_table) {
struct udp_table *udptable)
sdif, net->ipv4.udp_table, NULL);
dif, 0, net->ipv4.udp_table, NULL);
struct udp_table *udptable,
struct udp_table *udptable)
dev_net(skb->dev)->ipv4.udp_table);
struct udp_table *udptable, int proto)
int __udp6_lib_rcv(struct sk_buff *, struct udp_table *, int);
__be32, struct udp_table *);
sdif, net->ipv4.udp_table, NULL);
.udp_table = &udplite_table,
.h.udp_table = &udplite_table,
struct udp_table *udptable;
udptable = sk->sk_net.net->ipv4.udp_table;