Fix markup. Fix backslashes to surive roff.
[netbsd-mini2440.git] / dist / tcpdump / l2tp.h
blob5e003a95f312230507bdad25d9a04ed535925132
1 /* $NetBSD$ */
3 /* @(#) Header: /tcpdump/master/tcpdump/l2tp.h,v 1.5 2001/11/05 10:03:27 guy Exp (LBL) */
4 /*
5 * Copyright (c) 1991, 1993, 1994, 1995, 1996, 1997
6 * The Regents of the University of California. All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that: (1) source code distributions
10 * retain the above copyright notice and this paragraph in its entirety, (2)
11 * distributions including binary code include the above copyright notice and
12 * this paragraph in its entirety in the documentation or other materials
13 * provided with the distribution, and (3) all advertising materials mentioning
14 * features or use of this software display the following acknowledgement:
15 * ``This product includes software developed by the University of California,
16 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
17 * the University nor the names of its contributors may be used to endorse
18 * or promote products derived from this software without specific prior
19 * written permission.
20 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
21 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
22 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
24 * L2TP support contributed by Motonori Shindo (mshindo@mshindo.net)
28 #define L2TP_FLAG_TYPE 0x8000 /* Type (0=Data, 1=Control) */
29 #define L2TP_FLAG_LENGTH 0x4000 /* Length */
30 #define L2TP_FLAG_SEQUENCE 0x0800 /* Sequence */
31 #define L2TP_FLAG_OFFSET 0x0200 /* Offset */
32 #define L2TP_FLAG_PRIORITY 0x0100 /* Priority */
34 #define L2TP_VERSION_MASK 0x000f /* Version Mask */
35 #define L2TP_VERSION_L2F 0x0001 /* L2F */
36 #define L2TP_VERSION_L2TP 0x0002 /* L2TP */
38 #define L2TP_AVP_HDR_FLAG_MANDATORY 0x8000 /* Mandatory Flag */
39 #define L2TP_AVP_HDR_FLAG_HIDDEN 0x4000 /* Hidden Flag */
40 #define L2TP_AVP_HDR_LEN_MASK 0x03ff /* Length Mask */
42 #define L2TP_FRAMING_CAP_SYNC_MASK 0x00000001 /* Synchronous */
43 #define L2TP_FRAMING_CAP_ASYNC_MASK 0x00000002 /* Asynchronous */
45 #define L2TP_FRAMING_TYPE_SYNC_MASK 0x00000001 /* Synchronous */
46 #define L2TP_FRAMING_TYPE_ASYNC_MASK 0x00000002 /* Asynchronous */
48 #define L2TP_BEARER_CAP_DIGITAL_MASK 0x00000001 /* Digital */
49 #define L2TP_BEARER_CAP_ANALOG_MASK 0x00000002 /* Analog */
51 #define L2TP_BEARER_TYPE_DIGITAL_MASK 0x00000001 /* Digital */
52 #define L2TP_BEARER_TYPE_ANALOG_MASK 0x00000002 /* Analog */
54 /* Authen Type */
55 #define L2TP_AUTHEN_TYPE_RESERVED 0x0000 /* Reserved */
56 #define L2TP_AUTHEN_TYPE_TEXTUAL 0x0001 /* Textual username/password exchange */
57 #define L2TP_AUTHEN_TYPE_CHAP 0x0002 /* PPP CHAP */
58 #define L2TP_AUTHEN_TYPE_PAP 0x0003 /* PPP PAP */
59 #define L2TP_AUTHEN_TYPE_NO_AUTH 0x0004 /* No Authentication */
60 #define L2TP_AUTHEN_TYPE_MSCHAPv1 0x0005 /* MSCHAPv1 */
62 #define L2TP_PROXY_AUTH_ID_MASK 0x00ff