Hi, <br><br>Has anyone seen this or know the solution to it?<br><br>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:<br><br>xl2tpd[16426]: start_pppd: Unable to connect PPPoL2TP socket.<br>
xl2tpd[16426]: Call established with <a href="http://84.232.159.158/" target="_blank">84.232.159.158</a>, Local: 53577, Remote: 1, Serial: 0<br>kernel: PPPOL2TP: <NULL>: connect failed: -2<br>xl2tpd[16426]: write_packet: tty is not open yet.<br>
<br>I looked into the source.<br>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<br><br>
I don't know much programming so maybe someone can help.<br><br> sax.sa_family = AF_PPPOX;<br> sax.sa_protocol = PX_PROTO_OL2TP;<br> sax.pppol2tp.pid = 0;<br> sax.pppol2tp.fd = server_socket;<br>
sax.pppol2tp.addr.sin_addr.s_addr = c->container->peer.sin_addr.s_addr;<br> sax.pppol2tp.addr.sin_port = c->container->peer.sin_port;<br> sax.pppol2tp.addr.sin_family = AF_INET;<br> sax.pppol2tp.s_tunnel = c->container->ourtid;<br>
sax.pppol2tp.s_session = c->ourcid;<br> sax.pppol2tp.d_tunnel = c->container->tid;<br> sax.pppol2tp.d_session = c->cid;<br> if (connect(fd2, (struct sockaddr *)&sax, sizeof(sax)) < 0) {<br>
l2tp_log (LOG_WARNING, "%s: Unable to connect PPPoL2TP socket.\n",<br> __FUNCTION__);<br> return -EINVAL;<br> }<br><br><br><br>Thanks in advance.<br><br><br>