summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2008-01-16 09:45:18 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2008-01-16 09:45:18 +0000
commit5c204db88e3c5439aada19db7cebae87443a9bca (patch)
treefe76c044ab733ba276575e727875eb08d9880c6e /usr.sbin/snmpd
parent72544ae4714a1cef726d960a7eaeaefcd6459caa (diff)
tweak
Diffstat (limited to 'usr.sbin/snmpd')
-rw-r--r--usr.sbin/snmpd/trap.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/usr.sbin/snmpd/trap.c b/usr.sbin/snmpd/trap.c
index 569d82010ce..4ea84b9d282 100644
--- a/usr.sbin/snmpd/trap.c
+++ b/usr.sbin/snmpd/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.1 2008/01/16 09:42:29 reyk Exp $ */
+/* $OpenBSD: trap.c,v 1.2 2008/01/16 09:45:17 reyk Exp $ */
/*
* Copyright (c) 2008 Reyk Floeter <reyk@vantronix.net>
@@ -140,14 +140,7 @@ trap_request(struct imsgbuf *ibuf, pid_t pid)
case SNMP_OBJECT:
/* universal types */
break;
- case SNMP_IPADDR:
- case SNMP_COUNTER32:
- case SNMP_GAUGE32:
- case SNMP_TIMETICKS:
- case SNMP_OPAQUE:
- case SNMP_NSAPADDR:
- case SNMP_COUNTER64:
- case SNMP_UINTEGER32:
+ default:
/* application-specific types */
ber_set_header(a, BER_CLASS_APPLICATION,
sm->snmp_type);
@@ -176,12 +169,12 @@ trap_request(struct imsgbuf *ibuf, pid_t pid)
len = ber_calc_len(trap);
log_debug("snmpe_trap: %d bytes from pid %d", len, pid);
- /* XXX send trap to registered receivers */
-
#ifdef DEBUG
snmpe_debug_elements(trap);
#endif
+ /* XXX send trap to registered receivers */
+
ret = 0;
imsgdone:
if (ret != 0)