Skip to contentSkip to conversation

: Shift sysctls

PATCH New Ian McDonald 1 participant 1 message Jun 22, 2006 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Shift sysctls

This applies on top of previous patch and shifts further sysctls into feat.h. No change in functionality - shifting code only. Tested.

---

net/dccp/feat.h +5 -0
index b44c455..cee553d 100644
@@ -27,5 +27,10 @@ extern int  dccp_feat_clone(struct sock
  extern int  dccp_feat_init(struct dccp_minisock *dmsk);
 
  extern int  dccp_feat_default_sequence_window;
+extern int  dccp_feat_default_rx_ccid;
+extern int  dccp_feat_default_tx_ccid;
+extern int  dccp_feat_default_ack_ratio;
+extern int  dccp_feat_default_send_ack_vector;
+extern int  dccp_feat_default_send_ndp_count;
 
  #endif /* _DCCP_FEAT_H */
net/dccp/sysctl.c +1 -7
index 64c89e9..1fcf768 100644
@@ -12,18 +12,12 @@
  #include <linux/config.h>
  #include <linux/mm.h>
  #include <linux/sysctl.h>
+#include "feat.h"
 
  #ifndef CONFIG_SYSCTL
  #error This file should not be compiled without CONFIG_SYSCTL defined
  #endif
 
-extern int dccp_feat_default_sequence_window;
-extern int dccp_feat_default_rx_ccid;
-extern int dccp_feat_default_tx_ccid;
-extern int dccp_feat_default_ack_ratio;
-extern int dccp_feat_default_send_ack_vector;
-extern int dccp_feat_default_send_ndp_count;
-
  static struct ctl_table dccp_default_table[] = {
  	{
  		.ctl_name	= NET_DCCP_DEFAULT_SEQ_WINDOW,