Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 22:10:53 +0000 (UTC)
From:      Marcin Cieslak <saper@saper.info>
To:        freebsd-net@freebsd.org
Subject:   enc(4) uninitialized in -current?
Message-ID:  <slrnk66vbe.2uvc.saper@saper.info>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?slrnk66vbe.2uvc.saper>