summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/net/ppp_defs.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-03-26 08:06:30 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-03-26 08:06:30 +0000
commitf4ebd28fcb0184cdefd6d8a23df00d1882d6f495 (patch)
tree1e3ac91b209124bbc42e76b1a6a4be12badf7c95 /cpukit/libnetworking/net/ppp_defs.h
parent2007-03-26 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-f4ebd28fcb0184cdefd6d8a23df00d1882d6f495.tar.bz2
Partial update from FreeBSD.
Diffstat (limited to 'cpukit/libnetworking/net/ppp_defs.h')
-rw-r--r--cpukit/libnetworking/net/ppp_defs.h36
1 files changed, 6 insertions, 30 deletions
diff --git a/cpukit/libnetworking/net/ppp_defs.h b/cpukit/libnetworking/net/ppp_defs.h
index c8367c1998..81c46ee5fa 100644
--- a/cpukit/libnetworking/net/ppp_defs.h
+++ b/cpukit/libnetworking/net/ppp_defs.h
@@ -1,5 +1,3 @@
-/* $Id$ */
-
/*
* ppp_defs.h - PPP definitions.
*
@@ -25,6 +23,12 @@
* ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO
* OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
* OR MODIFICATIONS.
+ *
+ * $FreeBSD: src/sys/net/ppp_defs.h,v 1.8 2005/01/07 01:45:35 imp Exp $
+ */
+
+/*
+ * $Id$
*/
#ifndef _PPP_DEFS_H_
@@ -35,21 +39,7 @@
*/
#define PPP_HDRLEN 4 /* octets for standard ppp header */
#define PPP_FCSLEN 2 /* octets for FCS */
-
-/*
- * Packet sizes
- *
- * Note - lcp shouldn't be allowed to negotiate stuff outside these
- * limits. See lcp.h in the pppd directory.
- * (XXX - these constants should simply be shared by lcp.c instead
- * of living in lcp.h)
- */
-#define PPP_MTU 1500 /* Default MTU (size of Info field) */
-#define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN)
-#define PPP_MINMTU 64
#define PPP_MRU 1500 /* default MRU = max length of info field */
-#define PPP_MAXMRU 65000 /* Largest MRU we allow */
-#define PPP_MINMRU 128
#define PPP_ADDRESS(p) (((u_char *)(p))[0])
#define PPP_CONTROL(p) (((u_char *)(p))[1])
@@ -93,20 +83,6 @@
#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
/*
- * A 32-bit unsigned integral type.
- */
-
-#if !defined(__BIT_TYPES_DEFINED__) && !defined(_BITYPES) \
- && !defined(__FreeBSD__) && (NS_TARGET < 40)
-#ifdef UINT32_T
-typedef UINT32_T u_int32_t;
-#else
-/*typedef unsigned int u_int32_t;*/
-/*typedef unsigned short u_int16_t;*/
-#endif
-#endif
-
-/*
* Extended asyncmap - allows any character to be escaped.
*/
typedef u_int32_t ext_accm[8];