mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 15:16:02 +00:00
SNMP: Cleanup unreachable code
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Dirk Ziegelmeier <dirk@ziegelmeier.net>
This commit is contained in:
parent
fe8c62e7b6
commit
bf510fee51
|
@ -1187,7 +1187,6 @@ snmp_parse_inbound_frame(struct snmp_request *request)
|
||||||
/* unsupported input PDU for this agent (no parse error) */
|
/* unsupported input PDU for this agent (no parse error) */
|
||||||
LWIP_DEBUGF(SNMP_DEBUG, ("Unknown/Invalid SNMP PDU type received: %d", tlv.type)); \
|
LWIP_DEBUGF(SNMP_DEBUG, ("Unknown/Invalid SNMP PDU type received: %d", tlv.type)); \
|
||||||
return ERR_ARG;
|
return ERR_ARG;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
request->request_type = tlv.type & SNMP_ASN1_DATATYPE_MASK;
|
request->request_type = tlv.type & SNMP_ASN1_DATATYPE_MASK;
|
||||||
request->request_out_type = (SNMP_ASN1_CLASS_CONTEXT | SNMP_ASN1_CONTENTTYPE_CONSTRUCTED | SNMP_ASN1_CONTEXT_PDU_GET_RESP);
|
request->request_out_type = (SNMP_ASN1_CLASS_CONTEXT | SNMP_ASN1_CONTENTTYPE_CONSTRUCTED | SNMP_ASN1_CONTEXT_PDU_GET_RESP);
|
||||||
|
|
|
@ -288,7 +288,6 @@ static s16_t usmusertable_get_value(struct snmp_node_instance *cell_instance, vo
|
||||||
case 3: /* usmUserSecurityName */
|
case 3: /* usmUserSecurityName */
|
||||||
MEMCPY(value, cell_instance->reference.ptr, cell_instance->reference_len);
|
MEMCPY(value, cell_instance->reference.ptr, cell_instance->reference_len);
|
||||||
return (s16_t)cell_instance->reference_len;
|
return (s16_t)cell_instance->reference_len;
|
||||||
break;
|
|
||||||
case 4: /* usmUserCloneFrom */
|
case 4: /* usmUserCloneFrom */
|
||||||
MEMCPY(value, snmp_zero_dot_zero.id, snmp_zero_dot_zero.len * sizeof(u32_t));
|
MEMCPY(value, snmp_zero_dot_zero.id, snmp_zero_dot_zero.len * sizeof(u32_t));
|
||||||
return snmp_zero_dot_zero.len * sizeof(u32_t);
|
return snmp_zero_dot_zero.len * sizeof(u32_t);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user