diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2016-06-13 20:13:35 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2016-06-13 20:13:35 +0000 |
commit | 8d8633aa6bc2053bcbddc0c70783680c73cad8b3 (patch) | |
tree | 881d93cc34fd38c451b88d8795b5e34af1ffbd64 /usr.sbin/ldpd/packet.c | |
parent | b64da01b5833a72b1ad0e3af2d67f1cdde142378 (diff) |
Rework the handling of Hello packets.
With the introduction of IPv6 support by RFC 7552, the handling of Hello
packets in ldpd became something incredibly complex. Neighbors can change
from single-stack LDP to dual-stack and vice-versa. They can change
their transport preference, their transport addresses (IPv4 and IPv6)
and even start or stop sending the Dual-Stack TLV. We also have to take
care to reject things like multiple adjacencies advertising different
transport-addresses for the same neighbor. ldpd was failing for some of
the cases mentioned above, this patch fixes these issues and attempts
to make the code easier to read.
Diffstat (limited to 'usr.sbin/ldpd/packet.c')
-rw-r--r-- | usr.sbin/ldpd/packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/packet.c b/usr.sbin/ldpd/packet.c index e71c161094e..f8a7f45549b 100644 --- a/usr.sbin/ldpd/packet.c +++ b/usr.sbin/ldpd/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.61 2016/06/09 17:57:55 renato Exp $ */ +/* $OpenBSD: packet.c,v 1.62 2016/06/13 20:13:34 renato Exp $ */ /* * Copyright (c) 2013, 2016 Renato Westphal <renato@openbsd.org> @@ -624,7 +624,7 @@ session_shutdown(struct nbr *nbr, uint32_t status, uint32_t msgid, case NBR_STA_INITIAL: case NBR_STA_OPENREC: case NBR_STA_OPENSENT: - case NBR_STA_OPER: + case NBR_STA_OPER: log_debug("%s: lsr-id %s", __func__, inet_ntoa(nbr->id)); send_notification_nbr(nbr, status, msgid, type); |