Page 1 of 1

pptp driver included in kernel & cmake out of source tree building

Posted: 23 Jul 2016, 21:25
by hojuruku
accel-ppp.org wrote:-DBUILD_PPTP_DRIVER=TRUE
This option enables build of pptp kernel module. If you have 2.6.37 or later linux kernel you don't need this option because starting from 2.6.37 pptp is included to mainline kernel.
README wrote: Warning !!!
-----------
1. The pptp driver conflicts with ip_gre driver (in kernel), so make sure that ip_gre is not built-in or loaded at run time
(don't matter if you have 2.6.37 or later kernel).
2. Don't mix connections of accel-ppp and poptop's pptpd, before starting accel-ppp make sure that no connections
of pptpd exists.
I'm a bit confused by the documentation here. Is your pptp kernel module REQUIRED to use pptp with accel-ppp - or the standard kernel module for pptp works just fine?
Because the standard linux kernel module depends on gre

Code: Select all

root@wifi:/mnt/nbd/pcap# lsmod |grep pptp
gre                      992  2 pptp
pptp                   13488  0 
root@wifi:/mnt/nbd/pcap# lsmod |grep gre
gre                      992  2 pptp
ip6_gre                14528  0 
ip6_tunnel             17504  2 ip6_gre
ip_gre                  9120  0 
ip_tunnel              10144  4 ip_gre
I'm working on bringing back accel-ppp to openwrt so I need to know these things.
I haven't done a pull request for the package yet, but I've done a precursor. I take it building outside the CMAKE_HOME_DIRECTORY is require for ipoa kernel module in shared mode.
https://github.com/openwrt/openwrt/pull/41

All accel-ppp modules are only dynloaded if they are specified in the configuration file right? I'm going to try to use modular packaging for accel-ppp in openwrt then to keep the space down in embedded system's flash. The same kind of way strongswan is built in openwrt.

Is the snmp mode buggy in non-master, or just any mode? I saw some mention of that on the forums.

If I get obsessed with maintaining this package, it will have configuration file validation and luci web gui for administration down the track too.

Re: pptp driver included in kernel & cmake out of source tree building

Posted: 24 Jul 2016, 10:00
by Dmitry
so what is confusing ?
it says that for modern kernens (>=2.6.37) no need to build pptp driver and worry about gre
All accel-ppp modules are only dynloaded if they are specified in the configuration file right?
yes, need to specify them in [modules] section

Re: pptp driver included in kernel & cmake out of source tree building

Posted: 24 Jul 2016, 18:21
by hojuruku
I was asking does accel-ppp require it's OWN pptp "driver" to use your lingo, or can it use the existing "linux kernel pptp module" bundled with the kernel instead?

I'll get back to trying to hack accell-ppp to compile on mips / musl / openwrt tomorrow :)

In the meantime anyone help with this question would be greatly appreciated.
https://lists.openwrt.org/pipermail/ope ... 41979.html

Re: pptp driver included in kernel & cmake out of source tree building

Posted: 25 Jul 2016, 19:38
by hojuruku
^^ the issue was resolved ^^ i just replaced the function with a void.