aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/feat.h
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2008-09-04 01:30:19 -0400
committerGerrit Renker <gerrit@erg.abdn.ac.uk>2008-09-04 01:45:32 -0400
commit76f738a7950b559a23ab3c692c99a02f35a54f7f (patch)
tree51d8b63cc209821f73ae3af89a151d8185967c88 /net/dccp/feat.h
parent0a4822679d94e2b0117aeead06a19fad59533905 (diff)
dccp: Debugging functions for feature negotiation
Since all feature-negotiation processing now takes place in feat.c, functions for producing verbose debugging output are concentrated there. New functions to print out values, entry records, and options are provided, and also a macro is defined to not always have the function name in the output line. Thanks a lot to Wei Yongjun and Giuseppe Galeota for help with errors in an earlier revision of this patch. Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Diffstat (limited to 'net/dccp/feat.h')
-rw-r--r--net/dccp/feat.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/net/dccp/feat.h b/net/dccp/feat.h
index f8456bca4eeb..2217066e22d7 100644
--- a/net/dccp/feat.h
+++ b/net/dccp/feat.h
@@ -106,19 +106,6 @@ extern unsigned long sysctl_dccp_sequence_window;
106extern int sysctl_dccp_rx_ccid; 106extern int sysctl_dccp_rx_ccid;
107extern int sysctl_dccp_tx_ccid; 107extern int sysctl_dccp_tx_ccid;
108 108
109#ifdef CONFIG_IP_DCCP_DEBUG
110extern const char *dccp_feat_typename(const u8 type);
111extern const char *dccp_feat_name(const u8 feat);
112
113static inline void dccp_feat_debug(const u8 type, const u8 feat, const u8 val)
114{
115 dccp_pr_debug("%s(%s (%d), %d)\n", dccp_feat_typename(type),
116 dccp_feat_name(feat), feat, val);
117}
118#else
119#define dccp_feat_debug(type, feat, val)
120#endif /* CONFIG_IP_DCCP_DEBUG */
121
122extern int dccp_feat_init(struct sock *sk); 109extern int dccp_feat_init(struct sock *sk);
123extern void dccp_feat_initialise_sysctls(void); 110extern void dccp_feat_initialise_sysctls(void);
124extern int dccp_feat_register_sp(struct sock *sk, u8 feat, u8 is_local, 111extern int dccp_feat_register_sp(struct sock *sk, u8 feat, u8 is_local,