[Dnsmasq-discuss] dnsmasq v2.37 -- ARPHRD_EUI64 undeclared on OpenBSD 4.0

Jeb Campbell jebc at c4solutions.net
Wed Feb 7 16:56:23 GMT 2007


This patch seems to do the trick (unless it is needed elsewhere):
--- src/rfc2131.c.orig  Mon Feb  5 08:22:44 2007
+++ src/rfc2131.c       Mon Feb  5 08:23:35 2007
@@ -63,6 +63,10 @@
 #define option_len(opt) ((int)(((unsigned char *)(opt))[1]))
 #define option_ptr(opt) ((void *)&(((unsigned char *)(opt))[2]))

+#ifndef ARPHRD_EUI64
+#define ARPHRD_EUI64        27              /* EUI-64 */
+#endif
+
 static unsigned int calc_time(struct dhcp_context *context, struct
dhcp_config *config,
                              struct dhcp_lease *lease, unsigned char
*opt, time_t now);
 static void option_put(struct dhcp_packet *mess, unsigned char *end,
int opt, int len, unsigned int val);

-------------------------------
Sorry for the wrapping, but you get the idea (would have attached patch,
but the box is remote...).

Jeb
-- 
Jeb Campbell
jebc at c4solutions.net



More information about the Dnsmasq-discuss mailing list