Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 407654 Details for
Bug 555950
net-analyzer/bwbar-1.2.3: does not work properly with new interface naming scheme
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
net-analyzer/bwbar-1.2.3 patch allowing use of current interface name scheme
bwbar-1.2.3-interface_name_length.patch (text/plain), 1.00 KB, created by
Tomasz Wasiak
on 2015-07-26 13:24:10 UTC
(
hide
)
Description:
net-analyzer/bwbar-1.2.3 patch allowing use of current interface name scheme
Filename:
MIME Type:
Creator:
Tomasz Wasiak
Created:
2015-07-26 13:24:10 UTC
Size:
1.00 KB
patch
obsolete
>diff -prudN a/bwbar.c b/bwbar.c >--- a/bwbar.c 2006-08-26 18:31:26.000000000 +0200 >+++ b/bwbar.c 2015-07-26 15:10:02.000000000 +0200 >@@ -188,7 +188,7 @@ int main(int argc, char *argv[]) > FILE *pnd; > char *interface; > struct ifinfo { >- char name[8]; >+ char name[16]; > unsigned int r_bytes, r_pkt, r_err, r_drop, r_fifo, r_frame; > unsigned int r_compr, r_mcast; > unsigned int x_bytes, x_pkt, x_err, x_drop, x_fifo, x_coll; >@@ -280,7 +280,7 @@ int main(int argc, char *argv[]) > lbin = 0; lbout = 0; > > gettimeofday(&t_last, NULL); >- >+ > while ( 1 ) { > > /**** Begin code that obtains bandwidth data ****/ >@@ -298,7 +298,7 @@ int main(int argc, char *argv[]) > > /* Get interface info */ > do { >- if ( fscanf(pnd, " %6[^:]:%u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u", >+ if ( fscanf(pnd, " %15[^:]:%u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u", > ifc.name, > &ifc.r_bytes, &ifc.r_pkt, &ifc.r_err, &ifc.r_drop, > &ifc.r_fifo, &ifc.r_frame, &ifc.r_compr, &ifc.r_mcast,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 555950
: 407654