X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2Fpppol2tp%2Fpppol2tp.c;h=c1eaa9afeb88e23df5ecdc52fd51ca21cb1e0aa9;hb=bdd34ab1f2f87acb23c6d92feee7354ac53005ff;hp=f22568df5a0eea48ed64ef1e9bb75e38d21dcca5;hpb=890a96a04bc07ced5cf0ae2f86e3365e3c99f3d3;p=ppp.git diff --git a/pppd/plugins/pppol2tp/pppol2tp.c b/pppd/plugins/pppol2tp/pppol2tp.c index f22568d..c1eaa9a 100644 --- a/pppd/plugins/pppol2tp/pppol2tp.c +++ b/pppd/plugins/pppol2tp/pppol2tp.c @@ -20,20 +20,10 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ -#ifdef HAVE_CONFIG_H -#include -#endif - #include #include #include #include -#include "pppd.h" -#include "pathnames.h" -#include "fsm.h" -#include "lcp.h" -#include "ccp.h" -#include "ipcp.h" #include #include #include @@ -42,10 +32,12 @@ #include #include #include + #ifndef aligned_u64 /* should be defined in sys/types.h */ #define aligned_u64 unsigned long long __attribute__((aligned(8))) #endif + #include #include #include @@ -53,12 +45,20 @@ #include #include +#include +#include +#include +#include +#include +#include + + /* should be added to system's socket.h... */ #ifndef SOL_PPPOL2TP #define SOL_PPPOL2TP 273 #endif -const char pppd_version[] = VERSION; +const char pppd_version[] = PPPD_VERSION; static int setdevname_pppol2tp(char **argv); @@ -207,8 +207,8 @@ static void send_config_pppol2tp(int mtu, int on = 1; int fd; char reorderto[16]; - char tid[8]; - char sid[8]; + char tid[12]; + char sid[12]; if (pppol2tp_ifname[0]) { struct ifreq ifr; @@ -509,8 +509,10 @@ void plugin_init(void) */ add_notifier(&ip_up_notifier, pppol2tp_ip_up, NULL); add_notifier(&ip_down_notifier, pppol2tp_ip_down, NULL); +#ifdef INET6 add_notifier(&ipv6_up_notifier, pppol2tp_ip_up, NULL); add_notifier(&ipv6_down_notifier, pppol2tp_ip_down, NULL); +#endif } struct channel pppol2tp_channel = {