]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-ndisc: drop sd_ndisc_prefix_match()
authorTom Gundersen <teg@jklm.no>
Mon, 19 Oct 2015 13:04:22 +0000 (15:04 +0200)
committerTom Gundersen <teg@jklm.no>
Thu, 22 Oct 2015 15:19:54 +0000 (17:19 +0200)
This is no longer used.

src/libsystemd-network/sd-ndisc.c
src/systemd/sd-ndisc.h

index 282dcbcc904646621d9832eaf929d5236ca85214..2df952e04c6dd5d2b5cf171bd84711e1a0715578 100644 (file)
@@ -316,13 +316,8 @@ static int ndisc_prefix_match(sd_ndisc *nd, const struct in6_addr *addr,
         return -EADDRNOTAVAIL;
 }
 
-int sd_ndisc_prefix_match(struct in6_addr *prefix, uint8_t prefixlen,
-                          struct in6_addr *addr) {
-        return prefix_match(prefix, prefixlen, addr, sizeof(addr->s6_addr) * 8);
-}
-
 int sd_ndisc_get_prefixlen(sd_ndisc *nd, const struct in6_addr *addr,
-                              uint8_t *prefixlen) {
+                           uint8_t *prefixlen) {
         int r;
         NDiscPrefix *prefix;
 
index 963e161e6a41d50485b7b56afb9db0da091a862c..85152b32a65bb50204accf64a3acd43154798ac0 100644 (file)
@@ -51,12 +51,9 @@ sd_ndisc *sd_ndisc_ref(sd_ndisc *nd);
 sd_ndisc *sd_ndisc_unref(sd_ndisc *nd);
 int sd_ndisc_new(sd_ndisc **ret);
 
-int sd_ndisc_prefix_match(struct in6_addr *prefix, uint8_t prefixlen,
-                        struct in6_addr *addr);
-
 int sd_ndisc_get_mtu(sd_ndisc *nd, uint32_t *mtu);
 int sd_ndisc_get_prefixlen(sd_ndisc *nd, const struct in6_addr *addr,
-                        uint8_t *prefixlen);
+                           uint8_t *prefixlen);
 
 int sd_ndisc_stop(sd_ndisc *nd);
 int sd_ndisc_router_discovery_start(sd_ndisc *nd);