From c258ec9bc665fdbd479498a77aea5589b316e074 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Fri, 8 Oct 2010 12:16:07 +0400 Subject: ctrl: implemented PPPoE server --- accel-pptpd/include/events.h | 2 ++ accel-pptpd/include/if_pppox.h | 13 ++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'accel-pptpd/include') diff --git a/accel-pptpd/include/events.h b/accel-pptpd/include/events.h index 2f4c4e5c..f0785be8 100644 --- a/accel-pptpd/include/events.h +++ b/accel-pptpd/include/events.h @@ -1,6 +1,8 @@ #ifndef __EVENTS_H #define __EVENTS_H +#include + #define EV_PPP_STARTING 1 #define EV_PPP_STARTED 2 #define EV_PPP_FINISHING 3 diff --git a/accel-pptpd/include/if_pppox.h b/accel-pptpd/include/if_pppox.h index da327a1c..0532d18f 100644 --- a/accel-pptpd/include/if_pppox.h +++ b/accel-pptpd/include/if_pppox.h @@ -20,11 +20,11 @@ #include #include #include +#include +#include #ifdef __KERNEL__ #include -#include -#include #include #include #endif /* __KERNEL__ */ @@ -37,7 +37,13 @@ #define PF_PPPOX AF_PPPOX #endif /* !(AF_PPPOX) */ -struct pptp_addr{ +struct pppoe_addr { + __be16 sid; + unsigned char remote[ETH_ALEN]; + char dev[IFNAMSIZ]; +}; + +struct pptp_addr { __u16 call_id; struct in_addr sin_addr; }; @@ -57,6 +63,7 @@ struct sockaddr_pppox { sa_family_t sa_family; /* address family, AF_PPPOX */ unsigned int sa_protocol; /* protocol identifier */ union{ + struct pppoe_addr pppoe; struct pptp_addr pptp; }sa_addr; }__attribute__ ((packed)); -- cgit v1.2.3