Subject: port-hp300/462: hp300 MAKEDEV uses wrong major for bpf*
To: None <gnats-admin>
From: Jason R. Thorpe <thorpej@mail.CS.ORST.EDU>
List: netbsd-bugs
Date: 09/05/1994 20:05:06
>Number: 462
>Category: port-hp300
>Synopsis: hp300 MAKEDEV uses wrong major for bpf*
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 5 20:05:04 1994
>Originator: Jason R. Thorpe
>Organization:
Department of Computer Science
Oregon State University
>Release: NetBSD 1.0_BETA (sup'd 9.4.94)
>Environment:
System: NetBSD helix 1.0_BETA NetBSD 1.0_BETA (HELIX) #12: Mon Sep 5 15:17:51 PDT 1994 thorpej@santiam:/tmp_mnt/hurricane/NetBSD/src/sys/arch/hp300/compile/HELIX hp300
>Description:
The major (105) that MAKEDEV uses to make /dev/bpf* is incorrect
on the hp300.
>How-To-Repeat:
Try to run tcpdump after installing a new system.
You'll get:
tcpdump: /dev/bpf0: Device not configured
>Fix:
The following patch to ./src/etc/etc.hp300/MAKEDEV fixes it:
(major, according to conf.c, is 22)
*** MAKEDEV.orig Mon Sep 5 19:46:24 1994
--- MAKEDEV Mon Sep 5 19:46:28 1994
***************
*** 131,137 ****
bpf*)
unit=`expr $i : 'bpf\(.*\)'`
rm -f bpf$unit
! mknod bpf$unit c 105 $unit
chmod 600 bpf$unit
chown root.wheel bpf$unit
;;
--- 131,137 ----
bpf*)
unit=`expr $i : 'bpf\(.*\)'`
rm -f bpf$unit
! mknod bpf$unit c 22 $unit
chmod 600 bpf$unit
chown root.wheel bpf$unit
;;
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------