Deleted Added
full compact
ppp_defs.h (50477) ppp_defs.h (78064)
1/*
2 * ppp_defs.h - PPP definitions.
3 *
4 * Copyright (c) 1994 The Australian National University.
5 * All rights reserved.
6 *
7 * Permission to use, copy, modify, and distribute this software and its
8 * documentation is hereby granted, provided that the above copyright

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

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

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

19 *
20 * THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES,
21 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
22 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
23 * ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO
24 * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
25 * OR MODIFICATIONS.
26 *
27 * $FreeBSD: head/sys/net/ppp_defs.h 50477 1999-08-28 01:08:13Z peter $
27 * $FreeBSD: head/sys/net/ppp_defs.h 78064 2001-06-11 12:39:29Z ume $
28 */
29
30#ifndef _PPP_DEFS_H_
31#define _PPP_DEFS_H_
32
33/*
34 * The basic PPP frame.
35 */

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

64#define PPP_ATCP 0x8029 /* AppleTalk Control Protocol */
65#define PPP_IPXCP 0x802b /* IPX Control Protocol (RFC1552) */
66#define PPP_CCP 0x80fd /* Compression Control Protocol */
67#define PPP_LCP 0xc021 /* Link Control Protocol */
68#define PPP_PAP 0xc023 /* Password Authentication Protocol */
69#define PPP_LQR 0xc025 /* Link Quality Report protocol */
70#define PPP_CHAP 0xc223 /* Cryptographic Handshake Auth. Protocol */
71#define PPP_CBCP 0xc029 /* Callback Control Protocol */
28 */
29
30#ifndef _PPP_DEFS_H_
31#define _PPP_DEFS_H_
32
33/*
34 * The basic PPP frame.
35 */

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

64#define PPP_ATCP 0x8029 /* AppleTalk Control Protocol */
65#define PPP_IPXCP 0x802b /* IPX Control Protocol (RFC1552) */
66#define PPP_CCP 0x80fd /* Compression Control Protocol */
67#define PPP_LCP 0xc021 /* Link Control Protocol */
68#define PPP_PAP 0xc023 /* Password Authentication Protocol */
69#define PPP_LQR 0xc025 /* Link Quality Report protocol */
70#define PPP_CHAP 0xc223 /* Cryptographic Handshake Auth. Protocol */
71#define PPP_CBCP 0xc029 /* Callback Control Protocol */
72#define PPP_IPV6 0x57 /* Internet Protocol version 6*/
73#define PPP_IPV6CP 0x8057 /* IPv6 Control Protocol */
72
73/*
74 * Values for FCS calculations.
75 */
76#define PPP_INITFCS 0xffff /* Initial FCS value */
77#define PPP_GOODFCS 0xf0b8 /* Good final FCS value */
78#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
79

--- 76 unchanged lines hidden ---
74
75/*
76 * Values for FCS calculations.
77 */
78#define PPP_INITFCS 0xffff /* Initial FCS value */
79#define PPP_GOODFCS 0xf0b8 /* Good final FCS value */
80#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
81

--- 76 unchanged lines hidden ---