* GNU General Public License version 2 for more details.
*
*/
-#pragma once
+
+#ifndef _DHCPV4_H_
+#define _DHCPV4_H_
#define DHCPV4_CLIENT_PORT 68
#define DHCPV4_SERVER_PORT 67
&opt[1] <= (struct dhcpv4_option*)(end) && \
&opt->data[opt->len] <= (end); \
opt = (struct dhcpv4_option*)&opt->data[opt->len])
+
+#endif /* _DHCPV4_H_ */
-#pragma once
+#ifndef _DHCPV6_PXE_H_
+#define _DHCPV6_PXE_H_
#include <unistd.h>
#include <stddef.h>
void ipv6_pxe_serve_boot_url(uint16_t arch, struct iovec* iov);
void ipv6_pxe_dump(void);
void ipv6_pxe_clear(void);
+
+#endif /* _DHCPV6_PXE_H_ */
* GNU General Public License version 2 for more details.
*
*/
-#pragma once
+
+#ifndef _DHCPV6_H_
+#define _DHCPV6_H_
#include "odhcpd.h"
((otype) = _o[0] << 8 | _o[1]) && ((odata) = (void*)&_o[4]) &&\
((olen) = _o[2] << 8 | _o[3]) + (odata) <= (end); \
_o += 4 + (_o[2] << 8 | _o[3]))
+
+#endif /* _DHCPV6_H_ */
*
*/
-#pragma once
+#ifndef _ODHCPD_H_
+#define _ODHCPD_H_
+
#include <netinet/in.h>
#include <netinet/icmp6.h>
#include <netinet/ether.h>
void reload_services(struct interface *iface);
void odhcpd_reload(void);
+
+#endif /* _ODHCPD_H_ */
*
*/
-#pragma once
+#ifndef _ROUTER_H_
+#define _ROUTER_H_
+
#include <stdint.h>
#include <netinet/in.h>
#include <netinet/icmp6.h>
* use this until it is defined in netinet/icmp6.h
*/
#define ND_OPT_PI_FLAG_PD_PREFERRED 0x10
+
+#endif /* _ROUTER_H_ */