]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
SNMP: Minor changes
authorVojtech Vilimek <vojtech.vilimek@nic.cz>
Wed, 14 Aug 2024 15:34:12 +0000 (17:34 +0200)
committerVojtech Vilimek <vojtech.vilimek@nic.cz>
Wed, 14 Aug 2024 15:34:12 +0000 (17:34 +0200)
proto/snmp/snmp_utils.c
proto/snmp/subagent.c

index 9540517e133f3cb9c613bce8fc230b771ceb2267..10febdd696cf211ebb33825514ba5e09aff9c1f6 100644 (file)
@@ -1000,7 +1000,6 @@ snmp_walk_init(struct mib_tree *tree, struct mib_walk_state *walk, struct snmp_p
   return (!node || !mib_node_is_leaf(node)) ? NULL : &node->leaf;
 }
 
-// TODO alter the varbind
 struct mib_leaf *
 snmp_walk_next(struct mib_tree *tree, struct mib_walk_state *walk, struct snmp_pdu *c)
 {
index d86917c8298b0112c0a4bc13f35559482b6836a9..414e04ff7152544f7599608df72456a3337181d5 100644 (file)
@@ -77,7 +77,6 @@ snmp_blank_header(struct agentx_header *h, enum agentx_pdu_types type)
  * snmp_register_ack - handle registration response
  * @p: SNMP protocol instance
  * @res: header of agentx-Response-PDU
- * @oid: MIB subtree Object Identifier in cpu native byte order
  */
 void
 snmp_register_ack(struct snmp_proto *p, struct agentx_response *res)
@@ -781,7 +780,6 @@ parse_response(struct snmp_proto *p, byte *res)
     case AGENTX_RES_DUPLICATE_REGISTER:
     case AGENTX_RES_REQUEST_DENIED:
     case AGENTX_RES_UNKNOWN_REGISTER:
-      // TODO more direct path to mib-specific code
       TRACE(D_PACKETS, "SNMP received agentx-Response-PDU with error %u", r->error);
       snmp_register_ack(p, r);
       break;
@@ -974,7 +972,6 @@ static inline void
 response_err_ind(struct agentx_response *res, enum agentx_response_errs err, u16 ind)
 {
   STORE_U16(res->error, (u16) err);
-  // TODO deal with auto-incrementing of snmp_pdu context c.ind
   if (err != AGENTX_RES_NO_ERROR && err != AGENTX_RES_GEN_ERROR)
   {
     //TRACE(D_PACKETS, "Last PDU resulted in error %u", err);