NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NPF error in /var/run/rc.log



* Patrick Welche (prlw1%cam.ac.uk@localhost) wrote:
> It means that when your /etc/npf.conf is loaded, wm0 has no address
> assigned to it. Could it be e.g., that wm0 isn't getting a response
> to a dhcp request or something?
How is it possible? In /etc/rc.conf, dhcpcd=YES with dhcpcd_flags="-b"
are nearly the first line. And npf=YES with npf_rules="/etc/npf.conf"
are nearly the last line. wm0 should have got IP prior to running NPF,
shouldn't it?

% ifconfig wm0
wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	capabilities=2bf80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx>
	capabilities=2bf80<TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Tx>
	capabilities=2bf80<UDP6CSUM_Tx>
	enabled=0
	ec_capabilities=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
	ec_enabled=0
	address: 08:00:27:af:97:e5
	media: Ethernet autoselect (1000baseT full-duplex)
	status: active
	inet 192.168.1.105 netmask 0xffffff00 broadcast 192.168.1.255
	inet6 fe80::a00:27ff:feaf:97e5%wm0 prefixlen 64 scopeid 0x1
	inet6 2405:9800:b550:2939:a00:27ff:feaf:97e5 prefixlen 64 autoconf
	inet6 2405:9800:b550:2939:6dc2:13d1:e157:42e4 prefixlen 64

> (I just reproduced this on a laptop that is connected to wireless, so
> has no addresses assigned to the wired wm0.)
You are right. It seems much likely, my wm0 is wireless. But how can I fix it?
Warning(s) during boot, IMHO, looks bad. At least it did not occur on 6_STABLE.
(Now I'm on 7_STABLE.)


Thanks,

-- 
Gua Chung Lim
 
If you desire knowledges, learn one thing everyday.
If you desire wisdom, leave one thing everyday.
-- Lao Tzu


Home | Main Index | Thread Index | Old Index