]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: improve logging of invalid BGP Notifications
authorLeonid Rosenboim <lrosenbo@wrs.com>
Fri, 7 Dec 2012 21:31:07 +0000 (21:31 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 15 Jan 2013 16:22:01 +0000 (17:22 +0100)
commit1e0ce7caa622f07c20bb74414a4a5b4cbd732c75
tree35a221f0912891b2b04f9337288fbfd479761169
parenta689e6a9f470d2a72493b907c94ef23516bbbda6
bgpd: improve logging of invalid BGP Notifications

Invalid BGP Notification messages should be logged locally, cf.
RFC4271, Sect. 6.4, p 34,
  NOTIFICATION Message Error Handling

Current notification for invalid Notification code:

  2012/10/10 02:17:54 BGP: message index 10 not found in bgp_notify_msg (max is 8)
  2012/10/10 02:17:54 BGP: 192.168.1.1 received NOTIFICATION 10/0 ((no item found)) 0 bytes

the logging should be a bit more clear. The above logging really doesn't
explain much and looks more like a programming error.

[rewrote most of it to get in something I can call a shape -David]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_debug.c
lib/log.h