Bug 21177 - [PATCH] ifinfo dumps core (plus other fixes)
Summary: [PATCH] ifinfo dumps core (plus other fixes)
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2000-09-11 00:10 UTC by Craig Leres
Modified: 2000-09-13 20:56 UTC (History)
1 user (show)

See Also:

file.diff (1.35 KB, patch)
2000-09-11 00:10 UTC, Craig Leres
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Leres freebsd_committer 2000-09-11 00:10:01 UTC
Ifinfo fails to compile; if you ifdef out the obsolete if_data
struct references and your kerenl has gif(4) interfaces, it dumps
core. It's also missing a few interface descriptions.

Fix: Appended is a context diff to tools/tools/ifinfo/ifinfo.c

RCS file: RCS/ifinfo.c,v
retrieving revision 1.1
fun 1182 % ifinfo
Interface gif0:
	flags: ffff8010
	promiscuous listeners: 0
	send queue length: 0
	send queue max length: 50
	send queue drops: 0
Segmentation fault (core dumped)
Comment 1 Garrett Wollman freebsd_committer 2000-09-13 20:55:34 UTC
State Changed
From-To: open->closed

Applied in revs. 1.6 and