]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on Linux
authorRoy Marples <roy@marples.name>
Thu, 3 Sep 2015 14:42:16 +0000 (14:42 +0000)
committerRoy Marples <roy@marples.name>
Thu, 3 Sep 2015 14:42:16 +0000 (14:42 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 5b06502290c07846365c650cd737759f6a8b6072..69a7ec96cb265cc217fafb30f8f500a13fab6a7a 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2221,7 +2221,7 @@ dhcp_arp_bind(struct interface *ifp)
                return;
        }
 #else
-       if (ifo->options & DHCPCD_ARP) {
+       if (ifp->options->options & DHCPCD_ARP) {
                if (ia == NULL) {
                        if ((astate = arp_new(ifp, &addr)) != NULL) {
                                astate->probed_cb = dhcp_arp_probed;
@@ -2554,7 +2554,9 @@ dhcp_handledhcp(struct interface *ifp, struct dhcp_message **dhcpp,
        unsigned int i;
        size_t auth_len;
        char *msg;
+#ifdef IN_IFF_DUPLICATED
        struct ipv4_addr *ia;
+#endif
 
        /* We may have found a BOOTP server */
        if (get_option_uint8(ifp->ctx, &type, dhcp, DHO_MESSAGETYPE) == -1)