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