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
725f2a87
Commit
725f2a87
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: trivial coding style cleanups
Signed-off-by:
Luca Lemmo
<
luca@linux.com
>
parent
dd0c8d19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tc/f_u32.c
tc/f_u32.c
+4
-4
No files found.
tc/f_u32.c
View file @
725f2a87
...
@@ -80,7 +80,7 @@ static int get_u32_handle(__u32 *handle, const char *str)
...
@@ -80,7 +80,7 @@ static int get_u32_handle(__u32 *handle, const char *str)
return
0
;
return
0
;
}
}
static
char
*
sprint_u32_handle
(
__u32
handle
,
char
*
buf
)
static
char
*
sprint_u32_handle
(
__u32
handle
,
char
*
buf
)
{
{
int
bsize
=
SPRINT_BSIZE
-
1
;
int
bsize
=
SPRINT_BSIZE
-
1
;
__u32
htid
=
TC_U32_HTID
(
handle
);
__u32
htid
=
TC_U32_HTID
(
handle
);
...
@@ -382,7 +382,7 @@ static int parse_ip6_addr(int *argc_p, char ***argv_p,
...
@@ -382,7 +382,7 @@ static int parse_ip6_addr(int *argc_p, char ***argv_p,
plen
=
addr
.
bitlen
;
plen
=
addr
.
bitlen
;
for
(
i
=
0
;
i
<
plen
;
i
+=
32
)
{
for
(
i
=
0
;
i
<
plen
;
i
+=
32
)
{
// if (((i + 31) & ~0x1F) <= plen) {
/* if (((i + 31) & ~0x1F) <= plen) { */
if
(
i
+
31
<=
plen
)
{
if
(
i
+
31
<=
plen
)
{
res
=
pack_key
(
sel
,
addr
.
data
[
i
/
32
],
res
=
pack_key
(
sel
,
addr
.
data
[
i
/
32
],
0xFFFFFFFF
,
off
+
4
*
(
i
/
32
),
offmask
);
0xFFFFFFFF
,
off
+
4
*
(
i
/
32
),
offmask
);
...
@@ -1109,14 +1109,14 @@ static int u32_parse_opt(struct filter_util *qu, char *handle,
...
@@ -1109,14 +1109,14 @@ static int u32_parse_opt(struct filter_util *qu, char *handle,
continue
;
continue
;
}
else
if
(
strcmp
(
*
argv
,
"indev"
)
==
0
)
{
}
else
if
(
strcmp
(
*
argv
,
"indev"
)
==
0
)
{
char
ind
[
IFNAMSIZ
+
1
];
char
ind
[
IFNAMSIZ
+
1
];
memset
(
ind
,
0
,
sizeof
(
ind
));
memset
(
ind
,
0
,
sizeof
(
ind
));
argc
--
;
argc
--
;
argv
++
;
argv
++
;
if
(
argc
<
1
)
{
if
(
argc
<
1
)
{
fprintf
(
stderr
,
"Illegal indev
\n
"
);
fprintf
(
stderr
,
"Illegal indev
\n
"
);
return
-
1
;
return
-
1
;
}
}
strncpy
(
ind
,
*
argv
,
sizeof
(
ind
)
-
1
);
strncpy
(
ind
,
*
argv
,
sizeof
(
ind
)
-
1
);
addattr_l
(
n
,
MAX_MSG
,
TCA_U32_INDEV
,
ind
,
strlen
(
ind
)
+
1
);
addattr_l
(
n
,
MAX_MSG
,
TCA_U32_INDEV
,
ind
,
strlen
(
ind
)
+
1
);
}
else
if
(
matches
(
*
argv
,
"action"
)
==
0
)
{
}
else
if
(
matches
(
*
argv
,
"action"
)
==
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