Bug 21177

Summary: [PATCH] ifinfo dumps core (plus other fixes)
Product: Base System Reporter: Craig Leres <leres>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: leres
Priority: Normal    
Version: 4.1-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Craig Leres freebsd_committer freebsd_triage 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
How-To-Repeat: 
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 freebsd_triage 2000-09-13 20:55:34 UTC
State Changed
From-To: open->closed

Applied in revs. 1.6 and 1.5.2.1.