From: Roy Marples Date: Wed, 6 Feb 2019 19:36:36 +0000 (+0000) Subject: ARP: make the announce address a constant X-Git-Tag: v7.1.1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51fdf35f9ecf49c2228f03b36e1134aedc206189;p=thirdparty%2Fdhcpcd.git ARP: make the announce address a constant --- diff --git a/src/arp.c b/src/arp.c index e9f71e37..4e1e114a 100644 --- a/src/arp.c +++ b/src/arp.c @@ -400,7 +400,7 @@ arp_announce(struct arp_state *astate) } void -arp_announceaddr(struct dhcpcd_ctx *ctx, struct in_addr *ia) +arp_announceaddr(struct dhcpcd_ctx *ctx, const struct in_addr *ia) { struct interface *ifp; struct ipv4_addr *iaf; @@ -424,7 +424,7 @@ arp_announceaddr(struct dhcpcd_ctx *ctx, struct in_addr *ia) } void -arp_ifannounceaddr(struct interface *ifp, struct in_addr *ia) +arp_ifannounceaddr(struct interface *ifp, const struct in_addr *ia) { struct arp_state *astate; diff --git a/src/arp.h b/src/arp.h index 4b29937a..d5e8c468 100644 --- a/src/arp.h +++ b/src/arp.h @@ -95,8 +95,8 @@ void arp_report_conflicted(const struct arp_state *, const struct arp_msg *); struct arp_state *arp_new(struct interface *, const struct in_addr *); struct arp_state *arp_find(struct interface *, const struct in_addr *); void arp_announce(struct arp_state *); -void arp_announceaddr(struct dhcpcd_ctx *, struct in_addr *); -void arp_ifannounceaddr(struct interface *, struct in_addr *); +void arp_announceaddr(struct dhcpcd_ctx *, const struct in_addr *); +void arp_ifannounceaddr(struct interface *, const struct in_addr *); void arp_cancel(struct arp_state *); void arp_free(struct arp_state *); void arp_free_but(struct arp_state *);