ppp: Port to new stack

This commit is contained in:
Sebastian Huber
2014-10-08 08:04:59 +02:00
parent 70fa95a2e8
commit 573b4cd62f
14 changed files with 682 additions and 208 deletions

View File

@@ -31,6 +31,8 @@
#include <net/ppp_defs.h>
#include <rtems/rtemsdialer.h>
#include <stdint.h>
#include <arpa/nameser.h>
#include <arpa/nameser_compat.h>
#if defined(__STDC__)
#include <stdarg.h>
@@ -46,6 +48,8 @@
#include "eui64.h"
#endif
#include "namespace.h"
/*
* Limits.
*/
@@ -502,29 +506,6 @@ extern void (*auth_linkdown_hook)(void);
*(cp)++ = (u_char) (c); \
}
#define GETSHORT(s, cp) { \
(s) = *(cp)++ << 8; \
(s) |= *(cp)++; \
}
#define PUTSHORT(s, cp) { \
*(cp)++ = (u_char) ((s) >> 8); \
*(cp)++ = (u_char) (s); \
}
#define GETLONG(l, cp) { \
(l) = *(cp)++ << 8; \
(l) |= *(cp)++; (l) <<= 8; \
(l) |= *(cp)++; (l) <<= 8; \
(l) |= *(cp)++; \
}
#define PUTLONG(l, cp) { \
*(cp)++ = (u_char) ((l) >> 24); \
*(cp)++ = (u_char) ((l) >> 16); \
*(cp)++ = (u_char) ((l) >> 8); \
*(cp)++ = (u_char) (l); \
}
#define INCPTR(n, cp) ((cp) += (n))
#define DECPTR(n, cp) ((cp) -= (n))