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
b906243b
Commit
b906243b
authored
Jan 17, 2005
by
net[shemminger]!shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import patch iproute2.116
(Logical change 1.118)
parent
11dc2300
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
12 deletions
+20
-12
ChangeLog
ChangeLog
+5
-0
ip/ipxfrm.c
ip/ipxfrm.c
+7
-7
tc/f_u32.c
tc/f_u32.c
+5
-2
tc/q_hfsc.c
tc/q_hfsc.c
+2
-2
tc/tc_util.c
tc/tc_util.c
+1
-1
No files found.
ChangeLog
View file @
b906243b
2005-01-12 Stephen Hemminger <shemminger@dxpl.pdx.osdl.net>
* Fix compile warnings when building 64bit system since
u64 is unsigned long, but format is %llu
2005-01-12 "Catalin(ux aka Dino) BOIE" <util@deuroconsult.ro>
* Add the possibility to use fwmark in u32 filters
...
...
ip/ipxfrm.c
View file @
b906243b
...
...
@@ -243,7 +243,7 @@ static const char *strxf_limit(__u64 limit)
if
(
limit
==
XFRM_INF
)
strcpy
(
str
,
"(INF)"
);
else
sprintf
(
str
,
"%llu"
,
limit
);
sprintf
(
str
,
"%llu"
,
(
unsigned
long
long
)
limit
);
return
str
;
}
...
...
@@ -323,9 +323,9 @@ void xfrm_lifetime_print(struct xfrm_lifetime_cfg *cfg,
fprintf
(
fp
,
" "
);
fprintf
(
fp
,
"expire add: "
);
fprintf
(
fp
,
"soft "
);
fprintf
(
fp
,
"%llu"
,
cfg
->
soft_add_expires_seconds
);
fprintf
(
fp
,
"%llu"
,
(
unsigned
long
long
)
cfg
->
soft_add_expires_seconds
);
fprintf
(
fp
,
"(sec), hard "
);
fprintf
(
fp
,
"%llu"
,
cfg
->
hard_add_expires_seconds
);
fprintf
(
fp
,
"%llu"
,
(
unsigned
long
long
)
cfg
->
hard_add_expires_seconds
);
fprintf
(
fp
,
"(sec)"
);
fprintf
(
fp
,
"%s"
,
_SL_
);
...
...
@@ -334,9 +334,9 @@ void xfrm_lifetime_print(struct xfrm_lifetime_cfg *cfg,
fprintf
(
fp
,
" "
);
fprintf
(
fp
,
"expire use: "
);
fprintf
(
fp
,
"soft "
);
fprintf
(
fp
,
"%llu"
,
cfg
->
soft_use_expires_seconds
);
fprintf
(
fp
,
"%llu"
,
(
unsigned
long
long
)
cfg
->
soft_use_expires_seconds
);
fprintf
(
fp
,
"(sec), hard "
);
fprintf
(
fp
,
"%llu"
,
cfg
->
hard_use_expires_seconds
);
fprintf
(
fp
,
"%llu"
,
(
unsigned
long
long
)
cfg
->
hard_use_expires_seconds
);
fprintf
(
fp
,
"(sec)"
);
fprintf
(
fp
,
"%s"
,
_SL_
);
}
...
...
@@ -349,8 +349,8 @@ void xfrm_lifetime_print(struct xfrm_lifetime_cfg *cfg,
if
(
prefix
)
fprintf
(
fp
,
prefix
);
fprintf
(
fp
,
" "
);
fprintf
(
fp
,
"%llu(bytes), "
,
cur
->
bytes
);
fprintf
(
fp
,
"%llu(packets)"
,
cur
->
packets
);
fprintf
(
fp
,
"%llu(bytes), "
,
(
unsigned
long
long
)
cur
->
bytes
);
fprintf
(
fp
,
"%llu(packets)"
,
(
unsigned
long
long
)
cur
->
packets
);
fprintf
(
fp
,
"%s"
,
_SL_
);
if
(
prefix
)
...
...
tc/f_u32.c
View file @
b906243b
...
...
@@ -1005,7 +1005,9 @@ static int u32_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt, __
}
if
(
sel
&&
show_stats
&&
NULL
!=
pf
)
fprintf
(
f
,
" (rule hit %llu success %llu)"
,
pf
->
rcnt
,
pf
->
rhit
);
fprintf
(
f
,
" (rule hit %llu success %llu)"
,
(
unsigned
long
long
)
pf
->
rcnt
,
(
unsigned
long
long
)
pf
->
rhit
);
if
(
tb
[
TCA_U32_MARK
])
{
struct
tc_u32_mark
*
mark
=
RTA_DATA
(
tb
[
TCA_U32_MARK
]);
...
...
@@ -1028,7 +1030,8 @@ static int u32_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt, __
key
->
offmask
?
"nexthdr+"
:
""
,
key
->
off
);
if
(
show_stats
&&
NULL
!=
pf
)
fprintf
(
f
,
" (success %lld ) "
,
pf
->
kcnts
[
i
]);
fprintf
(
f
,
" (success %lld ) "
,
(
unsigned
long
long
)
pf
->
kcnts
[
i
]);
}
}
...
...
tc/q_hfsc.c
View file @
b906243b
...
...
@@ -129,9 +129,9 @@ hfsc_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats)
fprintf
(
f
,
" period %u "
,
st
->
period
);
if
(
st
->
work
!=
0
)
fprintf
(
f
,
"work %llu bytes "
,
st
->
work
);
fprintf
(
f
,
"work %llu bytes "
,
(
unsigned
long
long
)
st
->
work
);
if
(
st
->
rtwork
!=
0
)
fprintf
(
f
,
"rtwork %llu bytes "
,
st
->
rtwork
);
fprintf
(
f
,
"rtwork %llu bytes "
,
(
unsigned
long
long
)
st
->
rtwork
);
fprintf
(
f
,
"level %u "
,
st
->
level
);
fprintf
(
f
,
"
\n
"
);
...
...
tc/tc_util.c
View file @
b906243b
...
...
@@ -437,7 +437,7 @@ void print_tcstats2_attr(FILE *fp, struct rtattr *rta, char *prefix, struct rtat
struct
gnet_stats_basic
bs
=
{
0
};
memcpy
(
&
bs
,
RTA_DATA
(
tbs
[
TCA_STATS_BASIC
]),
MIN
(
RTA_PAYLOAD
(
tbs
[
TCA_STATS_BASIC
]),
sizeof
(
bs
)));
fprintf
(
fp
,
"%sSent %llu bytes %u pkt"
,
prefix
,
bs
.
bytes
,
bs
.
packets
);
prefix
,
(
unsigned
long
long
)
bs
.
bytes
,
bs
.
packets
);
}
if
(
tbs
[
TCA_STATS_QUEUE
])
{
...
...
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