Mercurial > hg > dhcpcd
changeset 4140:57e2a4bfb9b7 draft
ipv6nd_freedrop is no longer public.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Tue, 03 Oct 2017 11:17:21 +0100 |
| parents | 1da2c41b761a |
| children | 45e849031aec |
| files | src/ipv6nd.c src/ipv6nd.h |
| diffstat | 2 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ipv6nd.c Tue Sep 19 19:57:15 2017 +0100 +++ b/src/ipv6nd.c Tue Oct 03 11:17:21 2017 +0100 @@ -158,6 +158,10 @@ #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 @@ free(rap); } -void +static void ipv6nd_freedrop_ra(struct ra *rap, int drop) {
--- a/src/ipv6nd.h Tue Sep 19 19:57:15 2017 +0100 +++ b/src/ipv6nd.h Tue Oct 03 11:17:21 2017 +0100 @@ -93,9 +93,6 @@ 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 *);
