diff options
author | Tom Gundersen <teg@jklm.no> | 2015-10-19 15:04:22 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-10-22 17:19:54 +0200 |
commit | f46fc04fac78e7067bb8b65109eed8d245dff0c3 (patch) | |
tree | cd02727b872b0e79646608a4f36f963ba24d4615 | |
parent | f6e0ce66604a0b6cbd4319e10e63addd8a990722 (diff) |
sd-ndisc: drop sd_ndisc_prefix_match()
This is no longer used.
-rw-r--r-- | src/libsystemd-network/sd-ndisc.c | 7 | ||||
-rw-r--r-- | src/systemd/sd-ndisc.h | 5 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/libsystemd-network/sd-ndisc.c b/src/libsystemd-network/sd-ndisc.c index 282dcbcc90..2df952e04c 100644 --- a/src/libsystemd-network/sd-ndisc.c +++ b/src/libsystemd-network/sd-ndisc.c @@ -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; diff --git a/src/systemd/sd-ndisc.h b/src/systemd/sd-ndisc.h index 963e161e6a..85152b32a6 100644 --- a/src/systemd/sd-ndisc.h +++ b/src/systemd/sd-ndisc.h @@ -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); |