]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/l2tp/l2tp_core.h
l2tp: Add debugfs files for dumping l2tp debug info
[mv-sheeva.git] / net / l2tp / l2tp_core.h
index 2974d9ade1676b055edfba671697eba3a617da05..571335530c6fa84a41cc4d7e299aeb8a37b920b0 100644 (file)
@@ -133,7 +133,9 @@ struct l2tp_session {
        void (*session_close)(struct l2tp_session *session);
        void (*ref)(struct l2tp_session *session);
        void (*deref)(struct l2tp_session *session);
-
+#ifdef CONFIG_L2TP_DEBUGFS
+       void (*show)(struct seq_file *m, void *priv);
+#endif
        uint8_t                 priv[0];        /* private data */
 };
 
@@ -166,7 +168,9 @@ struct l2tp_tunnel {
        struct net              *l2tp_net;      /* the net we belong to */
 
        atomic_t                ref_count;
-
+#ifdef CONFIG_DEBUG_FS
+       void (*show)(struct seq_file *m, void *arg);
+#endif
        int (*recv_payload_hook)(struct sk_buff *skb);
        void (*old_sk_destruct)(struct sock *);
        struct sock             *sock;          /* Parent socket */