enc(4) uninitialized in -current?
Marcin Cieslak
saper at saper.info
Wed Sep 26 22:11:08 UTC 2012
I have just updated by 9.0-something laptop to 10.0-CURRENT r240948
and it very quickly panics after enabling network with IPsec
(I am using IPsec w/racoon for IPv4 over 802.11, also using
tunelled IPv6).
It looks like in this part of sys/netipsec/ipsec_output.c:
447 #ifdef DEV_ENC
448 encif->if_opackets++;
449 encif->if_obytes += m->m_pkthdr.len;
450
451 /* pass the mbuf to enc0 for bpf processing */
452 ipsec_bpf(m, sav, AF_INET, ENC_OUT|ENC_BEFORE);
453 /* pass the mbuf to enc0 for packet filtering */
454 if ((error = ipsec_filter(&m, PFIL_OUT, ENC_OUT|ENC_BEFORE)) !=
0)
455 goto bad;
456 #endif
"encif" is NULL in line 448
Removing "device enc" from the kernel configuration helps.
Used to work in early 9.x kernels...
//Marcin
More information about the freebsd-net
mailing list