[Openswan Users] L2TP problem with OpenSWAN 2.6.x after changing default route

Paul Wouters paul at xelerance.com
Wed Jul 13 19:46:23 EDT 2011


On Wed, 13 Jul 2011, Nels Lindquist wrote:

>> I dont understand who 2.4 and 2.6 with netkey are different ?
>
> With 2.4, I can successfully initiate new L2TP connections to the
> gateway regardless of how the default route is set.  With 2.6, new L2TP
> connections are only successful if the default route on the gateway is
> the same as the interface used for IPSEC.

I mean I don't understand what would cause that.

> I'm trying to build an RPM, and the included specfile has a
> "BuildRequires: kernel-headers => 2.6.23".  I've now removed that for
> testing.

Ok.

> It appears my ultimate xl2tpd build issue is the libpcap requirement,
> however.  Despite having libpcap installed (and there's no separate
> devel package--headers, etc. are included) I receive the following error
> during compilation:
>
> ---
> contrib/pfc.c: In function `main':
> contrib/pfc.c:45: error: `DLT_PPP_PPPD' undeclared (first use in this
> function)
> contrib/pfc.c:45: error: (Each undeclared identifier is reported only once
> contrib/pfc.c:45: error: for each function it appears in.)
> make: *** [pfc] Error 1

you don't need pfc, so put this in your spec file's build section before
calling make:

touch contrib/pfc

Paul


More information about the Users mailing list