]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
ipv6nd_freedrop is no longer public.
authorRoy Marples <roy@marples.name>
Tue, 3 Oct 2017 10:17:21 +0000 (11:17 +0100)
committerRoy Marples <roy@marples.name>
Tue, 3 Oct 2017 10:17:21 +0000 (11:17 +0100)
src/ipv6nd.c
src/ipv6nd.h

index 24b1cf55fc9a769de320382108b66b6b697cea63..b9847865fcca7d295b26ae6ee9c2b7f3df5ba9bb 100644 (file)
@@ -158,6 +158,10 @@ static void ipv6nd_handledata(void *);
 #define IPV6_RECVPKTINFO IPV6_PKTINFO
 #endif
 
+/* Handy defines */
+#define ipv6nd_free_ra(ra) ipv6nd_freedrop_ra((ra),  0)
+#define ipv6nd_drop_ra(ra) ipv6nd_freedrop_ra((ra),  1)
+
 void
 ipv6nd_printoptions(const struct dhcpcd_ctx *ctx,
     const struct dhcp_opt *opts, size_t opts_len)
@@ -455,7 +459,7 @@ ipv6nd_removefreedrop_ra(struct ra *rap, int remove_ra, int drop_ra)
        free(rap);
 }
 
-void
+static void
 ipv6nd_freedrop_ra(struct ra *rap, int drop)
 {
 
index 6254760b82554ed4d0de4693783db75b89b5b97a..d49fd34c33e8e93f0fd9d1dd838fed22537cc6ee 100644 (file)
@@ -93,9 +93,6 @@ const struct ipv6_addr *ipv6nd_iffindaddr(const struct interface *ifp,
     const struct in6_addr *addr, unsigned int flags);
 struct ipv6_addr *ipv6nd_findaddr(struct dhcpcd_ctx *,
     const struct in6_addr *, unsigned int);
-void ipv6nd_freedrop_ra(struct ra *, int);
-#define ipv6nd_free_ra(ra) ipv6nd_freedrop_ra((ra),  0)
-#define ipv6nd_drop_ra(ra) ipv6nd_freedrop_ra((ra),  1)
 ssize_t ipv6nd_free(struct interface *);
 void ipv6nd_expirera(void *arg);
 int ipv6nd_hasra(const struct interface *);