diff options
| author | Lou Berger <lberger@labn.net> | 2017-08-22 09:01:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-22 09:01:20 -0400 |
| commit | 3f543889568e7f267f6f6d1e919eeb31a21ee97f (patch) | |
| tree | 6f330f0e8034c81ccd0777d232c34262df8b715a /lib/prefix.c | |
| parent | 57a553fd9c1eab1adc15ca31af29cbbd67db4dfc (diff) | |
| parent | 19aad877b70501d759b9326e9736aa23ca16d578 (diff) | |
Merge pull request #939 from jbonor/optimization
Optimization
Diffstat (limited to 'lib/prefix.c')
| -rw-r--r-- | lib/prefix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/prefix.c b/lib/prefix.c index de521b2e3e..2f61eb6e8b 100644 --- a/lib/prefix.c +++ b/lib/prefix.c @@ -497,8 +497,7 @@ int prefix_same(const struct prefix *p1, const struct prefix *p2) if (p1->family == p2->family && p1->prefixlen == p2->prefixlen) { if (p1->family == AF_INET) - if (IPV4_ADDR_SAME(&p1->u.prefix4.s_addr, - &p2->u.prefix4.s_addr)) + if (IPV4_ADDR_SAME(&p1->u.prefix4, &p2->u.prefix4)) return 1; if (p1->family == AF_INET6) if (IPV6_ADDR_SAME(&p1->u.prefix6.s6_addr, |
