From 66dcbacb150028979ae21e2c3222a8c700e94562 Mon Sep 17 00:00:00 2001 From: blambert Date: Mon, 28 Apr 2014 08:25:05 +0000 Subject: [PATCH] better proc id name (it handles traps, not alerts) for the snmp trap handler --- usr.sbin/snmpd/snmpd.c | 4 ++-- usr.sbin/snmpd/snmpd.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/snmpd/snmpd.c b/usr.sbin/snmpd/snmpd.c index dc80527a540..b59733cea50 100644 --- a/usr.sbin/snmpd/snmpd.c +++ b/usr.sbin/snmpd/snmpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpd.c,v 1.21 2014/04/25 06:57:11 blambert Exp $ */ +/* $OpenBSD: snmpd.c,v 1.22 2014/04/28 08:25:05 blambert Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter @@ -52,7 +52,7 @@ struct snmpd *snmpd_env; static struct privsep_proc procs[] = { { "snmpe", PROC_SNMPE, snmpd_dispatch_snmpe, snmpe, snmpe_shutdown }, - { "traphandler", PROC_ALERT, snmpd_dispatch_traphandler, traphandler, + { "traphandler", PROC_TRAP, snmpd_dispatch_traphandler, traphandler, traphandler_shutdown } }; diff --git a/usr.sbin/snmpd/snmpd.h b/usr.sbin/snmpd/snmpd.h index 7383fea488a..37cb603e270 100644 --- a/usr.sbin/snmpd/snmpd.h +++ b/usr.sbin/snmpd/snmpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpd.h,v 1.52 2014/04/25 06:57:11 blambert Exp $ */ +/* $OpenBSD: snmpd.h,v 1.53 2014/04/28 08:25:05 blambert Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter @@ -112,7 +112,7 @@ TAILQ_HEAD(control_socks, control_sock); enum privsep_procid { PROC_PARENT, /* Parent process and application interface */ PROC_SNMPE, /* SNMP engine */ - PROC_ALERT, /* SNMP trap receiver */ + PROC_TRAP, /* SNMP trap receiver */ PROC_MAX }; -- 2.20.1