dhcp_symbol_common.h (7c478bd9) | dhcp_symbol_common.h (d04ccbb3) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the | 1/* 2 * CDDL HEADER START 3 * 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 7 * with the License. | 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. |
8 * 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. 13 * 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] 19 * 20 * CDDL HEADER END 21 */ 22/* | 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* |
23 * Copyright 2003 Sun Microsystems, Inc. All rights reserved. | 22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. 25 */ 26 27#ifndef _DHCP_SYMBOL_COMMON_H 28#define _DHCP_SYMBOL_COMMON_H 29 30#pragma ident "%Z%%M% %I% %E% SMI" 31 --- 18 unchanged lines hidden (view full) --- 50 DSYM_STANDARD = 0, /* Standard option */ 51 DSYM_EXTEND = 1, /* Extended Standard option */ 52 DSYM_VENDOR = 2, /* Vendor-specific option */ 53 DSYM_SITE = 3, /* Site-specific option */ 54 DSYM_FIELD = 4, /* DHCP packet fixed field option */ 55 DSYM_INTERNAL = 5 /* Solaris DHCP internal option */ 56} dsym_category_t; 57 | 23 * Use is subject to license terms. 24 */ 25 26#ifndef _DHCP_SYMBOL_COMMON_H 27#define _DHCP_SYMBOL_COMMON_H 28 29#pragma ident "%Z%%M% %I% %E% SMI" 30 --- 18 unchanged lines hidden (view full) --- 49 DSYM_STANDARD = 0, /* Standard option */ 50 DSYM_EXTEND = 1, /* Extended Standard option */ 51 DSYM_VENDOR = 2, /* Vendor-specific option */ 52 DSYM_SITE = 3, /* Site-specific option */ 53 DSYM_FIELD = 4, /* DHCP packet fixed field option */ 54 DSYM_INTERNAL = 5 /* Solaris DHCP internal option */ 55} dsym_category_t; 56 |
58#define DSYM_CATEGORY_NUM DSYM_INTERNAL + 1 /* DSYM_BAD_CAT excluded */ 59 | |
60/* 61 * Symbol type ids and strings 62 */ 63typedef enum { 64 DSYM_BAD_TYPE = -1, /* An invalid type */ 65 DSYM_ASCII = 0, /* A printable character string */ 66 DSYM_OCTET = 1, /* An array of bytes */ 67 DSYM_IP = 2, /* An IP address */ 68 DSYM_NUMBER = 3, /* A signed number */ 69 DSYM_BOOL = 4, /* No associated value */ 70 DSYM_INCLUDE = 5, /* Include macro (internal only) */ 71 DSYM_UNUMBER8 = 6, /* An 8-bit unsigned integer */ 72 DSYM_UNUMBER16 = 7, /* A 16-bit unsigned integer */ 73 DSYM_UNUMBER32 = 8, /* A 32-bit unsigned integer */ 74 DSYM_UNUMBER64 = 9, /* A 64-bit unsigned integer */ 75 DSYM_SNUMBER8 = 10, /* An 8-bit signed integer */ 76 DSYM_SNUMBER16 = 11, /* A 16-bit signed integer */ 77 DSYM_SNUMBER32 = 12, /* A 32-bit signed integer */ | 57/* 58 * Symbol type ids and strings 59 */ 60typedef enum { 61 DSYM_BAD_TYPE = -1, /* An invalid type */ 62 DSYM_ASCII = 0, /* A printable character string */ 63 DSYM_OCTET = 1, /* An array of bytes */ 64 DSYM_IP = 2, /* An IP address */ 65 DSYM_NUMBER = 3, /* A signed number */ 66 DSYM_BOOL = 4, /* No associated value */ 67 DSYM_INCLUDE = 5, /* Include macro (internal only) */ 68 DSYM_UNUMBER8 = 6, /* An 8-bit unsigned integer */ 69 DSYM_UNUMBER16 = 7, /* A 16-bit unsigned integer */ 70 DSYM_UNUMBER32 = 8, /* A 32-bit unsigned integer */ 71 DSYM_UNUMBER64 = 9, /* A 64-bit unsigned integer */ 72 DSYM_SNUMBER8 = 10, /* An 8-bit signed integer */ 73 DSYM_SNUMBER16 = 11, /* A 16-bit signed integer */ 74 DSYM_SNUMBER32 = 12, /* A 32-bit signed integer */ |
78 DSYM_SNUMBER64 = 13 /* A 64-bit signed integer */ | 75 DSYM_SNUMBER64 = 13, /* A 64-bit signed integer */ 76 DSYM_UNUMBER24 = 14, /* A 24-bit unsigned integer */ 77 DSYM_IPV6 = 15, /* An IPv6 address */ 78 DSYM_DUID = 16, /* A DHCP Unique Identifier */ 79 DSYM_DOMAIN = 17 /* An RFC 1035-encoded domain name */ |
79} dsym_cdtype_t; 80 | 80} dsym_cdtype_t; 81 |
81#define DSYM_CDTYPE_NUM DSYM_SNUMBER64 + 1 /* DSYM_BAD_TYPE excluded */ 82 | |
83#ifdef __cplusplus 84} 85#endif 86 87#endif /* _DHCP_SYMBOL_COMMON_H */ | 82#ifdef __cplusplus 83} 84#endif 85 86#endif /* _DHCP_SYMBOL_COMMON_H */ |