projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
IPv6: fix device_prefix vlist_key to not include prefix class
[project/netifd.git]
/
interface-ip.c
diff --git
a/interface-ip.c
b/interface-ip.c
index
15a91af
..
165d4a8
100644
(file)
--- 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));
}