title: How can I update my snmp agent's tables upon a GETBULK request?
body: <p>I want to update my subagent's tables upon a GETBULK request without having to update for every internal GETNEXT request. </p>
  
  <p>mib2c generated the following handler for GET requests - how can I set up a handler within the subagent to perform updates upon GETBULKs specifically?</p>
  
  <pre><code>int
  table_handler(netsnmp_mib_handler *handler,
                             netsnmp_handler_registration *reginfo,
                             netsnmp_agent_request_info *reqinfo,
                             netsnmp_request_info *requests)
  {
  
  netsnmp_request_info *request;
  netsnmp_table_request_info *table_info;
  netsnmp_tdata  *table_data;
  netsnmp_tdata_row *table_row;
  struct table_entry *table_entry;
  int             ret;
  switch (reqinfo-&gt;mode) {
      /*                                                                                                                                                                                                          
       * Read-support (also covers GetNext requests)                                                                                                                                                              
       */
  case MODE_GET:
    for (request = requests; request; request = request-&gt;next) {
          table_entry = (struct table_entry *)
              netsnmp_tdata_extract_entry(request);
          table_info = netsnmp_extract_table_info(request);
  
          switch (table_info-&gt;colnum) {
          case COLUMN_NAMESERVER:
              .
              .
              .
         case COLUMN_NAMESERVERPORT:
              .
              .
              .
          default:
              .
              .
              .
          }
  </code></pre>