Commit graph

22 commits

Author SHA1 Message Date
Donald Sharp 0ffa840756 eigrpd: Remove 'struct prefix_ipv4' from eigrp_interface.c
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-08-24 08:09:04 -04:00
Donald Sharp 476a146963 eigrpd: Refactor eigrp_topoloy_table_lookup_ipv4
Allow eigrp_topology_table_lookup_ipv4 to use
'struct prefix'

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-08-24 08:09:03 -04:00
Donald Sharp 02b4599881 eigrpd: Convert pe->destination_ipv4 to pe->destination
Convert the destination_ipv4 to a struct prefix and just
call it destination.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-08-24 08:04:20 -04:00
Donald Sharp 348addb4e7 eigrpd: Use FSM for interface pe already known.
There exists a case where a switch already has
a eigrp_prefix_entry for a interface that is
coming up.

In this situation, we need to use the FSM
to let the connected route take precedence
instead of blindly just updating the world
about it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-08-24 08:04:20 -04:00
Donald Sharp c1c32a7803 eigrpd: Remove unnecessary check
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-08-24 08:04:20 -04:00
David Lamparter ce19a04aea lib: replace if_add_hook with hook_* logic
This allows modules to register their own additional hooks on interface
creation/deletion.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-08-15 13:25:44 +02:00
Andrew Lunn b1968f83da eigrpd: fix spelling of "bandwidth"
There are a number of spelling errors in eigrp. But this one is
particular annoying because it is a variable name, not in a comment.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
2017-08-10 17:24:24 -05:00
David Lamparter 9d303b37d7 Revert "*: reindent pt. 2"
This reverts commit c14777c6bf.

clang 5 is not widely available enough for people to indent with.  This
is particularly problematic when rebasing/adjusting branches.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-22 14:52:33 +02:00
whitespace / reindent c14777c6bf
*: reindent pt. 2
w/ clang 5

* reflow comments
* struct members go 1 per line
* binpack algo was adjusted
2017-07-17 15:26:02 -04:00
whitespace / reindent d62a17aede *: reindent
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'`

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-17 14:04:07 +02:00
Donald Sharp 60805e322e eigrpd: Cleanup leaked dest_addr
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-06-10 16:09:29 -04:00
David Lamparter 683f0a1b12 Merge pull request #603 from qlyoung/fix-access-packed-member
*: do not take address of packed member
2017-05-30 14:26:03 +02:00
Donald Sharp db215e1f4d eigrpd: Fix network statement
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-05-29 07:08:52 -04:00
Quentin Young c5f119c06d *: do not take address of packed member
May result in alignment errors on certain platforms

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-05-26 15:22:23 +00:00
David Lamparter bac7b7b935 Merge pull request #537 from donaldsharp/vrf_stuff
Vrf stuff
2017-05-17 22:06:39 +02:00
Donald Sharp 057fad8dfb eigrpd: Cleanup a bunch SA warnings.
1) Cleanup SA warnings, more to come
2) Cleanup some non debug guarded zlog_info code

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-05-15 18:48:54 -04:00
David Lamparter 896014f4bc *: make consistent & update GPLv2 file headers
The FSF's address changed, and we had a mixture of comment styles for
the GPL file header.  (The style with * at the beginning won out with
580 to 141 in existing files.)

Note: I've intentionally left intact other "variations" of the copyright
header, e.g. whether it says "Zebra", "Quagga", "FRR", or nothing.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-05-15 16:37:41 +02:00
Quentin Young c94671b82f eigrpd: spatch thread_add* calls and macros
As described in previous commits

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-05-09 21:35:14 +00:00
Donald Sharp 838cf8aba5 eigrpd: Switch u_int64_t -> uint64_t
Apparently u_int64_t is not available (or we don't pull
the right headers in for solaris based systems ).

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-04-26 22:10:33 -04:00
Donald Sharp f9e5c9ca06 eigrpd: Cleanup tab/spacing of the *.c files
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-04-08 14:44:58 -04:00
Donald Sharp 4325044689 eigrpd: When deleting interface remove connected routes from topo table
When we are deleting an interface, remove
the connected routes associated with that interface from
the topo table.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-04-02 19:35:42 -04:00
Donald Sharp 7f57883ee6 eigrp: Initial Commit
Please Note, I will be redoing this commit message with
more information.

Additionally I will rework the lib/* changes into their
own commits.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-03-08 23:07:46 -05:00