Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
fdb766e1
Commit
fdb766e1
authored
Feb 12, 2003
by
Art Haas
Committed by
David S. Miller
Feb 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 initializers for net/ipv4/netfilter files
parent
73c76bd6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
14 deletions
+50
-14
net/ipv4/netfilter/ip_conntrack_core.c
net/ipv4/netfilter/ip_conntrack_core.c
+25
-7
net/ipv4/netfilter/ip_queue.c
net/ipv4/netfilter/ip_queue.c
+25
-7
No files found.
net/ipv4/netfilter/ip_conntrack_core.c
View file @
fdb766e1
...
@@ -1361,19 +1361,37 @@ static struct nf_sockopt_ops so_getorigdst
...
@@ -1361,19 +1361,37 @@ static struct nf_sockopt_ops so_getorigdst
static
struct
ctl_table_header
*
ip_conntrack_sysctl_header
;
static
struct
ctl_table_header
*
ip_conntrack_sysctl_header
;
static
ctl_table
ip_conntrack_table
[]
=
{
static
ctl_table
ip_conntrack_table
[]
=
{
{
NET_IP_CONNTRACK_MAX
,
NET_IP_CONNTRACK_MAX_NAME
,
&
ip_conntrack_max
,
{
sizeof
(
ip_conntrack_max
),
0644
,
NULL
,
proc_dointvec
},
.
ctl_name
=
NET_IP_CONNTRACK_MAX
,
{
0
}
.
procname
=
NET_IP_CONNTRACK_MAX_NAME
,
.
data
=
&
ip_conntrack_max
,
.
maxlen
=
sizeof
(
ip_conntrack_max
),
.
mode
=
0644
,
.
proc_handler
=
proc_dointvec
},
{
.
ctl_name
=
0
}
};
};
static
ctl_table
ip_conntrack_dir_table
[]
=
{
static
ctl_table
ip_conntrack_dir_table
[]
=
{
{
NET_IPV4
,
"ipv4"
,
NULL
,
0
,
0555
,
ip_conntrack_table
,
0
,
0
,
0
,
0
,
0
},
{
{
0
}
.
ctl_name
=
NET_IPV4
,
.
procname
=
"ipv4"
,
.
maxlen
=
0
,
.
mode
=
0555
,
.
child
=
ip_conntrack_table
},
{
.
ctl_name
=
0
}
};
};
static
ctl_table
ip_conntrack_root_table
[]
=
{
static
ctl_table
ip_conntrack_root_table
[]
=
{
{
CTL_NET
,
"net"
,
NULL
,
0
,
0555
,
ip_conntrack_dir_table
,
0
,
0
,
0
,
0
,
0
},
{
{
0
}
.
ctl_name
=
CTL_NET
,
.
procname
=
"net"
,
.
maxlen
=
0
,
.
mode
=
0555
,
.
child
=
ip_conntrack_dir_table
},
{
.
ctl_name
=
0
}
};
};
#endif
/*CONFIG_SYSCTL*/
#endif
/*CONFIG_SYSCTL*/
...
...
net/ipv4/netfilter/ip_queue.c
View file @
fdb766e1
...
@@ -586,19 +586,37 @@ static int sysctl_maxlen = IPQ_QMAX_DEFAULT;
...
@@ -586,19 +586,37 @@ static int sysctl_maxlen = IPQ_QMAX_DEFAULT;
static
struct
ctl_table_header
*
ipq_sysctl_header
;
static
struct
ctl_table_header
*
ipq_sysctl_header
;
static
ctl_table
ipq_table
[]
=
{
static
ctl_table
ipq_table
[]
=
{
{
NET_IPQ_QMAX
,
NET_IPQ_QMAX_NAME
,
&
sysctl_maxlen
,
{
sizeof
(
sysctl_maxlen
),
0644
,
NULL
,
proc_dointvec
},
.
ctl_name
=
NET_IPQ_QMAX
,
{
0
}
.
procname
=
NET_IPQ_QMAX_NAME
,
.
data
=
&
sysctl_maxlen
,
.
maxlen
=
sizeof
(
sysctl_maxlen
),
.
mode
=
0644
,
.
proc_handler
=
proc_dointvec
},
{
.
ctl_name
=
0
}
};
};
static
ctl_table
ipq_dir_table
[]
=
{
static
ctl_table
ipq_dir_table
[]
=
{
{
NET_IPV4
,
"ipv4"
,
NULL
,
0
,
0555
,
ipq_table
,
0
,
0
,
0
,
0
,
0
},
{
{
0
}
.
ctl_name
=
NET_IPV4
,
.
procname
=
"ipv4"
,
.
maxlen
=
0
,
.
mode
=
0555
,
.
child
=
ipq_table
},
{
.
ctl_name
=
0
}
};
};
static
ctl_table
ipq_root_table
[]
=
{
static
ctl_table
ipq_root_table
[]
=
{
{
CTL_NET
,
"net"
,
NULL
,
0
,
0555
,
ipq_dir_table
,
0
,
0
,
0
,
0
,
0
},
{
{
0
}
.
ctl_name
=
CTL_NET
,
.
procname
=
"net"
,
.
maxlen
=
0
,
.
mode
=
0555
,
.
child
=
ipq_dir_table
},
{
.
ctl_name
=
0
}
};
};
static
int
static
int
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment