File ..\SNMPLIB\SNMPAGNT.C:
      pi->community_len = COMMUNITY_MAX_LEN;
         pi->community, &pi->community_len, &pi->version);
   if (pi->version == SNMP_VERSION_2C || pi->version == SNMP_VERSION_1) {
      pi->community_id = get_community(pi->community, pi->community_len);
      if (pi->community_id == -1)
   data = asn_parse_header(data, &length, &pi->pdutype);
   if (pi->pdutype != GET_REQ_MSG && pi->pdutype != GETNEXT_REQ_MSG
         && pi->pdutype != SET_REQ_MSG && pi->pdutype != BULK_REQ_MSG) {
      pi->community, &pi->community_len, &pi->version, 0);
   if (pi->pdutype == BULK_REQ_MSG)
   if (pi->pdutype == SET_REQ_MSG) {
            *out_length = pi->packet_end - out_auth;
      *out_length = pi->packet_end - out_header;
         out_header, out_length, GET_RSP_MSG, pi->packet_end - out_reqid);
      *out_length = pi->packet_end - out_auth;
         pi->community, &pi->community_len, &pi->version,
         pi->packet_end - out_header);
   *out_length = pi->packet_end - out_auth;
   if (pi->pdutype == SET_REQ_MSG)
   if (pi->pdutype == GETNEXT_REQ_MSG) {
      if (pi->version == SNMP_VERSION_1 && statP == NULL
            && (pi->pdutype != SET_REQ_MSG || !write_method)) {
      if (pi->pdutype == SET_REQ_MSG  /* Writing, no write access */
            && !snmp_access(acl, pi->community_id, rw)) {
         printf("%X %d %d\n", acl, pi->community_id, rw);
         if (pi->version == SNMP_VERSION_2C) {
      if (pi->pdutype == SET_REQ_MSG) {
                  if (pi->version == SNMP_VERSION_2C)
               if (pi->version == SNMP_VERSION_2C)
               if (pi->version != SNMP_VERSION_2C)
   if (pi->pdutype != SET_REQ_MSG) {
      pi->packet_end = out_data;
      dummyLen = pi->packet_end - var_list_start;
   pi->packet_end = out_data;
   dummyLen = pi->packet_end - var_list_start;
      pi->community_len = COMMUNITY_MAX_LEN;
         pi->community, &pi->community_len, &pi->version);
      pi->community, &pi->community_len, &pi->version, messagelen);
   if (errstat == SNMP_ERR_TOOBIG && pi->version != SNMP_VERSION_1)
   pi->packet_end = data + messagelen;
