diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-03-03 17:50:22 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-03-03 17:50:22 -0300 |
| commit | adbdf4653f3a408900c6be58fbdf497c0439a84e (patch) | |
| tree | aa8c7de884c844ff0f8ed5fe002c4ce0bd67f096 /ldpd/init.c | |
| parent | 05aac414e69068748a8e6d6f7e3b0bdb74677039 (diff) | |
ldpd: kill send_notification_nbr()
Be more clever and trigger the PDU SENT event inside send_notification()
when tcp->nbr is set. This way we can eliminate send_notification_nbr()
and always use send_notification() instead.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/init.c')
| -rw-r--r-- | ldpd/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldpd/init.c b/ldpd/init.c index ed6b53c02d..030bff2f51 100644 --- a/ldpd/init.c +++ b/ldpd/init.c @@ -118,7 +118,7 @@ recv_init(struct nbr *nbr, char *buf, uint16_t len) return (-1); default: if (!(ntohs(tlv.type) & UNKNOWN_FLAG)) - send_notification_nbr(nbr, S_UNKNOWN_TLV, + send_notification(nbr->tcp, S_UNKNOWN_TLV, msg.id, msg.type); /* ignore unknown tlv */ break; |
