summaryrefslogtreecommitdiff
path: root/include/net/ping.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-12-28 11:11:42 -0800
committerDavid S. Miller <davem@davemloft.net>2013-12-28 17:05:45 -0500
commitea074b3495a023c2cf969605d51991b2b9df9514 (patch)
treef79d1fe6a175cf470245f45791549233b813c698 /include/net/ping.h
parent068a6e183484b1c619025da502a6fbfa53c50991 (diff)
downloadkernel-common-ea074b3495a023c2cf969605d51991b2b9df9514.tar.gz
kernel-common-ea074b3495a023c2cf969605d51991b2b9df9514.tar.bz2
kernel-common-ea074b3495a023c2cf969605d51991b2b9df9514.zip
ipv4: ping make local stuff static
Don't export ping_table or ping_v4_sendmsg. Both are only used inside ping code. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ping.h')
-rw-r--r--include/net/ping.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/net/ping.h b/include/net/ping.h
index 90f48417b03d..76013653e08c 100644
--- a/include/net/ping.h
+++ b/include/net/ping.h
@@ -42,11 +42,6 @@ struct pingv6_ops {
const struct net_device *dev, int strict);
};
-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;
@@ -54,7 +49,6 @@ struct ping_iter_state {
};
extern struct proto ping_prot;
-extern struct ping_table ping_table;
#if IS_ENABLED(CONFIG_IPV6)
extern struct pingv6_ops pingv6_ops;
#endif
@@ -81,8 +75,6 @@ int ping_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
size_t len, int noblock, int flags, int *addr_len);
int ping_common_sendmsg(int family, struct msghdr *msg, size_t len,
void *user_icmph, size_t icmph_len);
-int ping_v4_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
- size_t len);
int ping_v6_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
size_t len);
int ping_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);