summaryrefslogtreecommitdiff
path: root/interface-ip.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-05-31 17:05:58 +0200
committerSteven Barth <steven@midlink.org>2013-05-31 17:05:58 +0200
commit2bc475db30ab2716e1dd430f8eb982ba6e886b74 (patch)
tree02feed2303f69dd1d4eb9a912b16cf08aed169db /interface-ip.c
parent39efab1db589c30317de9ed2c6dc700bb1252e13 (diff)
downloadnetifd-2bc475db30ab2716e1dd430f8eb982ba6e886b74.tar.gz
IPv6: fix device_prefix vlist_key to not include prefix class
Diffstat (limited to 'interface-ip.c')
-rw-r--r--interface-ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-ip.c b/interface-ip.c
index 15a91af..165d4a8 100644
--- a/interface-ip.c
+++ b/interface-ip.c
@@ -370,7 +370,7 @@ route_cmp(const void *k1, const void *k2, void *ptr)
static int
prefix_cmp(const void *k1, const void *k2, void *ptr)
{
- return memcmp(k1, k2, sizeof(struct device_prefix) -
+ return memcmp(k1, k2, offsetof(struct device_prefix, pclass) -
offsetof(struct device_prefix, addr));
}