summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_packet.c
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 /eigrpd/eigrp_packet.c
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 'eigrpd/eigrp_packet.c')
-rw-r--r--eigrpd/eigrp_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eigrpd/eigrp_packet.c b/eigrpd/eigrp_packet.c
index 3b4a57ed5..72aaef1b3 100644
--- a/eigrpd/eigrp_packet.c
+++ b/eigrpd/eigrp_packet.c
@@ -527,7 +527,7 @@ int eigrp_read(struct thread *thread)
/* Self-originated packet should be discarded silently. */
if (eigrp_if_lookup_by_local_addr(eigrp, NULL, iph->ip_src)
- || (IPV4_ADDR_SAME(&iph->ip_src.s_addr, &ei->address->u.prefix4))) {
+ || (IPV4_ADDR_SAME(&iph->ip_src, &ei->address->u.prefix4))) {
if (IS_DEBUG_EIGRP_TRANSMIT(0, RECV))
zlog_debug(
"eigrp_read[%s]: Dropping self-originated packet",