[RP-PPPoE] pppd can't create pppoe socket

Daniel Le daniel.le at exfo.com
Wed Aug 8 16:19:29 EDT 2012


Sorry. I meant to say the set up procedure at
http://werc.engr.uaf.edu/~ken/doc/rp-pppoe-3.8/KERNEL-MODE-PPPOE.

 

From: Daniel Le 
Sent: Wednesday, August 08, 2012 4:10 PM
To: 'rp-pppoe at lists.roaringpenguin.com'
Subject: pppd can't create pppoe socket

 

Hello!

 

I followed the setup as described at rp-pppoe at lists.roaringpenguin.com
<mailto:rp-pppoe at lists.roaringpenguin.com>  to add rp-pppoe plugin for
kernel-mode pppoe, but pppd fails to create pppoe socket due to "Address
family not supported by protocol".

 

log #cat messages 

Aug  8 15:39:57 (none) daemon.info pppd[5304]: Plugin
/etc/ppp/plugins/rp-pppoe.so loaded.

Aug  8 15:39:57 (none) daemon.info pppd[5304]: RP-PPPoE plugin version
3.10 compiled against pppd 2.4.5

Aug  8 15:39:57 (none) daemon.notice pppd[5304]: pppd 2.4.5 started by
root, uid 0

Aug  8 15:39:57 (none) daemon.err pppd[5304]: Failed to create PPPoE
socket: Address family not supported by protocol

Aug  8 15:39:57 (none) daemon.info pppd[5304]: Exit.

Aug  8 15:39:57 (none) daemon.notice pppoe-connect: PPPoE connection
lost; attempting re-connection.

...

 

The error is checked in ppp-2.4.5/pppd/plugins/rp-pppoe/plugin.c,
function PPPOEConnectDevice(), when pppd tries to create a PPPoE socket.

 

    /* Make the session socket */

    conn->sessionSocket = socket(AF_PPPOX, SOCK_STREAM, PX_PROTO_OE);

    if (conn->sessionSocket < 0) {

        error("Failed to create PPPoE socket: %m");

        goto errout;

    }

 

My Linux kernel 2.6.35.7 does define the address family AF_PPPOX and
protocol PX_PROTO_OE  are defined in
vendors/linux/linux-2.6.35.7/include/linux/if_pppox.h and this header
file is correctly included in ppp-2.4.5/pppd/plugins/rp-pppoe/plugin.c.

 

Thank you.

 

Daniel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.roaringpenguin.com/pipermail/rp-pppoe/attachments/20120808/679a4d92/attachment-0001.html>


More information about the RP-PPPoE mailing list