summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_hello.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: rename zlog_fer -> flog_errQuentin Young2018-08-141-1/+1
| | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* eigrpd: Add EIGRP_ERR_XXX for zlog_err to zlog_ferrDonald Sharp2018-08-141-2/+4
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* eigrpd nhrpd ospfd pimd: fomat fixes (PVS-Studio)F. Aragon2018-07-021-1/+2
| | | | Signed-off-by: F. Aragon <paco@voltanet.io>
* eigrpd: Use EIGRP_PACKET_MTU(mtu) macroPiotr Jurkiewicz2018-05-041-1/+1
| | | | Signed-off-by: Piotr Jurkiewicz <piotr.jerzy.jurkiewicz@gmail.com>
* eigrpd: Correctly calculate EIGRP packet MTUPiotr Jurkiewicz2018-05-041-1/+1
| | | | | | Someone forgot that EIGRP packets are encapsulated in IP. Signed-off-by: Piotr Jurkiewicz <piotr.jerzy.jurkiewicz@gmail.com>
* *: use C99 standard fixed-width integer typesQuentin Young2018-03-271-28/+28
| | | | | | | | | | | | | | | | | | | | | | The following types are nonstandard: - u_char - u_short - u_int - u_long - u_int8_t - u_int16_t - u_int32_t Replace them with the C99 standard types: - uint8_t - unsigned short - unsigned int - unsigned long - uint8_t - uint16_t - uint32_t Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* *: conform with COMMUNITY.md formatting rules, via 'make indent'Lou Berger2018-03-061-8/+7
| | | | Signed-off-by: Lou Berger <lberger@labn.net>
* eigrpd: Remove ei mapping to connected routesDonald Sharp2017-10-031-11/+11
| | | | | | | | | | We need one struct eigrp_interface per ifp structure not a ifp->info structure with a ei per connected. Some minor code cleanup as well with macros and their weird usage. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* eigrpd: Cleanup various SA IssuesDonald Sharp2017-08-251-1/+5
| | | | | | | | | | 1) Handle key value not found on interface 2) Handle various NULL pointer possibilities 3) Fix possible integer overflow 4) Fix memory leak 5) Check return codes on sscanf Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* eigrpd: Fix code commentsDonald Sharp2017-08-201-2/+0
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* eigrpd: Setup eigrp to send FRR versionDonald Sharp2017-08-201-2/+16
| | | | | | | | | Send to our peer the major/minor version of FRR that we are working with. I decided to use FRR instead of the os major/minor because the os itself doesn't tell you what version of EIGRP you are actually using. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* eigrpd: Pass in actual used parameter to header creationDonald Sharp2017-08-191-1/+1
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* eigrpd: Cleanup FIFODonald Sharp2017-08-181-2/+2
| | | | | | | | | | | | The FIFO really was a LIFO for some reason. Push new packets onto the top, always pull from the bottom. This allows eigrp neighbors to come up. Topotests eigrp-topo1( in a topotest PR ) now form neighbors with itself. With this commit. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* eigrpd: Store nbr in packet dataDonald Sharp2017-08-171-1/+1
| | | | | | | | Store the neighbor information( if available ) in the packet data that we are sending. This will allow in a future commit the ability to fixup the outgoing ack we are sending. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: reindentreindent-master-afterwhitespace / reindent2017-07-171-475/+469
| | | | | | indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: simplify log message lookupQuentin Young2017-06-211-4/+2
| | | | | | | | | | | | | | | | log.c provides functionality for associating a constant (typically a protocol constant) with a string and finding the string given the constant. However this is highly delicate code that is extremely prone to stack overflows and off-by-one's due to requiring the developer to always remember to update the array size constant and to do so correctly which, as shown by example, is never a good idea.b The original goal of this code was to try to implement lookups in O(1) time without a linear search through the message array. Since this code is used 99% of the time for debugs, it's worth the 5-6 additional cmp's worst case if it means we avoid explitable bugs due to oversights... Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* eigrpd: Fix use after freeDonald Sharp2017-06-101-2/+7
| | | | Signed-off-by: Donald Sharp <sharpd@Cumulusnetworks.com>
* Merge pull request #537 from donaldsharp/vrf_stuffDavid Lamparter2017-05-171-6/+9
|\ | | | | Vrf stuff
| * eigrpd: Cleanup a bunch SA warnings.Donald Sharp2017-05-161-6/+9
| | | | | | | | | | | | | | 1) Cleanup SA warnings, more to come 2) Cleanup some non debug guarded zlog_info code Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | *: make consistent & update GPLv2 file headersDavid Lamparter2017-05-151-4/+3
|/ | | | | | | | | | | 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>
* eigrpd: spatch thread_add* calls and macrosQuentin Young2017-05-091-9/+8
| | | | | | As described in previous commits Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* eigrpd: Cleanup tab/spacing of the *.c filesDonald Sharp2017-04-081-124/+129
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* eigrpd: Cleanup the mergeDonald Sharp2017-04-061-5/+5
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* eigrp: Fix Compile issuesDonald Sharp2017-03-111-2/+2
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* eigrp: Initial CommitDonald Sharp2017-03-091-0/+774
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>