diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2008-01-03 15:03:48 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2008-01-03 15:03:48 +0000 |
commit | 112cf7cff5686997d200548006928fb798d1b4bd (patch) | |
tree | 4c2c120b6f56eb8e21be136ea6820c050080d2e2 /usr.sbin/snmpd/snmpd.h | |
parent | 06e06a80feca42c2b02c2a4861b1d2a3904eedb6 (diff) |
handle no more than 2147483647 (0x7fffffff) variable bindings
From RFC3416
Diffstat (limited to 'usr.sbin/snmpd/snmpd.h')
-rw-r--r-- | usr.sbin/snmpd/snmpd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/snmpd.h b/usr.sbin/snmpd/snmpd.h index 989653e8091..fc6418536b1 100644 --- a/usr.sbin/snmpd/snmpd.h +++ b/usr.sbin/snmpd/snmpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpd.h,v 1.9 2008/01/02 20:54:59 maja Exp $ */ +/* $OpenBSD: snmpd.h,v 1.10 2008/01/03 15:03:47 reyk Exp $ */ /* * Copyright (c) 2007 Reyk Floeter <reyk@vantronix.net> @@ -39,6 +39,7 @@ #define SNMPD_MAXSTRLEN 484 #define SNMPD_MAXCOMMUNITYLEN SNMPD_MAXSTRLEN +#define SNMPD_MAXVARBIND 0x7fffffff #define SNMPD_MAXVARBINDLEN 1210 #define SMALL_READ_BUF_SIZE 1024 |