dhcp_impl.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1999-2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _DHCP_IMPL_H
#define _DHCP_IMPL_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Common definitions used by Sun DHCP implementations
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <dhcp_symbol_common.h>
#include <sys/sunos_dhcp_class.h>
/* Packet fields */
#define CD_PACKET_START 0
#define CD_POPCODE 0 /* packet opcode */
#define CD_PACKET_END CD_POPTIONS
/* Internal server options */
#define CD_INTRNL_START 1024
#define CD_INTRNL_END 1027
/* Error codes that could be generated while parsing packets */
#define DHCP_ERR_OFFSET 512
#define DHCP_GARBLED_MSG_TYPE (DHCP_ERR_OFFSET+0)
/*
* Arbitrary "maximum" client ID length (in bytes), used by various bits
* of the standalone code. This needs to go away someday.
*/
#define DHCP_MAX_CID_LEN 64
/*
* Generic DHCP option structure.
*/
typedef struct {
} DHCP_OPT;
/*
* Generic DHCP packet list. Ensure that _REENTRANT bracketed code stays at
* bottom of this definition - the client doesn't include it. Scan.c in
* libdhcp isn't aware of it either...
*/
typedef struct dhcp_list {
int rfc1048; /* RFC1048 options - boolean */
/*
*/
/*
* Vendor specific options (client only)
*/
} PKT_LIST;
void *, size_t *);
#ifdef __cplusplus
}
#endif
#endif /* _DHCP_IMPL_H */