diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-03-26 08:06:30 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-03-26 08:06:30 +0000 |
commit | f4ebd28fcb0184cdefd6d8a23df00d1882d6f495 (patch) | |
tree | 1e3ac91b209124bbc42e76b1a6a4be12badf7c95 /cpukit/libnetworking/net | |
parent | 2007-03-26 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-f4ebd28fcb0184cdefd6d8a23df00d1882d6f495.tar.bz2 |
Partial update from FreeBSD.
Diffstat (limited to 'cpukit/libnetworking/net')
-rw-r--r-- | cpukit/libnetworking/net/if_ppp.h | 21 | ||||
-rw-r--r-- | cpukit/libnetworking/net/ppp_defs.h | 36 |
2 files changed, 22 insertions, 35 deletions
diff --git a/cpukit/libnetworking/net/if_ppp.h b/cpukit/libnetworking/net/if_ppp.h index 17cc4f09e0..07430e3081 100644 --- a/cpukit/libnetworking/net/if_ppp.h +++ b/cpukit/libnetworking/net/if_ppp.h @@ -1,5 +1,3 @@ -/* $Id$ */ - /* * if_ppp.h - Point-to-Point Protocol definitions. * @@ -16,13 +14,26 @@ * from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED - * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + * + * $FreeBSD: src/sys/net/if_ppp.h,v 1.15 2005/01/07 01:45:34 imp Exp $ + */ + +/* + * $Id$ */ #ifndef _IF_PPP_H_ #define _IF_PPP_H_ /* + * Packet sizes + */ +#define PPP_MTU 1500 /* Default MTU (size of Info field) */ +#define PPP_MAXMRU 65000 /* Largest MRU we allow */ +#define PPP_MAXMTU 16384 /* Largest MTU we allow */ + +/* * Bit definitions for flags. */ #define SC_COMP_PROT 0x00000001 /* protocol compression (output) */ @@ -50,8 +61,8 @@ */ #define SC_TIMEOUT 0x00000400 /* timeout is currently pending */ #define SC_VJ_RESET 0x00000800 /* need to reset VJ decomp */ -#define SC_COMP_RUN 0x00001000 /* compressor has been inited */ -#define SC_DECOMP_RUN 0x00002000 /* decompressor has been inited */ +#define SC_COMP_RUN 0x00001000 /* compressor has been initiated */ +#define SC_DECOMP_RUN 0x00002000 /* decompressor has been initiated */ #define SC_DC_ERROR 0x00004000 /* non-fatal decomp error detected */ #define SC_DC_FERROR 0x00008000 /* fatal decomp error detected */ #define SC_TBUSY 0x10000000 /* xmitter doesn't need a packet yet */ 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]; |