-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vasiliy Kulikov
authored and
David S. Miller
committed
May 13, 2011
1 parent
ddefb5a
commit cf78cd5
Showing
8 changed files
with
1,111 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: f20190302e3e697a166cc28ebef43058749dedda | ||
refs/heads/master: c319b4d76b9e583a5d88d6bf190e079c4e43213d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* INET An implementation of the TCP/IP protocol suite for the LINUX | ||
* operating system. INET is implemented using the BSD Socket | ||
* interface as the means of communication with the user level. | ||
* | ||
* Definitions for the "ping" module. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version | ||
* 2 of the License, or (at your option) any later version. | ||
*/ | ||
#ifndef _PING_H | ||
#define _PING_H | ||
|
||
#include <net/netns/hash.h> | ||
|
||
/* PING_HTABLE_SIZE must be power of 2 */ | ||
#define PING_HTABLE_SIZE 64 | ||
#define PING_HTABLE_MASK (PING_HTABLE_SIZE-1) | ||
|
||
#define ping_portaddr_for_each_entry(__sk, node, list) \ | ||
hlist_nulls_for_each_entry(__sk, node, list, sk_nulls_node) | ||
|
||
/* | ||
* gid_t is either uint or ushort. We want to pass it to | ||
* proc_dointvec_minmax(), so it must not be larger than MAX_INT | ||
*/ | ||
#define GID_T_MAX (((gid_t)~0U) >> 1) | ||
|
||
struct ping_table { | ||
struct hlist_nulls_head hash[PING_HTABLE_SIZE]; | ||
rwlock_t lock; | ||
}; | ||
|
||
struct ping_iter_state { | ||
struct seq_net_private p; | ||
int bucket; | ||
}; | ||
|
||
extern struct proto ping_prot; | ||
|
||
|
||
extern void ping_rcv(struct sk_buff *); | ||
extern void ping_err(struct sk_buff *, u32 info); | ||
|
||
extern void inet_get_ping_group_range_net(struct net *net, unsigned int *low, unsigned int *high); | ||
|
||
#ifdef CONFIG_PROC_FS | ||
extern int __init ping_proc_init(void); | ||
extern void ping_proc_exit(void); | ||
#endif | ||
|
||
void __init ping_init(void); | ||
|
||
|
||
#endif /* _PING_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.