mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 20:18:56 +00:00
[ospfd] Improve two info log messages in ospf_snmp.c
2006-06-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu> * ospf_snmp.c: (ospfTrapNbrStateChange, ospfTrapIfStateChange) Improve info log message to indicate why the trap is being sent.
This commit is contained in:
parent
0ffb7094d3
commit
9aecfae2ec
@ -1,3 +1,8 @@
|
|||||||
|
2006-06-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
|
* ospf_snmp.c: (ospfTrapNbrStateChange, ospfTrapIfStateChange) Improve
|
||||||
|
info log message to indicate why the trap is being sent.
|
||||||
|
|
||||||
2006-06-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
2006-06-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
* ospf_dump.c: (config_write_debug) Fix typo to show debug ospf nsm
|
* ospf_dump.c: (config_write_debug) Fix typo to show debug ospf nsm
|
||||||
|
@ -50,6 +50,7 @@
|
|||||||
#include "ospfd/ospf_nsm.h"
|
#include "ospfd/ospf_nsm.h"
|
||||||
#include "ospfd/ospf_flood.h"
|
#include "ospfd/ospf_flood.h"
|
||||||
#include "ospfd/ospf_ism.h"
|
#include "ospfd/ospf_ism.h"
|
||||||
|
#include "ospfd/ospf_dump.h"
|
||||||
|
|
||||||
/* OSPF2-MIB. */
|
/* OSPF2-MIB. */
|
||||||
#define OSPF2MIB 1,3,6,1,2,1,14
|
#define OSPF2MIB 1,3,6,1,2,1,14
|
||||||
@ -2565,8 +2566,11 @@ void
|
|||||||
ospfTrapNbrStateChange (struct ospf_neighbor *on)
|
ospfTrapNbrStateChange (struct ospf_neighbor *on)
|
||||||
{
|
{
|
||||||
oid index[sizeof (oid) * (IN_ADDR_SIZE + 1)];
|
oid index[sizeof (oid) * (IN_ADDR_SIZE + 1)];
|
||||||
|
char msgbuf[16];
|
||||||
|
|
||||||
zlog (NULL, LOG_INFO, "ospfTrapNbrStateChange trap sent");
|
ospf_nbr_state_message(on, msgbuf, sizeof(msgbuf));
|
||||||
|
zlog (NULL, LOG_INFO, "ospfTrapNbrStateChange trap sent: %s now %s",
|
||||||
|
inet_ntoa(on->address.u.prefix4), msgbuf);
|
||||||
|
|
||||||
oid_copy_addr (index, &(on->address.u.prefix4), IN_ADDR_SIZE);
|
oid_copy_addr (index, &(on->address.u.prefix4), IN_ADDR_SIZE);
|
||||||
index[IN_ADDR_SIZE] = 0;
|
index[IN_ADDR_SIZE] = 0;
|
||||||
@ -2600,7 +2604,9 @@ ospfTrapIfStateChange (struct ospf_interface *oi)
|
|||||||
{
|
{
|
||||||
oid index[sizeof (oid) * (IN_ADDR_SIZE + 1)];
|
oid index[sizeof (oid) * (IN_ADDR_SIZE + 1)];
|
||||||
|
|
||||||
zlog (NULL, LOG_INFO, "ospfTrapIfStateChange trap sent");
|
zlog (NULL, LOG_INFO, "ospfTrapIfStateChange trap sent: %s now %s",
|
||||||
|
inet_ntoa(oi->address->u.prefix4),
|
||||||
|
LOOKUP(ospf_ism_state_msg, oi->state));
|
||||||
|
|
||||||
oid_copy_addr (index, &(oi->address->u.prefix4), IN_ADDR_SIZE);
|
oid_copy_addr (index, &(oi->address->u.prefix4), IN_ADDR_SIZE);
|
||||||
index[IN_ADDR_SIZE] = 0;
|
index[IN_ADDR_SIZE] = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user