Skip to content

Commit

Permalink
smux: drop findVar element from trap object struct
Browse files Browse the repository at this point in the history
This element was not unused.
  • Loading branch information
vincentbernat committed Jun 25, 2012
1 parent 4b89e45 commit b8cf46b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
4 changes: 2 additions & 2 deletions bgpd/bgp_snmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,8 @@ bgp4PathAttrTable (struct variable *v, oid name[], size_t *length,
/* BGP Traps. */
struct trap_object bgpTrapList[] =
{
{bgpPeerTable, 3, {3, 1, BGPPEERLASTERROR}},
{bgpPeerTable, 3, {3, 1, BGPPEERSTATE}}
{3, {3, 1, BGPPEERLASTERROR}},
{3, {3, 1, BGPPEERSTATE}}
};

void
Expand Down
3 changes: 1 addition & 2 deletions lib/smux.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@

struct trap_object
{
FindVarMethod *findVar;
int namelen;
int namelen; /* Negative if the object is not indexed */
oid name[MAX_OID_LEN];
};

Expand Down
32 changes: 16 additions & 16 deletions ospfd/ospf_snmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2568,35 +2568,35 @@ ospfAreaAggregateEntry (struct variable *v, oid *name, size_t *length,

struct trap_object ospfNbrTrapList[] =
{
{ospfGeneralGroup, -2, {1, OSPFROUTERID}},
{ospfNbrEntry, 3, {10, 1, OSPFNBRIPADDR}},
{ospfNbrEntry, 3, {10, 1, OSPFNBRRTRID}},
{ospfNbrEntry, 3, {10, 1, OSPFNBRSTATE}}
{-2, {1, OSPFROUTERID}},
{3, {10, 1, OSPFNBRIPADDR}},
{3, {10, 1, OSPFNBRRTRID}},
{3, {10, 1, OSPFNBRSTATE}}
};


struct trap_object ospfVirtNbrTrapList[] =
{
{ospfGeneralGroup, -2, {1, 1}},
{ospfVirtNbrEntry, 3, {11, 1, OSPFVIRTNBRAREA}},
{ospfVirtNbrEntry, 3, {11, 1, OSPFVIRTNBRRTRID}},
{ospfVirtNbrEntry, 3, {11, 1, OSPFVIRTNBRSTATE}}
{-2, {1, 1}},
{3, {11, 1, OSPFVIRTNBRAREA}},
{3, {11, 1, OSPFVIRTNBRRTRID}},
{3, {11, 1, OSPFVIRTNBRSTATE}}
};

struct trap_object ospfIfTrapList[] =
{
{ospfGeneralGroup, -2, {1, OSPFROUTERID}},
{ospfIfEntry, 3, {7, 1, OSPFIFIPADDRESS}},
{ospfIfEntry, 3, {7, 1, OSPFADDRESSLESSIF}},
{ospfIfEntry, 3, {7, 1, OSPFIFSTATE}}
{-2, {1, OSPFROUTERID}},
{3, {7, 1, OSPFIFIPADDRESS}},
{3, {7, 1, OSPFADDRESSLESSIF}},
{3, {7, 1, OSPFIFSTATE}}
};

struct trap_object ospfVirtIfTrapList[] =
{
{ospfGeneralGroup, -2, {1, OSPFROUTERID}},
{ospfVirtIfEntry, 3, {9, 1, OSPFVIRTIFAREAID}},
{ospfVirtIfEntry, 3, {9, 1, OSPFVIRTIFNEIGHBOR}},
{ospfVirtIfEntry, 3, {9, 1, OSPFVIRTIFSTATE}}
{-2, {1, OSPFROUTERID}},
{3, {9, 1, OSPFVIRTIFAREAID}},
{3, {9, 1, OSPFVIRTIFNEIGHBOR}},
{3, {9, 1, OSPFVIRTIFSTATE}}
};

void
Expand Down

0 comments on commit b8cf46b

Please sign in to comment.