summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/control.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2008-01-16 19:36:07 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2008-01-16 19:36:07 +0000
commit30a6a57434dccbe1344c874f0241339612913209 (patch)
tree0be5644d3f6a32ee5a930aba2b1f7981d1bccbb0 /usr.sbin/snmpd/control.c
parent2c9cd77dfb76942480fde4b9025e1691b097919a (diff)
implementation of the SNMP trap sender interface
Diffstat (limited to 'usr.sbin/snmpd/control.c')
-rw-r--r--usr.sbin/snmpd/control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/control.c b/usr.sbin/snmpd/control.c
index 8ee5be5d1b7..333f6ad2000 100644
--- a/usr.sbin/snmpd/control.c
+++ b/usr.sbin/snmpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.3 2008/01/16 09:42:29 reyk Exp $ */
+/* $OpenBSD: control.c,v 1.4 2008/01/16 19:36:06 reyk Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -231,7 +231,7 @@ control_dispatch_imsg(int fd, short event, void *arg)
c->flags |= CTL_CONN_NOTIFY;
break;
case IMSG_SNMP_TRAP:
- if (trap_request(&c->ibuf, imsg.hdr.pid) == -1) {
+ if (trap_imsg(&c->ibuf, imsg.hdr.pid) == -1) {
log_debug("control_dispatch_imsg: "
"received invalid trap (pid %d)",
imsg.hdr.pid);