Changeset f4ebd28 in rtems


Ignore:
Timestamp:
Mar 26, 2007, 8:06:30 AM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
2661376d
Parents:
6efd1a6
Message:

Partial update from FreeBSD.

Location:
cpukit/libnetworking/net
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/net/if_ppp.h

    r6efd1a6 rf4ebd28  
    1 /*      $Id$    */
    2 
    31/*
    42 * if_ppp.h - Point-to-Point Protocol definitions.
     
    1715 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
    1816 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
    19  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
     17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
     18 *
     19 * $FreeBSD: src/sys/net/if_ppp.h,v 1.15 2005/01/07 01:45:34 imp Exp $
     20 */
     21
     22/*
     23 * $Id$
    2024 */
    2125
    2226#ifndef _IF_PPP_H_
    2327#define _IF_PPP_H_
     28
     29/*
     30 * Packet sizes
     31 */
     32#define PPP_MTU         1500    /* Default MTU (size of Info field) */
     33#define PPP_MAXMRU      65000   /* Largest MRU we allow */
     34#define PPP_MAXMTU      16384   /* Largest MTU we allow */
    2435
    2536/*
     
    5162#define SC_TIMEOUT      0x00000400      /* timeout is currently pending */
    5263#define SC_VJ_RESET     0x00000800      /* need to reset VJ decomp */
    53 #define SC_COMP_RUN     0x00001000      /* compressor has been inited */
    54 #define SC_DECOMP_RUN   0x00002000      /* decompressor has been inited */
     64#define SC_COMP_RUN     0x00001000      /* compressor has been initiated */
     65#define SC_DECOMP_RUN   0x00002000      /* decompressor has been initiated */
    5566#define SC_DC_ERROR     0x00004000      /* non-fatal decomp error detected */
    5667#define SC_DC_FERROR    0x00008000      /* fatal decomp error detected */
  • cpukit/libnetworking/net/ppp_defs.h

    r6efd1a6 rf4ebd28  
    1 /*      $Id$    */
    2 
    31/*
    42 * ppp_defs.h - PPP definitions.
     
    2624 * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
    2725 * OR MODIFICATIONS.
     26 *
     27 * $FreeBSD: src/sys/net/ppp_defs.h,v 1.8 2005/01/07 01:45:35 imp Exp $
     28 */
     29
     30/*
     31 * $Id$
    2832 */
    2933
     
    3640#define PPP_HDRLEN      4       /* octets for standard ppp header */
    3741#define PPP_FCSLEN      2       /* octets for FCS */
    38 
    39 /*
    40  * Packet sizes
    41  *
    42  * Note - lcp shouldn't be allowed to negotiate stuff outside these
    43  *        limits.  See lcp.h in the pppd directory.
    44  * (XXX - these constants should simply be shared by lcp.c instead
    45  *        of living in lcp.h)
    46  */
    47 #define PPP_MTU         1500    /* Default MTU (size of Info field) */
    48 #define PPP_MAXMTU      65535 - (PPP_HDRLEN + PPP_FCSLEN)
    49 #define PPP_MINMTU      64
    5042#define PPP_MRU         1500    /* default MRU = max length of info field */
    51 #define PPP_MAXMRU      65000   /* Largest MRU we allow */
    52 #define PPP_MINMRU      128
    5343
    5444#define PPP_ADDRESS(p)  (((u_char *)(p))[0])
     
    9282#define PPP_GOODFCS     0xf0b8  /* Good final FCS value */
    9383#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
    94 
    95 /*
    96  * A 32-bit unsigned integral type.
    97  */
    98 
    99 #if !defined(__BIT_TYPES_DEFINED__) && !defined(_BITYPES) \
    100  && !defined(__FreeBSD__) && (NS_TARGET < 40)
    101 #ifdef  UINT32_T
    102 typedef UINT32_T        u_int32_t;
    103 #else
    104 /*typedef unsigned int  u_int32_t;*/
    105 /*typedef unsigned short  u_int16_t;*/
    106 #endif
    107 #endif
    10884
    10985/*
Note: See TracChangeset for help on using the changeset viewer.