dhcp-protocol.h revision 324f818781a250b60f2fcfa74ff1c9101d2d1315
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen This file is part of systemd.
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen Copyright (C) 2013 Intel Corporation. All rights reserved.
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen systemd is free software; you can redistribute it and/or modify it
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen under the terms of the GNU Lesser General Public License as published by
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen the Free Software Foundation; either version 2.1 of the License, or
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen (at your option) any later version.
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen systemd is distributed in the hope that it will be useful, but
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen WITHOUT ANY WARRANTY; without even the implied warranty of
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen Lesser General Public License for more details.
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen You should have received a copy of the GNU Lesser General Public License
b44cd8821087f2afebf85fec5b588f5720a9415cTom Gundersen along with systemd; If not, see <http://www.gnu.org/licenses/>.
20af7091de0cdf92bf299addfc3f96c3ef805bd8Tom Gundersen#define DHCP_IP_SIZE (int32_t)(sizeof(struct iphdr))
59b8f6b628145586e87b8a4f6e29c755ad7d61edTom Gundersen#define DHCP_IP_UDP_SIZE (int32_t)(sizeof(struct udphdr) + DHCP_IP_SIZE)
20af7091de0cdf92bf299addfc3f96c3ef805bd8Tom Gundersen#define DHCP_MESSAGE_SIZE (int32_t)(sizeof(DHCPMessage))
20af7091de0cdf92bf299addfc3f96c3ef805bd8Tom Gundersen#define DHCP_DEFAULT_MIN_SIZE 576 /* the minimum internet hosts must be able to receive */
59b8f6b628145586e87b8a4f6e29c755ad7d61edTom Gundersen#define DHCP_MIN_OPTIONS_SIZE DHCP_DEFAULT_MIN_SIZE - DHCP_IP_UDP_SIZE - DHCP_MESSAGE_SIZE
20af7091de0cdf92bf299addfc3f96c3ef805bd8Tom Gundersen#define DHCP_MAGIC_COOKIE (uint32_t)(0x63825363)
3bdace9bf779ce051f00c14914b35c3a26164aa9Lennart Poettering DHCP_OPTION_VENDOR_CLASS_IDENTIFIER = 60,