diff options
author | David Lamparter <equinox@diac24.net> | 2017-05-17 22:06:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 22:06:39 +0200 |
commit | bac7b7b935162915bbefb7d01ce55eb364635c0b (patch) | |
tree | b2ce709376fa69429fa336f8239f25b0a89e7b14 /eigrpd/eigrp_query.c | |
parent | Merge pull request #561 from donaldsharp/static_config2 (diff) | |
parent | Merge branch 'master' into vrf_stuff (diff) | |
download | frr-bac7b7b935162915bbefb7d01ce55eb364635c0b.tar.xz frr-bac7b7b935162915bbefb7d01ce55eb364635c0b.zip |
Merge pull request #537 from donaldsharp/vrf_stuff
Vrf stuff
Diffstat (limited to 'eigrpd/eigrp_query.c')
-rw-r--r-- | eigrpd/eigrp_query.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/eigrpd/eigrp_query.c b/eigrpd/eigrp_query.c index b5f4cab84..774461a09 100644 --- a/eigrpd/eigrp_query.c +++ b/eigrpd/eigrp_query.c @@ -113,16 +113,17 @@ eigrp_query_receive (struct eigrp *eigrp, struct ip *iph, struct eigrp_header *e type = stream_getw(s); if (type == EIGRP_TLV_IPv4_INT) { + struct prefix_ipv4 dest_addr; + stream_set_getp(s, s->getp - sizeof(u_int16_t)); tlv = eigrp_read_ipv4_tlv(s); - struct prefix_ipv4 *dest_addr; - dest_addr = prefix_ipv4_new(); - dest_addr->prefix = tlv->destination; - dest_addr->prefixlen = tlv->prefix_length; + dest_addr.family = AFI_IP; + dest_addr.prefix = tlv->destination; + dest_addr.prefixlen = tlv->prefix_length; struct eigrp_prefix_entry *dest = - eigrp_topology_table_lookup_ipv4(eigrp->topology_table, dest_addr); + eigrp_topology_table_lookup_ipv4(eigrp->topology_table, &dest_addr); /* If the destination exists (it should, but one never know)*/ if (dest != NULL) |