Skip to contentSkip to conversation

rp-pppoe requires PF_PACKET (Re: Help with PPPoE)

DISCUSSION jfj 2 participants 2 messages Dec 29, 2006 PPP protocol drivers and compressors

lore
Share & tools
lore

jfj

author
#0 lore raw

Thanks for the confirmation (it is helpful!).

I found the problem and that is that rp-pppoe requires PF_PACKET sockets, which are disabled on my kenrel.

I'd really like to avoid this. It seems rp-pppoe uses packet sockets to get the inteface number. Anybody knows if this can be avoided with a bit of hacking?

Otherwise, we should mention that Kernel PPPoE depends on PF_PACKET :(
And improve the error mesages of rp-pppoe.

jf.

Quoted 28 lines · Gilles Espinasse
Quoted 8 lines

Now when I type

pppd eth0

I get

unrecognized option 'eth0'

Quoted 10 lines

But wasn't the plugin supposed to enable this device?

If I use this script in /etc/ppp/peers/mydsl

#
# PPP over Ethernet options (using roaring pinguin external program) #
plugin rp-pppoe.so

It work for me with this exact line
plugin rp-pppoe.so eth0
...
Then you should be able to do
pppd call mydsl

Gilles

#1 lore raw

PF_PACKET sockets are also required to be able to send/receive raw ethernet frames in order to negotiate the PPPoE session, and thus rp-pppoe depends on them. It's not just a matter of getting the interface number; PF_PACET sockets are integral to the functionality of this plugin.

Signature · 1 line
Michal Ostrowski <[email protected]>
Quoted 50 lines · jfj

Thanks for the confirmation (it is helpful!).

I found the problem and that is that rp-pppoe requires PF_PACKET sockets, which are disabled on my kenrel.

I'd really like to avoid this. It seems rp-pppoe uses packet sockets to get the inteface number. Anybody knows if this can be avoided with a bit of hacking?

Otherwise, we should mention that Kernel PPPoE depends on PF_PACKET :(
And improve the error mesages of rp-pppoe.

jf.

Quoted 18 lines · Gilles Espinasse
Quoted 8 lines

Now when I type

pppd eth0

I get

unrecognized option 'eth0'

Quoted 10 lines

But wasn't the plugin supposed to enable this device?

If I use this script in /etc/ppp/peers/mydsl

#
# PPP over Ethernet options (using roaring pinguin external program) #
plugin rp-pppoe.so

Quoted 10 lines

It work for me with this exact line
plugin rp-pppoe.so eth0
...
Then you should be able to do
pppd call mydsl

Gilles

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html