summaryrefslogtreecommitdiff
path: root/accel-pptpd/include
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-10-08 12:16:07 +0400
committerKozlov Dmitry <dima@server>2010-10-08 12:16:07 +0400
commitc258ec9bc665fdbd479498a77aea5589b316e074 (patch)
tree4db52663a053e7237e06d1474e603f97b17aafa2 /accel-pptpd/include
parent66ecf5cd90f437b508749e64914daed0a9e2ba3e (diff)
downloadaccel-ppp-c258ec9bc665fdbd479498a77aea5589b316e074.tar.gz
accel-ppp-c258ec9bc665fdbd479498a77aea5589b316e074.zip
ctrl: implemented PPPoE server
Diffstat (limited to 'accel-pptpd/include')
-rw-r--r--accel-pptpd/include/events.h2
-rw-r--r--accel-pptpd/include/if_pppox.h13
2 files changed, 12 insertions, 3 deletions
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 <stdint.h>
+
#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 <asm/types.h>
#include <asm/byteorder.h>
#include <linux/version.h>
+#include <linux/if.h>
+#include <linux/if_ether.h>
#ifdef __KERNEL__
#include <linux/in.h>
-#include <linux/if_ether.h>
-#include <linux/if.h>
#include <linux/netdevice.h>
#include <linux/ppp_channel.h>
#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));