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

Simon Kelley simon at thekelleys.org.uk
Wed Feb 7 17:07:13 GMT 2007


Jeb Campbell wrote:
> 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


Thanks Jeb,

A roughly equivalent patch is at

http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.37.bsd.patch

and apologies for forgetting to do the usual *BSD compile-test before
release......


Cheers,

Simon.





More information about the Dnsmasq-discuss mailing list