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

PPTP related questions
Post Reply
hojuruku
Posts: 10
Joined: 23 Jul 2016, 21:08

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

Post by hojuruku » 23 Jul 2016, 21:25

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.

Dmitry
Администратор
Posts: 949
Joined: 09 Oct 2014, 10:06

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

Post by Dmitry » 24 Jul 2016, 10:00

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

hojuruku
Posts: 10
Joined: 23 Jul 2016, 21:08

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

Post by hojuruku » 24 Jul 2016, 18:21

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

hojuruku
Posts: 10
Joined: 23 Jul 2016, 21:08

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

Post by hojuruku » 25 Jul 2016, 19:38

^^ the issue was resolved ^^ i just replaced the function with a void.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest