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
4fb466f9
Commit
4fb466f9
authored
Jun 07, 2004
by
org[shemminger]!shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import patch iproute2-2.4.7-hex.patch
(Logical change 1.8)
parent
15a79f12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ip/iprule.c
ip/iprule.c
+2
-2
No files found.
ip/iprule.c
View file @
4fb466f9
...
...
@@ -120,7 +120,7 @@ int print_rule(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
fprintf
(
fp
,
"tos %s "
,
rtnl_dsfield_n2a
(
r
->
rtm_tos
,
b1
,
sizeof
(
b1
)));
}
if
(
tb
[
RTA_PROTOINFO
])
{
fprintf
(
fp
,
"fwmark %
8
x "
,
*
(
__u32
*
)
RTA_DATA
(
tb
[
RTA_PROTOINFO
]));
fprintf
(
fp
,
"fwmark %
#
x "
,
*
(
__u32
*
)
RTA_DATA
(
tb
[
RTA_PROTOINFO
]));
}
if
(
tb
[
RTA_IIF
])
{
...
...
@@ -245,7 +245,7 @@ int iprule_modify(int cmd, int argc, char **argv)
}
else
if
(
strcmp
(
*
argv
,
"fwmark"
)
==
0
)
{
__u32
fwmark
;
NEXT_ARG
();
if
(
get_u32
(
&
fwmark
,
*
argv
,
16
))
if
(
get_u32
(
&
fwmark
,
*
argv
,
0
))
invarg
(
"fwmark value is invalid
\n
"
,
*
argv
);
addattr32
(
&
req
.
n
,
sizeof
(
req
),
RTA_PROTOINFO
,
fwmark
);
}
else
if
(
matches
(
*
argv
,
"realms"
)
==
0
)
{
...
...
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