Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25-rc7 /net/dccp/feat.h

Filename:/net/dccp/feat.h
Lines Added:0
Lines Deleted:26
Also changed in: (Previous) 2.6.25-rc6  2.6.25-rc5  2.6.25-rc4  2.6.25-rc3  2.6.25-rc2  2.6.25-rc1 
(Following) 2.6.25-rc8  2.6.25-rc9  2.6.25 

Location
[  2.6.25-rc7
  [  net
    [  dccp
       o  feat.h

Patch

diff --git a/net/dccp/feat.h b/net/dccp/feat.h
index 177f7de..e272222 100644
--- a/net/dccp/feat.h
+++ b/net/dccp/feat.h
@@ -14,32 +14,6 @@
 #include <linux/types.h>
 #include "dccp.h"
 
-static inline int dccp_feat_is_valid_length(u8 type, u8 feature, u8 len)
-{
-   /* sec. 6.1: Confirm has at least length 3,
-    * sec. 6.2: Change  has at least length 4 */
-   if (len < 3)
-      return 1;
-   if (len < 4  && (type == DCCPO_CHANGE_L || type == DCCPO_CHANGE_R))
-      return 1;
-   /* XXX: add per-feature length validation (sec. 6.6.8) */
-   return 0;
-}
-
-static inline int dccp_feat_is_reserved(const u8 feat)
-{
-   return (feat > DCCPF_DATA_CHECKSUM &&
-      feat < DCCPF_MIN_CCID_SPECIFIC) ||
-      feat == DCCPF_RESERVED;
-}
-
-/* feature negotiation knows only these four option types (RFC 4340, sec. 6) */
-static inline int dccp_feat_is_valid_type(const u8 optnum)
-{
-   return optnum >= DCCPO_CHANGE_L && optnum <= DCCPO_CONFIRM_R;
-
-}
-
 #ifdef CONFIG_IP_DCCP_DEBUG
 extern const char *dccp_feat_typename(const u8 type);
 extern const char *dccp_feat_name(const u8 feat);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.