@@ -1297,9 +1297,14 @@ static int switch_promisc(int newpromisc)
12971297#define BEFORE2632 (x ,y )
12981298#endif
12991299
1300+ #if LINUX_VERSION_CODE >= KERNEL_VERSION (3 ,17 ,0 )
1301+ #define ctl_table struct ctl_table
1302+ #endif
1303+
13001304#ifndef CONFIG_GRKERNSEC
1301- #define ctl_table_no_const struct ctl_table
1305+ #define ctl_table_no_const ctl_table
13021306#endif
1307+
13031308/* sysctl /proc/sys/net/netflow */
13041309static int hsize_procctl (ctl_table * ctl , int write , BEFORE2632 (struct file * filp ,)
13051310 void __user * buffer , size_t * lenp , loff_t * fpos )
@@ -1548,7 +1553,7 @@ static struct ctl_table_header *netflow_sysctl_header;
15481553
15491554#if LINUX_VERSION_CODE < KERNEL_VERSION (2 ,6 ,20 )
15501555#define _CTL_NAME (x ) .ctl_name = x,
1551- static void ctl_table_renumber (struct ctl_table * table )
1556+ static void ctl_table_renumber (ctl_table * table )
15521557{
15531558 int c ;
15541559
@@ -1559,7 +1564,7 @@ static void ctl_table_renumber(struct ctl_table *table)
15591564#define _CTL_NAME (x )
15601565#define ctl_table_renumber (x )
15611566#endif
1562- static struct ctl_table netflow_sysctl_table [] = {
1567+ static ctl_table netflow_sysctl_table [] = {
15631568 {
15641569 .procname = "active_timeout" ,
15651570 .mode = 0644 ,
@@ -1691,7 +1696,7 @@ static struct ctl_table netflow_sysctl_table[] = {
16911696};
16921697
16931698#if LINUX_VERSION_CODE < KERNEL_VERSION (2 ,6 ,25 )
1694- static struct ctl_table netflow_sysctl_root [] = {
1699+ static ctl_table netflow_sysctl_root [] = {
16951700 {
16961701 _CTL_NAME (33 )
16971702 .procname = "netflow" ,
@@ -1701,7 +1706,7 @@ static struct ctl_table netflow_sysctl_root[] = {
17011706 { }
17021707};
17031708
1704- static struct ctl_table netflow_net_table [] = {
1709+ static ctl_table netflow_net_table [] = {
17051710 {
17061711 .ctl_name = CTL_NET ,
17071712 .procname = "net" ,
0 commit comments