diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2009-01-16 18:36:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 17:34:05 -0500 |
commit | f3f3abb62ccb1a1c77bcce855c04e12356e6ac95 (patch) | |
tree | 6b3e73207a047e600ab44bfe126132c538f4d772 /net/dccp/feat.h | |
parent | 883ca833e5fb814fb03426c9d35e5489ce43e8da (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 and
discussion with 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/feat.h')
-rw-r--r-- | net/dccp/feat.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/net/dccp/feat.h b/net/dccp/feat.h index 40aa7a10bd5f..f96721619def 100644 --- a/net/dccp/feat.h +++ b/net/dccp/feat.h | |||
@@ -107,19 +107,6 @@ extern unsigned long sysctl_dccp_sequence_window; | |||
107 | extern int sysctl_dccp_rx_ccid; | 107 | extern int sysctl_dccp_rx_ccid; |
108 | extern int sysctl_dccp_tx_ccid; | 108 | extern int sysctl_dccp_tx_ccid; |
109 | 109 | ||
110 | #ifdef CONFIG_IP_DCCP_DEBUG | ||
111 | extern const char *dccp_feat_typename(const u8 type); | ||
112 | extern const char *dccp_feat_name(const u8 feat); | ||
113 | |||
114 | static inline void dccp_feat_debug(const u8 type, const u8 feat, const u8 val) | ||
115 | { | ||
116 | dccp_pr_debug("%s(%s (%d), %d)\n", dccp_feat_typename(type), | ||
117 | dccp_feat_name(feat), feat, val); | ||
118 | } | ||
119 | #else | ||
120 | #define dccp_feat_debug(type, feat, val) | ||
121 | #endif /* CONFIG_IP_DCCP_DEBUG */ | ||
122 | |||
123 | extern int dccp_feat_init(struct sock *sk); | 110 | extern int dccp_feat_init(struct sock *sk); |
124 | extern void dccp_feat_initialise_sysctls(void); | 111 | extern void dccp_feat_initialise_sysctls(void); |
125 | extern int dccp_feat_register_sp(struct sock *sk, u8 feat, u8 is_local, | 112 | extern int dccp_feat_register_sp(struct sock *sk, u8 feat, u8 is_local, |