summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/pppd/pppd.h
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsbsd/pppd/pppd.h')
-rw-r--r--rtemsbsd/pppd/pppd.h27
1 files changed, 4 insertions, 23 deletions
diff --git a/rtemsbsd/pppd/pppd.h b/rtemsbsd/pppd/pppd.h
index 8655f827..39e69150 100644
--- a/rtemsbsd/pppd/pppd.h
+++ b/rtemsbsd/pppd/pppd.h
@@ -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))