History log of /openbsd/usr.sbin/eigrpd/tlv.c (Results 1 – 17 of 17)
Revision Date Author Comments
# 6e5fef78 26-Jun-2023 claudio <claudio@openbsd.org>

Start using the new ibuf API in eigrpd. One ibuf_seek() still left since
the change is not trivial and I don't have a eigrp testbed.
OK tb@


# f8d44979 03-Nov-2021 deraadt <deraadt@openbsd.org>

use some sizeof, rather than INADDRSZ/IN6ADDRSZ; ok claudio


# e7b69599 10-Oct-2016 gsoares <gsoares@openbsd.org>

calls to uname(3) should be checked against non-negative value
upon successful and -1 on failure (as per POSIX). No functional change, just
improves portability.

requested by guenther@
looks correct

calls to uname(3) should be checked against non-negative value
upon successful and -1 on failure (as per POSIX). No functional change, just
improves portability.

requested by guenther@
looks correct to schwarze@
OK renato@

show more ...


# a7928e1e 02-Sep-2016 renato <renato@openbsd.org>

Minor tweaks


# 8072de9b 02-Sep-2016 renato <renato@openbsd.org>

Remove superfluous includes and follow style(9).

ok claudio@ benno@


# 3d8a8be3 18-Jul-2016 benno <benno@openbsd.org>

add format attributes to log functions and fix two errors

ok renato@


# a6ee050e 21-Feb-2016 renato <renato@openbsd.org>

Simplify the handling of the sequence tlv.

The C standard says: "A pointer to a union object, suitably converted,
points to each of its members".

This means that we can use the same code to process

Simplify the handling of the sequence tlv.

The C standard says: "A pointer to a union object, suitably converted,
points to each of its members".

This means that we can use the same code to process both v4 and v6
addresses.

show more ...


# 3eb03b29 21-Feb-2016 renato <renato@openbsd.org>

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 sour

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).

show more ...


# 6c428d2e 21-Feb-2016 renato <renato@openbsd.org>

Introduce the bad_addr() family of functions.

These functions improve code reusability as there's no more need to
check for all possible "bad" addresses in several different places.

Besides that, t

Introduce the bad_addr() family of functions.

These functions improve code reusability as there's no more need to
check for all possible "bad" addresses in several different places.

Besides that, this patch introduce additional checks in the code.

show more ...


# 44faa115 21-Feb-2016 renato <renato@openbsd.org>

Several minor tweaks.


# 9d0ab23e 21-Feb-2016 renato <renato@openbsd.org>

Make eigrpd work against newer IOS routers.

Different versions of IOS can use a different number of bytes to encode
the same IPv6 prefix inside route TLVs. This sucks but we have to deal
with it. I

Make eigrpd work against newer IOS routers.

Different versions of IOS can use a different number of bytes to encode
the same IPv6 prefix inside route TLVs. This sucks but we have to deal
with it. Instead of calculating the number of bytes based on the value
of the prefixlen field, let's get this number by subtracting the size
of all other fields from the total size of the TLV. It works because
all the other fields have a fixed length.

For reference, the EIGRP draft says that length of the prefix field
should be obtained according to this function:

((Bit Count - 1) / 8) + 1

But older IOS versions use this for IPv6 (obtained through reverse
engineering):

((Bit Count == 128) ? 16 : ((Bit Count / 8) + 1))

Now, the new IOS-XR apparently uses the first formula for both IPv4 and
IPv6. With this patch, eigrpd will work against both older and newer
versions of IOS.

show more ...


# 0d45ad68 15-Jan-2016 renato <renato@openbsd.org>

Split TLV constants into subcomponents to simplify the code.


# 0cefb3ad 21-Oct-2015 renato <renato@openbsd.org>

Minor fixes and code cleanup.


# 3af0505b 05-Oct-2015 renato <renato@openbsd.org>

When the SIA state is declared for a given destination, reset the
adjacency with the unresponsive neighbor(s).


# f90d6a5d 04-Oct-2015 renato <renato@openbsd.org>

Ignore IPv4 TLVs in IPv6 instances and vice-versa.


# 3c8071b0 04-Oct-2015 renato <renato@openbsd.org>

Fix warnings and add safeguards to protect against corrupted data.


# 43509a12 02-Oct-2015 renato <renato@openbsd.org>

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

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@

show more ...