Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
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
iproute2
Commits
894b1c66
Commit
894b1c66
authored
Mar 30, 2005
by
net[shemminger]!shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import patch p_mipt
(Logical change 1.180)
parent
0eb49426
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
tc/m_ipt.c
tc/m_ipt.c
+15
-1
No files found.
tc/m_ipt.c
View file @
894b1c66
...
...
@@ -337,6 +337,17 @@ struct in_addr *dotted_to_addr(const char *dotted)
return
&
addr
;
}
static
void
set_revision
(
char
*
name
,
u_int8_t
revision
)
{
/* Old kernel sources don't have ".revision" field,
* but we stole a byte from name. */
name
[
IPT_FUNCTION_MAXNAMELEN
-
2
]
=
'\0'
;
name
[
IPT_FUNCTION_MAXNAMELEN
-
1
]
=
revision
;
}
/*
* we may need to check for version mismatch
*/
int
build_st
(
struct
iptables_target
*
target
,
struct
ipt_entry_target
*
t
)
{
...
...
@@ -350,8 +361,11 @@ build_st(struct iptables_target *target, struct ipt_entry_target *t)
if
(
NULL
==
t
)
{
target
->
t
=
fw_calloc
(
1
,
size
);
target
->
init
(
target
->
t
,
&
nfcache
);
target
->
t
->
u
.
target_size
=
size
;
if
(
target
->
init
!=
NULL
)
target
->
init
(
target
->
t
,
&
nfcache
);
set_revision
(
target
->
t
->
u
.
user
.
name
,
target
->
revision
);
}
else
{
target
->
t
=
t
;
}
...
...
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