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
ae0f1443
Commit
ae0f1443
authored
Oct 19, 2004
by
net[shemminger]!shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import patch stats.eml
(Logical change 1.96)
parent
decf9596
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ip/ipaddress.c
ip/ipaddress.c
+8
-8
No files found.
ip/ipaddress.c
View file @
ae0f1443
...
...
@@ -214,8 +214,8 @@ int print_linkinfo(const struct sockaddr_nl *who, const struct nlmsghdr *n, void
}
}
if
(
do_link
&&
tb
[
IFLA_STATS
]
&&
show_stats
)
{
struct
net_device
_stats
slocal
;
struct
net_device
_stats
*
s
=
RTA_DATA
(
tb
[
IFLA_STATS
]);
struct
rtnl_link
_stats
slocal
;
struct
rtnl_link
_stats
*
s
=
RTA_DATA
(
tb
[
IFLA_STATS
]);
if
(((
unsigned
long
)
s
)
&
(
sizeof
(
unsigned
long
)
-
1
))
{
memcpy
(
&
slocal
,
s
,
sizeof
(
slocal
));
s
=
&
slocal
;
...
...
@@ -223,17 +223,17 @@ int print_linkinfo(const struct sockaddr_nl *who, const struct nlmsghdr *n, void
fprintf
(
fp
,
"%s"
,
_SL_
);
fprintf
(
fp
,
" RX: bytes packets errors dropped overrun mcast %s%s"
,
s
->
rx_compressed
?
"compressed"
:
""
,
_SL_
);
fprintf
(
fp
,
" %-10
lu %-8lu %-7lu %-7lu %-7lu %-7l
u"
,
fprintf
(
fp
,
" %-10
u %-8u %-7u %-7u %-7u %-7
u"
,
s
->
rx_bytes
,
s
->
rx_packets
,
s
->
rx_errors
,
s
->
rx_dropped
,
s
->
rx_over_errors
,
s
->
multicast
);
if
(
s
->
rx_compressed
)
fprintf
(
fp
,
" %-7
l
u"
,
s
->
rx_compressed
);
fprintf
(
fp
,
" %-7u"
,
s
->
rx_compressed
);
if
(
show_stats
>
1
)
{
fprintf
(
fp
,
"%s"
,
_SL_
);
fprintf
(
fp
,
" RX errors: length crc frame fifo missed%s"
,
_SL_
);
fprintf
(
fp
,
" %-7
lu %-7lu %-7lu %-7lu %-7l
u"
,
fprintf
(
fp
,
" %-7
u %-7u %-7u %-7u %-7
u"
,
s
->
rx_length_errors
,
s
->
rx_crc_errors
,
s
->
rx_frame_errors
,
...
...
@@ -244,15 +244,15 @@ int print_linkinfo(const struct sockaddr_nl *who, const struct nlmsghdr *n, void
fprintf
(
fp
,
"%s"
,
_SL_
);
fprintf
(
fp
,
" TX: bytes packets errors dropped carrier collsns %s%s"
,
s
->
tx_compressed
?
"compressed"
:
""
,
_SL_
);
fprintf
(
fp
,
" %-10
lu %-8lu %-7lu %-7lu %-7lu %-7l
u"
,
fprintf
(
fp
,
" %-10
u %-8u %-7u %-7u %-7u %-7
u"
,
s
->
tx_bytes
,
s
->
tx_packets
,
s
->
tx_errors
,
s
->
tx_dropped
,
s
->
tx_carrier_errors
,
s
->
collisions
);
if
(
s
->
tx_compressed
)
fprintf
(
fp
,
" %-7
l
u"
,
s
->
tx_compressed
);
fprintf
(
fp
,
" %-7u"
,
s
->
tx_compressed
);
if
(
show_stats
>
1
)
{
fprintf
(
fp
,
"%s"
,
_SL_
);
fprintf
(
fp
,
" TX errors: aborted fifo window heartbeat%s"
,
_SL_
);
fprintf
(
fp
,
" %-7
lu %-7lu %-7lu %-7l
u"
,
fprintf
(
fp
,
" %-7
u %-7u %-7u %-7
u"
,
s
->
tx_aborted_errors
,
s
->
tx_fifo_errors
,
s
->
tx_window_errors
,
...
...
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