FreeBSD Bugzilla – Attachment 10589 Details for
Bug 21177
[PATCH] ifinfo dumps core (plus other fixes)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.35 KB, created by
Craig Leres
on 2000-09-11 00:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Craig Leres
Created:
2000-09-11 00:10:01 UTC
Size:
1.35 KB
patch
obsolete
>diff -c -r1.1 ifinfo.c >*** ifinfo.c 2000/09/10 22:44:21 1.1 >--- ifinfo.c 2000/09/10 22:51:52 >*************** >*** 160,168 **** >--- 160,170 ---- > printf("\tinput queue drops: %lu\n", ifmd->ifmd_data.ifi_iqdrops); > printf("\tpackets for unknown protocol: %lu\n", > ifmd->ifmd_data.ifi_noproto); >+ #ifdef notdef > printf("\treceive timing: %lu usec\n", ifmd->ifmd_data.ifi_recvtiming); > printf("\ttransmit timing: %lu usec\n", > ifmd->ifmd_data.ifi_xmittiming); >+ #endif > } > > static const char *const if_types[] = { >*************** >*** 220,226 **** > "SONETVT", > "SMDS InterCarrier Interface", > "Proprietary virtual interface", >! "Proprietary multiplexing" > }; > #define NIFTYPES ((sizeof if_types)/(sizeof if_types[0])) > >--- 222,231 ---- > "SONETVT", > "SMDS InterCarrier Interface", > "Proprietary virtual interface", >! "Proprietary multiplexing", >! "Generic tunnel interface", >! "IPv6-to-IPv4 TCP relay capturing interface", >! "6to4 tunnel interface" > }; > #define NIFTYPES ((sizeof if_types)/(sizeof if_types[0])) > >*************** >*** 229,235 **** > { > static char buf[256]; > >! if (type <= 0 || type > NIFTYPES) { > sprintf(buf, "unknown type %d", type); > return buf; > } >--- 234,240 ---- > { > static char buf[256]; > >! if (type <= 0 || type >= NIFTYPES) { > sprintf(buf, "unknown type %d", type); > return buf; > }
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 21177
: 10589