Declaring icmp protocols has its own proc entry.

Signed-off-by: Masatake YAMATO <[email protected]>
---
 net/ipv4/ping.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c
index 6232d47..5b4d67d 100644
--- a/net/ipv4/ping.c
+++ b/net/ipv4/ping.c
@@ -748,6 +748,9 @@ struct proto ping_prot = {
        .unhash =       ping_v4_unhash,
        .get_port =     ping_v4_get_port,
        .obj_size =     sizeof(struct inet_sock),
+#ifdef CONFIG_PROC_FS
+       .has_own_proc_entry= 1,
+#endif
 };
 EXPORT_SYMBOL(ping_prot);
 
-- 
1.7.11.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to