Deleted Added
full compact
ppp_defs.h (139823) ppp_defs.h (250887)
1/*
2 * ppp_defs.h - PPP definitions.
3 */
4/*-
5 * Copyright (c) 1994 The Australian National University.
6 * All rights reserved.
7 *
8 * Permission to use, copy, modify, and distribute this software and its

--- 11 unchanged lines hidden (view full) ---

20 *
21 * THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES,
22 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
23 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
24 * ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO
25 * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
26 * OR MODIFICATIONS.
27 *
1/*
2 * ppp_defs.h - PPP definitions.
3 */
4/*-
5 * Copyright (c) 1994 The Australian National University.
6 * All rights reserved.
7 *
8 * Permission to use, copy, modify, and distribute this software and its

--- 11 unchanged lines hidden (view full) ---

20 *
21 * THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES,
22 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
23 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
24 * ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO
25 * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
26 * OR MODIFICATIONS.
27 *
28 * $FreeBSD: head/sys/net/ppp_defs.h 139823 2005-01-07 01:45:51Z imp $
28 * $FreeBSD: head/sys/net/ppp_defs.h 250887 2013-05-21 21:20:10Z ed $
29 */
30
31#ifndef _PPP_DEFS_H_
32#define _PPP_DEFS_H_
33
29 */
30
31#ifndef _PPP_DEFS_H_
32#define _PPP_DEFS_H_
33
34#include <sys/_types.h>
35
34/*
35 * The basic PPP frame.
36 */
37#define PPP_HDRLEN 4 /* octets for standard ppp header */
38#define PPP_FCSLEN 2 /* octets for FCS */
39#define PPP_MRU 1500 /* default MRU = max length of info field */
40
41#define PPP_ADDRESS(p) (((u_char *)(p))[0])

--- 36 unchanged lines hidden (view full) ---

78 */
79#define PPP_INITFCS 0xffff /* Initial FCS value */
80#define PPP_GOODFCS 0xf0b8 /* Good final FCS value */
81#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
82
83/*
84 * Extended asyncmap - allows any character to be escaped.
85 */
36/*
37 * The basic PPP frame.
38 */
39#define PPP_HDRLEN 4 /* octets for standard ppp header */
40#define PPP_FCSLEN 2 /* octets for FCS */
41#define PPP_MRU 1500 /* default MRU = max length of info field */
42
43#define PPP_ADDRESS(p) (((u_char *)(p))[0])

--- 36 unchanged lines hidden (view full) ---

80 */
81#define PPP_INITFCS 0xffff /* Initial FCS value */
82#define PPP_GOODFCS 0xf0b8 /* Good final FCS value */
83#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
84
85/*
86 * Extended asyncmap - allows any character to be escaped.
87 */
86typedef u_int32_t ext_accm[8];
88typedef __uint32_t ext_accm[8];
87
88/*
89 * What to do with network protocol (NP) packets.
90 */
91enum NPmode {
92 NPMODE_PASS, /* pass the packet through */
93 NPMODE_DROP, /* silently drop the packet */
94 NPMODE_ERROR, /* return an error */

--- 43 unchanged lines hidden (view full) ---

138 struct compstat d; /* packet decompression statistics */
139};
140
141/*
142 * The following structure records the time in seconds since
143 * the last NP packet was sent or received.
144 */
145struct ppp_idle {
89
90/*
91 * What to do with network protocol (NP) packets.
92 */
93enum NPmode {
94 NPMODE_PASS, /* pass the packet through */
95 NPMODE_DROP, /* silently drop the packet */
96 NPMODE_ERROR, /* return an error */

--- 43 unchanged lines hidden (view full) ---

140 struct compstat d; /* packet decompression statistics */
141};
142
143/*
144 * The following structure records the time in seconds since
145 * the last NP packet was sent or received.
146 */
147struct ppp_idle {
146 time_t xmit_idle; /* time since last NP packet sent */
147 time_t recv_idle; /* time since last NP packet received */
148 __time_t xmit_idle; /* time since last NP packet sent */
149 __time_t recv_idle; /* time since last NP packet received */
148};
149
150#ifndef __P
151#ifdef __STDC__
152#define __P(x) x
153#else
154#define __P(x) ()
155#endif
156#endif
157
158#endif /* _PPP_DEFS_H_ */
150};
151
152#ifndef __P
153#ifdef __STDC__
154#define __P(x) x
155#else
156#define __P(x) ()
157#endif
158#endif
159
160#endif /* _PPP_DEFS_H_ */