Subject: CVS commit: src/sys/dev/ic
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 01/03/2005 03:07:12
Module Name:	src
Committed By:	dyoung
Date:		Mon Jan  3 03:07:12 UTC 2005

Modified Files:
	src/sys/dev/ic: rtw.c rtwreg.h

Log Message:
In sys/dev/ic/rtw.c:

	Use clue from rtk(4) and re(4) to fix the rtw(4) packet
	filter.  Previously, I was using the wrong CRC32 function
	to hash multicast addresses; to compensate, I set the
	multicast filter to all 1s.  Now that I hash the addresses
	correctly, I do not any longer set the filter to all 1s.

	In rtw_ioctl, avoid gratuitous re-initialization when the
	interface flags change.  If a !IFF_UP -> IFF_UP transition,
	call rtw_init(); otherwise, only reload the packet filter.

In sys/dev/ic/rtwreg.h:

	Put useful combinations of Receiver Control Register flags
	in RTW_RCR_PKTFILT_MASK, RTW_RCR_MONITOR, and
	RTW_RCR_PKTFILT_DEFAULT.  (XXX RTW_RCR_MONITOR should be
	called RTW_RCR_PKTFILT_MONITOR.)


To generate a diff of this commit:
cvs rdiff -r1.37 -r1.38 src/sys/dev/ic/rtw.c
cvs rdiff -r1.9 -r1.10 src/sys/dev/ic/rtwreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.