OpenBSD CVS

CVS log for src/usr.sbin/eigrpd/neighbor.c


[BACK] Up to [local] / src / usr.sbin / eigrpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:13 2023 UTC (15 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.10: +1 -2 lines
Diff to previous 1.10 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 2 16:44:33 2016 UTC (7 years, 9 months ago) by renato
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.9: +11 -12 lines
Diff to previous 1.9 (colored)

Make functions and variables static whenever possible.

style(9) says:
"Function prototypes for private functions (i.e., functions not used
elsewhere) go at the top of the first source module. In userland,
functions local to one source module should be declared 'static'".

The benefits of doing so include:
* clean up of the eigrpd global namespace;
* improved readability;
* more hints to the compiler/linker to generate more efficient code.

Additional changes:
* Declare all extern variables in header files;
* Clean up the indentation of all function prototypes and global
  variables.

ok claudio@ benno@

Revision 1.9 / (download) - annotate - [select for diffs], Fri Sep 2 16:39:44 2016 UTC (7 years, 9 months ago) by renato
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Use static local variables instead of global variables whenever possible.

Also, there's no need to zero initialize global and static variables,
that's done automatically by the compiler.

ok claudio@ benno@

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 2 16:29:55 2016 UTC (7 years, 9 months ago) by renato
Branch: MAIN
Changes since 1.7: +4 -5 lines
Diff to previous 1.7 (colored)

Remove superfluous includes and follow style(9).

ok claudio@ benno@

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 21 18:56:49 2016 UTC (8 years, 3 months ago) by renato
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)

Copy structs by assignment instead of memcpy.

Copying by straight assignment is shorter, easier to read and has a
higher level of abstraction. We'll only avoid it when copying from an
unaligned source (e.g., network buffers).

Revision 1.6 / (download) - annotate - [select for diffs], Sun Feb 21 18:52:00 2016 UTC (8 years, 3 months ago) by renato
Branch: MAIN
Changes since 1.5: +2 -22 lines
Diff to previous 1.5 (colored)

Extend eigrp_addrcmp() and use it in more places.

The idea is to remove unnecessary code duplication throughout the code.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jan 15 12:36:41 2016 UTC (8 years, 4 months ago) by renato
Branch: MAIN
Changes since 1.4: +28 -1 lines
Diff to previous 1.4 (colored)

Add support for manually clearing neighbors.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jan 15 12:23:45 2016 UTC (8 years, 4 months ago) by renato
Branch: MAIN
Changes since 1.3: +1 -9 lines
Diff to previous 1.3 (colored)

Order the routing instances by AF and then by AS.

This commit only improves the readability of the 'eigrpctl' show commands.

Additionaly, we can simplify the nbr_compare() and rt_compare() functions
because we know that under no circumstances nbrs or routes from different
AFs or ASes will be in the same tree. Each instance has its own trees of
neighbors and routes.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 27 03:25:55 2015 UTC (8 years, 7 months ago) by renato
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Introduce a new flag to identify "self" neighbors attached to local interfaces.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Oct 4 23:00:10 2015 UTC (8 years, 8 months ago) by renato
Branch: MAIN
Changes since 1.1: +2 -3 lines
Diff to previous 1.1 (colored)

Fix warnings and add safeguards to protect against corrupted data.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 2 04:26:47 2015 UTC (8 years, 8 months ago) by renato
Branch: MAIN

Welcome eigrpd

The eigrpd daemon will support the Enhanced Interior Gateway Routing Protocol.

Built using the imsg/three process framework and heavily based on ospfd(8), ospf6d(8) and ldpd(8).

The current status of eigrpd(8) is as follows:
* Almost full compliance with the specification: DUAL FSM, RTP, CR mode, SIA, etc
* Support for both IPv4 and IPv6
* Support for multiple instances (different ASes/AFs) within the same process
* Support for rdomains (one process per rdomain)
* RIB/FIB synchronization
* Basic redistribution support

Not implemented features (yet):
* Configuration reload support (partially implemented)
* Route summarization
* Advanced route redistribution/filtering
* Carp integration
* Authentication (draft is missing information)
* Stub (not released by Cisco)

Not yet connected to the builds.

ok deraadt@ claudio@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.