[Openswan Users] xl2tpd 1.2.0 connect to socket failed

Emil Stefanescu emil.stefanescu at gmail.com
Fri Apr 11 04:46:25 EDT 2008


Hi,

Has anyone seen this or know the solution to it?

I am using xl2tpd 1.2.0+dfsg-1 and ppp 2.4.4rel-10 , kernel 2.6.23 with
PPPOL2TP_CONFIG enabled on a debian etch box. The openswan part works
beautifuly but when I get to the xl2tpd part I get this:

xl2tpd[16426]: start_pppd: Unable to connect PPPoL2TP socket.
xl2tpd[16426]: Call established with 84.232.159.158, Local: 53577, Remote:
1, Serial: 0
kernel: PPPOL2TP: <NULL>: connect failed: -2
xl2tpd[16426]: write_packet: tty is not open yet.

I looked into the source.
I think the problem is that one of the variables in sax is turning out to be
NULL hence "kernel: PPPOL2TP: <NULL>: connect failed: -2" but i don't know
which one

I don't know much programming so maybe someone can help.

       sax.sa_family = AF_PPPOX;
       sax.sa_protocol = PX_PROTO_OL2TP;
       sax.pppol2tp.pid = 0;
       sax.pppol2tp.fd = server_socket;
       sax.pppol2tp.addr.sin_addr.s_addr =
c->container->peer.sin_addr.s_addr;
       sax.pppol2tp.addr.sin_port = c->container->peer.sin_port;
       sax.pppol2tp.addr.sin_family = AF_INET;
       sax.pppol2tp.s_tunnel  = c->container->ourtid;
       sax.pppol2tp.s_session = c->ourcid;
       sax.pppol2tp.d_tunnel  = c->container->tid;
       sax.pppol2tp.d_session = c->cid;
       if (connect(fd2, (struct sockaddr *)&sax, sizeof(sax)) < 0) {
           l2tp_log (LOG_WARNING, "%s: Unable to connect PPPoL2TP
socket.\n",
                __FUNCTION__);
           return -EINVAL;
       }



Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20080411/e64336be/attachment.html 


More information about the Users mailing list