Annotation of embedaddon/mpd/src/proto.h, revision 1.1.1.1
1.1 misho 1:
2: /*
3: * proto.h
4: *
5: * Written by Archie Cobbs <archie@freebsd.org>
6: * Copyright (c) 1995-1999 Whistle Communications, Inc. All rights reserved.
7: * See ``COPYRIGHT.whistle''
8: */
9:
10: #ifndef _PROTO_H_
11: #define _PROTO_H_
12:
13: /* Network layer protocols */
14:
15: #define PROTO_IP 0x0021 /* IP */
16: #define PROTO_IPV6 0x0057 /* IPv6 */
17: #define PROTO_VJUNCOMP 0x002f /* VJ Uncompressed */
18: #define PROTO_VJCOMP 0x002d /* VJ Compressed */
19: #define PROTO_MP 0x003d /* Multi-link PPP */
20: #define PROTO_COMPD 0x00fd /* Compressed datagram */
21: #define PROTO_ICOMPD 0x00fb /* Individual link compress */
22: #define PROTO_CRYPT 0x0053 /* Encrypted datagram */
23: #define PROTO_ICRYPT 0x0055 /* Individual link encrypted */
24:
25: /* Network layer control protocols */
26:
27: #define PROTO_IPCP 0x8021
28: #define PROTO_IPV6CP 0x8057
29: #define PROTO_CCP 0x80fd
30: #define PROTO_ICCP 0x80fb
31: #define PROTO_ECP 0x8053
32: #define PROTO_IECP 0x8055
33: #define PROTO_ATCP 0x8029
34:
35: /* Link layer control protocols */
36:
37: #define PROTO_LCP 0xc021
38: #define PROTO_PAP 0xc023
39: #define PROTO_LQR 0xc025
40: #define PROTO_SPAP 0xc027
41: #define PROTO_CHAP 0xc223
42: #define PROTO_EAP 0xc227
43:
44: #define PROTO_UNKNOWN 0x0000
45:
46: #define PROT_VALID(p) (((p) & 0x0101) == 0x0001)
47: #define PROT_NETWORK_DATA(p) (((p) & 0xC000) == 0x0000)
48: #define PROT_LOW_VOLUME(p) (((p) & 0xC000) == 0x4000)
49: #define PROT_NETWORK_CTRL(p) (((p) & 0xC000) == 0x8000)
50: #define PROT_LINK_LAYER(p) (((p) & 0xC000) == 0xC000)
51: #define PROT_COMPRESSIBLE(p) (((p) & 0xFF00) == 0x0000)
52:
53: #define PROT_CCP_COMPABLE(p) ((p) >= 0x21 && (p) < 0xfa)
54:
55: /*
56: * FUNCTIONS
57: */
58:
59: extern const char *ProtoName(int proto);
60:
61: #endif
62:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>