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
dd0c8d19
Commit
dd0c8d19
authored
Mar 16, 2016
by
Luca Lemmo
Committed by
Stephen Hemminger
Mar 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tc: f_u32: add missing spaces around operators
Signed-off-by:
Luca Lemmo
<
luca@linux.com
>
parent
ba037267
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tc/f_u32.c
tc/f_u32.c
+6
-6
No files found.
tc/f_u32.c
View file @
dd0c8d19
...
...
@@ -47,7 +47,7 @@ static void explain(void)
static
int
get_u32_handle
(
__u32
*
handle
,
const
char
*
str
)
{
__u32
htid
=
0
,
hash
=
0
,
nodeid
=
0
;
__u32
htid
=
0
,
hash
=
0
,
nodeid
=
0
;
char
*
tmp
=
strchr
(
str
,
':'
);
if
(
tmp
==
NULL
)
{
...
...
@@ -58,21 +58,21 @@ static int get_u32_handle(__u32 *handle, const char *str)
htid
=
strtoul
(
str
,
&
tmp
,
16
);
if
(
tmp
==
str
&&
*
str
!=
':'
&&
*
str
!=
0
)
return
-
1
;
if
(
htid
>=
0x1000
)
if
(
htid
>=
0x1000
)
return
-
1
;
if
(
*
tmp
)
{
str
=
tmp
+
1
;
hash
=
strtoul
(
str
,
&
tmp
,
16
);
if
(
tmp
==
str
&&
*
str
!=
':'
&&
*
str
!=
0
)
return
-
1
;
if
(
hash
>=
0x100
)
if
(
hash
>=
0x100
)
return
-
1
;
if
(
*
tmp
)
{
str
=
tmp
+
1
;
nodeid
=
strtoul
(
str
,
&
tmp
,
16
);
if
(
tmp
==
str
&&
*
str
!=
0
)
return
-
1
;
if
(
nodeid
>=
0x1000
)
if
(
nodeid
>=
0x1000
)
return
-
1
;
}
}
...
...
@@ -122,7 +122,7 @@ static int pack_key(struct tc_u32_sel *sel, __u32 key, __u32 mask,
key
&=
mask
;
for
(
i
=
0
;
i
<
hwm
;
i
++
)
{
for
(
i
=
0
;
i
<
hwm
;
i
++
)
{
if
(
sel
->
keys
[
i
].
off
==
off
&&
sel
->
keys
[
i
].
offmask
==
offmask
)
{
__u32
intersect
=
mask
&
sel
->
keys
[
i
].
mask
;
...
...
@@ -1244,7 +1244,7 @@ static int u32_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt,
if
(
sel
)
{
if
(
sel
->
nkeys
)
{
int
i
;
for
(
i
=
0
;
i
<
sel
->
nkeys
;
i
++
)
{
for
(
i
=
0
;
i
<
sel
->
nkeys
;
i
++
)
{
show_keys
(
f
,
sel
->
keys
+
i
);
if
(
show_stats
&&
NULL
!=
pf
)
fprintf
(
f
,
" (success %llu ) "
,
...
...
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