4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 1998 by Sun Microsystems, Inc.
24 * All rights reserved.
30 #pragma ident "%Z%%M% %I% %E% SMI"
33 * Structs and definitions for the snoop SLP interpreter only
34 * (This code is not used by the SLP library).
43 unsigned char function
;
44 unsigned short length
;
46 unsigned char dialect
;
47 unsigned char language
[2];
48 unsigned short charset
;
54 unsigned char function
;
55 unsigned char l1
, l2
, l3
;
57 unsigned char reserved
;
58 unsigned char o1
, o2
, o3
;
65 #define V1_OVERFLOW 0x80
66 #define V1_MONOLINGUAL 0x40
67 #define V1_URL_AUTH 0x20
68 #define V1_ATTR_AUTH 0x10
69 #define V1_FRESH_REG 0x08
71 #define V2_OVERFLOW 0x80
87 #define V1_SRVTYPERQST 9
88 #define V1_SRVTYPERPLY 10
98 #define V2_SRVTYPERQST 9
99 #define V2_SRVTYPERPLY 10
100 #define V2_SAADVERT 11
103 * extended packet types
117 #define LANG_NOT_SUPPORTED 0x0001
118 #define PROTOCOL_PARSE_ERR 0x0002
119 #define INVALID_REGISTRATION 0x0003
120 #define SCOPE_NOT_SUPPORTED 0x0004
121 #define CHARSET_NOT_UNDERSTOOD 0x0005
122 #define AUTHENTICATION_UNKNOWN 0x0005
123 #define AUTHENTICATION_INVALID 0x0006
124 #define V2_AUTHENTICATION_ABSENT 0x0006
125 #define V2_AUTHENTICATION_FAILED 0x0007
126 #define V2_VER_NOT_SUPPORTED 0x0009
127 #define NOT_SUPPORTED_YET 0x000a
128 #define V2_INTERNAL_ERROR 0x000a
129 #define REQUEST_TIMED_OUT 0x000b
130 #define V2_DA_BUSY_NOW 0x000b
131 #define COULD_NOT_INIT_NET_RESOURCES 0x000c
132 #define V2_OPTION_NOT_UNDERSTOOD 0x000c
133 #define COULD_NOT_ALLOCATE_MEMORY 0x000d
134 #define V2_INVALID_UPDATE 0x000d
135 #define PARAMETER_BAD 0x000e
136 #define V2_RQST_NOT_SUPPORTED 0x000e
137 #define INVALID_LIFETIME 0x000f
139 #define INTERNAL_NET_ERROR 0x000f
140 #define INTERNAL_SYSTEM_ERROR 0x0010
146 #endif /* _SNOOP_SLP_H */