Subject: CVS commit: src/sys/net
To: None <source-changes@NetBSD.org>
From: enami tsugutomo <enami@netbsd.org>
List: source-changes
Date: 06/01/2007 09:35:47
Module Name: src
Committed By: enami
Date: Fri Jun 1 09:35:47 UTC 2007
Modified Files:
src/sys/net: if.c
Log Message:
Fix some bugs in ifconf():
- maintain space left correctly. the pointer is advanced by the size
of struct ifreq when length of address is small.
- single sizeof operator is enough to take the size of struct.
- the type of `sz' must be singed type since it is/was compared against to
the variable which may become negative.
- no need to traverse rest of interfaces once we got an error. note that
the latter `break' statement was inside inner loop.
To generate a diff of this commit:
cvs rdiff -r1.189 -r1.190 src/sys/net/if.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.