2 * Copyright 2007, Broadcom Corporation
5 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
6 * the contents of this file may not be disclosed to third parties, copied
7 * or duplicated in any form, in whole or in part, without the prior
8 * written permission of Broadcom Corporation.
10 * Fundamental constants relating to DHCP Protocol
18 #define DHCP_TYPE_OFFSET 0 /* DHCP type (request|reply) offset */
19 #define DHCP_FLAGS_OFFSET 10 /* DHCP flags offset */
20 #define DHCP_CIADDR_OFFSET 12 /* DHCP client IP address offset */
21 #define DHCP_YIADDR_OFFSET 16 /* DHCP your IP address offset */
22 #define DHCP_GIADDR_OFFSET 24 /* DHCP relay agent IP address offset */
23 #define DHCP_CHADDR_OFFSET 28 /* DHCP client h/w address offset */
25 #define DHCP_TYPE_REQUEST 1 /* DHCP request (discover|request) */
26 #define DHCP_TYPE_REPLY 2 /* DHCP reply (offset|ack) */
28 #define DHCP_PORT_SERVER 67 /* DHCP server UDP port */
29 #define DHCP_PORT_CLIENT 68 /* DHCP client UDP port */
31 #define DHCP_FLAG_BCAST 0x8000 /* DHCP broadcast flag */
33 #define DHCP_FLAGS_LEN 2 /* DHCP flags field length */
35 #endif /* #ifndef _bcmdhcp_h_ */
This page took 0.056863 seconds and 5 git commands to generate.