2
* INET An implementation of the TCP/IP protocol suite for the LINUX
3
* operating system. INET is implemented using the BSD Socket
4
* interface as the means of communication with the user level.
6
* Definitions for the "ping" module.
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public License
10
* as published by the Free Software Foundation; either version
11
* 2 of the License, or (at your option) any later version.
16
#include <net/netns/hash.h>
18
/* PING_HTABLE_SIZE must be power of 2 */
19
#define PING_HTABLE_SIZE 64
20
#define PING_HTABLE_MASK (PING_HTABLE_SIZE-1)
22
#define ping_portaddr_for_each_entry(__sk, node, list) \
23
hlist_nulls_for_each_entry(__sk, node, list, sk_nulls_node)
26
* gid_t is either uint or ushort. We want to pass it to
27
* proc_dointvec_minmax(), so it must not be larger than MAX_INT
29
#define GID_T_MAX (((gid_t)~0U) >> 1)
32
struct hlist_nulls_head hash[PING_HTABLE_SIZE];
36
struct ping_iter_state {
37
struct seq_net_private p;
41
extern struct proto ping_prot;
44
extern void ping_rcv(struct sk_buff *);
45
extern void ping_err(struct sk_buff *, u32 info);
48
extern int __init ping_proc_init(void);
49
extern void ping_proc_exit(void);
52
void __init ping_init(void);