summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2017-08-22 15:01:20 +0200
committerGitHub <noreply@github.com>2017-08-22 15:01:20 +0200
commit3f543889568e7f267f6f6d1e919eeb31a21ee97f (patch)
tree6f330f0e8034c81ccd0777d232c34262df8b715a /ospfd
parentMerge pull request #1012 from donaldsharp/eigrp_send_version (diff)
parentlib: optimize IPV4_ADDR_[SAME|COPY]() (diff)
downloadfrr-3f543889568e7f267f6f6d1e919eeb31a21ee97f.tar.xz
frr-3f543889568e7f267f6f6d1e919eeb31a21ee97f.zip
Merge pull request #939 from jbonor/optimization
Optimization
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index ac2406ec2..36f9a6757 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -3938,7 +3938,7 @@ void ospf_ls_upd_send(struct ospf_neighbor *nbr, struct list *update, int flag)
if (flag == OSPF_SEND_PACKET_INDIRECT)
zlog_warn(
"* LS-Update is directly sent on NBMA network.");
- if (IPV4_ADDR_SAME(&oi->address->u.prefix4, &p.prefix.s_addr))
+ if (IPV4_ADDR_SAME(&oi->address->u.prefix4, &p.prefix))
zlog_warn("* LS-Update is sent to myself.");
}