diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-24 07:17:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-24 07:17:06 -0400 |
| commit | 7bd48975b90419b65326c5663e46bb88c276878f (patch) | |
| tree | e874b496b507e9fd7f5fa74b0955c5a2cca98889 /ldpd/packet.c | |
| parent | 7a6327c003a57b8c9c98dea84f48d4f9b2eb0763 (diff) | |
| parent | 0f7b5df9259347bfc425c73fe7cf1ffc89cf2269 (diff) | |
Merge pull request #286 from opensourcerouting/ldpd-tshoot
Ldpd tshoot
Diffstat (limited to 'ldpd/packet.c')
| -rw-r--r-- | ldpd/packet.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ldpd/packet.c b/ldpd/packet.c index a7be0f6b42..46893b992b 100644 --- a/ldpd/packet.c +++ b/ldpd/packet.c @@ -572,6 +572,42 @@ session_read(struct thread *thread) return (0); } + /* no errors - update per neighbor message counters */ + switch (type) { + case MSG_TYPE_NOTIFICATION: + nbr->stats.notif_rcvd++; + break; + case MSG_TYPE_KEEPALIVE: + nbr->stats.kalive_rcvd++; + break; + case MSG_TYPE_CAPABILITY: + nbr->stats.capability_rcvd++; + break; + case MSG_TYPE_ADDR: + nbr->stats.addr_rcvd++; + break; + case MSG_TYPE_ADDRWITHDRAW: + nbr->stats.addrwdraw_rcvd++; + break; + case MSG_TYPE_LABELMAPPING: + nbr->stats.labelmap_rcvd++; + break; + case MSG_TYPE_LABELREQUEST: + nbr->stats.labelreq_rcvd++; + break; + case MSG_TYPE_LABELWITHDRAW: + nbr->stats.labelwdraw_rcvd++; + break; + case MSG_TYPE_LABELRELEASE: + nbr->stats.labelrel_rcvd++; + break; + case MSG_TYPE_LABELABORTREQ: + nbr->stats.labelabreq_rcvd++; + break; + default: + break; + } + /* Analyse the next message */ pdu += msg_size; len -= msg_size; |
