From 151420acaa84d5b0ab4f769dfa868c8bfe11a649 Mon Sep 17 00:00:00 2001 From: martijn Date: Thu, 21 Oct 2021 14:33:13 +0000 Subject: [PATCH] s/SNMP_C_GETRESP/SNMP_C_RESPONSE OK sthen@ --- usr.sbin/snmpd/smi.c | 4 ++-- usr.sbin/snmpd/snmp.h | 4 ++-- usr.sbin/snmpd/snmpe.c | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/usr.sbin/snmpd/smi.c b/usr.sbin/snmpd/smi.c index 8096d99ae31..6b95da0f964 100644 --- a/usr.sbin/snmpd/smi.c +++ b/usr.sbin/snmpd/smi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smi.c,v 1.28 2021/01/04 07:59:54 martijn Exp $ */ +/* $OpenBSD: smi.c,v 1.29 2021/10/21 14:33:13 martijn Exp $ */ /* * Copyright (c) 2007, 2008 Reyk Floeter @@ -377,7 +377,7 @@ smi_debug_elements(struct ber_element *root) case SNMP_C_GETNEXTREQ: fprintf(stderr, "nextreq"); break; - case SNMP_C_GETRESP: + case SNMP_C_RESPONSE: fprintf(stderr, "getresp"); break; case SNMP_C_SETREQ: diff --git a/usr.sbin/snmpd/snmp.h b/usr.sbin/snmpd/snmp.h index cdaaa8a4999..68502f376f9 100644 --- a/usr.sbin/snmpd/snmp.h +++ b/usr.sbin/snmpd/snmp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: snmp.h,v 1.17 2021/05/20 08:53:12 martijn Exp $ */ +/* $OpenBSD: snmp.h,v 1.18 2021/10/21 14:33:13 martijn Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter @@ -80,7 +80,7 @@ enum snmp_version { enum snmp_pdutype { SNMP_C_GETREQ = 0, SNMP_C_GETNEXTREQ = 1, - SNMP_C_GETRESP = 2, + SNMP_C_RESPONSE = 2, SNMP_C_SETREQ = 3, SNMP_C_TRAP = 4, diff --git a/usr.sbin/snmpd/snmpe.c b/usr.sbin/snmpd/snmpe.c index 239cfc04acf..e8ff23cb302 100644 --- a/usr.sbin/snmpd/snmpe.c +++ b/usr.sbin/snmpd/snmpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpe.c,v 1.77 2021/10/21 08:21:43 martijn Exp $ */ +/* $OpenBSD: snmpe.c,v 1.78 2021/10/21 14:33:13 martijn Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter @@ -207,7 +207,7 @@ snmpe_pdutype2string(enum snmp_pdutype pdutype) return "GetRequest"; case SNMP_C_GETNEXTREQ: return "GetNextRequest"; - case SNMP_C_GETRESP: + case SNMP_C_RESPONSE: return "Response"; case SNMP_C_SETREQ: return "SetRequest"; @@ -373,7 +373,7 @@ badversion: } break; - case SNMP_C_GETRESP: + case SNMP_C_RESPONSE: stats->snmp_ingetresponses++; msg->sm_errstr = "response without request"; goto parsefail; @@ -812,7 +812,7 @@ snmpe_dispatchmsg(struct snmp_message *msg) (void) snmpe_parsevarbinds(msg); /* respond directly */ - msg->sm_pdutype = SNMP_C_GETRESP; + msg->sm_pdutype = SNMP_C_RESPONSE; snmpe_response(msg); } -- 2.20.1