Up to [local] / src / usr.sbin / snmpd
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.39, Thu Oct 6 14:41:08 2022 UTC (20 months ago) by martijn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.38: +1 -1 lines
FILE REMOVED
Remove a lot of old (dead) code that's either been superseded, or moved to snmpd_metrics. OK benno@ sthen@
Revision 1.38 / (download) - annotate - [select for diffs], Tue Jan 22 09:25:29 2019 UTC (5 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)
PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() calls where the "wrong" #define was used. ok dlg@
Revision 1.37 / (download) - annotate - [select for diffs], Fri Dec 7 08:40:54 2018 UTC (5 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.36: +14 -10 lines
Diff to previous 1.36 (colored)
Be more strict in converting a netmask into a prefixlen. Make sure the prefixlen is never bigger than 128 for inet6. OK remi@
Revision 1.36 / (download) - annotate - [select for diffs], Wed Oct 10 11:46:59 2018 UTC (5 years, 8 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)
RT_TABLEID_MAX is 255, fix places that assumed that it is less than 255. rtable 255 is a valid routing table or domain id that wasn't handled by the ip[6]_mroute code or by snmpd. The arrays in the ip[6]_mroute code where off by one and didn't allocate space for rtable 255; snmpd simply ignored rtable 255. All other places in the tree seem to handle RT_TABLEID_MAX correctly. OK florian@ benno@ henning@ deraadt@
Revision 1.35 / (download) - annotate - [select for diffs], Mon Jul 24 11:00:01 2017 UTC (6 years, 10 months ago) by friehm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)
Unify ROUNDUP macros for parsing route messages. Use the macro from route(8) / ospf6d(8) since it works also with argument 0. OK claudio@
Revision 1.34 / (download) - annotate - [select for diffs], Fri Oct 28 08:01:53 2016 UTC (7 years, 7 months ago) by rzalamena
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.33: +4 -5 lines
Diff to previous 1.33 (colored)
Use snmpd_env as the only global variable for env to simplify the daemon and avoid problems. ok jca@
Revision 1.33 / (download) - annotate - [select for diffs], Sat Sep 3 15:45:02 2016 UTC (7 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.32: +2 -3 lines
Diff to previous 1.32 (colored)
Fix pasto; zero ka->dstbrd instead of clobbering ka->mask. Diff from Jan Klemkow, ok mikeb@
Revision 1.32 / (download) - annotate - [select for diffs], Tue Nov 3 07:48:03 2015 UTC (8 years, 7 months ago) by gerhard
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.31: +7 -7 lines
Diff to previous 1.31 (colored)
When updating an interface, do not delete the kif_node but let fetchifs() update the existing node. Thus we don't lose the ARP entries. And while here, also handle RTM_DESYNC messages. ok mikeb@
Revision 1.31 / (download) - annotate - [select for diffs], Sat Jul 18 00:27:32 2015 UTC (8 years, 10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.30: +13 -1 lines
Diff to previous 1.30 (colored)
Better track connected routes similar to bgpd/ospfd. According to sthen@ this makes snmpd report routes more correct
Revision 1.30 / (download) - annotate - [select for diffs], Fri Jan 16 00:05:13 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.29: +1 -2 lines
Diff to previous 1.29 (colored)
first batch of cleanup to programs based upon the namespace cleanups in net/pfvar.h sys/proc.h sys/ucred.h arpa/nameser.h change to PATH_MAX, reduce use of MIN() and MAX(), HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc etc ok millert guenther, some review by doug
Revision 1.29 / (download) - annotate - [select for diffs], Thu Oct 16 04:05:02 2014 UTC (9 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +5 -4 lines
Diff to previous 1.28 (colored)
use reallocarray(). Looked at a few times by doug, I am sure.
Revision 1.28 / (download) - annotate - [select for diffs], Mon Jun 23 03:46:17 2014 UTC (9 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored)
The second level of the CTL_NET sysctl is a PF_*, not an AF_* inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)
Revision 1.27 / (download) - annotate - [select for diffs], Fri May 16 08:46:23 2014 UTC (10 years ago) by mikeb
Branch: MAIN
Changes since 1.26: +59 -53 lines
Diff to previous 1.26 (colored)
improve logging messages and style; requested by and ok reyk
Revision 1.26 / (download) - annotate - [select for diffs], Wed May 14 09:42:22 2014 UTC (10 years ago) by mikeb
Branch: MAIN
Changes since 1.25: +232 -69 lines
Diff to previous 1.25 (colored)
Sync ktable code with bgpd to fetch, store and perform lookups in multiple routing tables. Currently it doesn't do anything useful but it's a prerequisite for any future work in this direction. ok sthen, reyk, blambert
Revision 1.25 / (download) - annotate - [select for diffs], Mon Apr 28 12:03:32 2014 UTC (10 years, 1 month ago) by mikeb
Branch: MAIN
Changes since 1.24: +221 -4 lines
Diff to previous 1.24 (colored)
Add support for exporting ARP table via ipNetToMediaTable OID. With help from blambert@ and sthen@, tested by sthen@, benno@ and myself; ok blambert
Revision 1.24 / (download) - annotate - [select for diffs], Wed Oct 30 17:24:35 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)
another simple %i to %d conversion for obviousness
Revision 1.23 / (download) - annotate - [select for diffs], Tue Nov 13 22:08:33 2012 UTC (11 years, 6 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)
pasto in log message ok henning
Revision 1.22 / (download) - annotate - [select for diffs], Tue Sep 18 08:36:39 2012 UTC (11 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.21: +7 -7 lines
Diff to previous 1.21 (colored)
sync mask2prefixlen6() with the nicer version from bgpd/kroute.c: "Instead of doing a poor mans offsetof() implementation change the code to use an end pointer to compare against. Looks less scary and makes gcc4 happy. OK henning@" (bgpd/kroute.c commit 1.182)
Revision 1.21 / (download) - annotate - [select for diffs], Tue Sep 18 08:29:09 2012 UTC (11 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)
knf
Revision 1.20 / (download) - annotate - [select for diffs], Mon Sep 17 16:43:59 2012 UTC (11 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)
Update copyright and my email address in snmpd while I'm here.
Revision 1.19 / (download) - annotate - [select for diffs], Sun Jun 10 14:52:46 2012 UTC (12 years ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2
Changes since 1.18: +1 -3 lines
Diff to previous 1.18 (colored)
kr_init() now returns void so don't try to return 0
Revision 1.18 / (download) - annotate - [select for diffs], Mon May 28 20:55:40 2012 UTC (12 years ago) by joel
Branch: MAIN
Changes since 1.17: +9 -13 lines
Diff to previous 1.17 (colored)
Plug a couple more fd leaks. As part of the fix, make all the *init functions return void. ok krw@
Revision 1.17 / (download) - annotate - [select for diffs], Thu Apr 21 14:55:22 2011 UTC (13 years, 1 month ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.16: +7 -1 lines
Diff to previous 1.16 (colored)
Add a "filter-routes" option; when set, snmpd asks the kernel not to send route updates. If you aren't interested in examining routing tables over SNMP (e.g. if you only use it for sensors or interface stats) this reduces cpu use during heavy route updates. Makes my full-table bgp routers happier when a major peer bounces. ok reyk@
Revision 1.16 / (download) - annotate - [select for diffs], Mon Mar 7 07:43:02 2011 UTC (13 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)
continguous -> contiguous From: "Anthony J. Bentley" <anthonyjbentley at gmail dot com>
Revision 1.15 / (download) - annotate - [select for diffs], Fri Oct 15 09:27:03 2010 UTC (13 years, 7 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE,
OPENBSD_4_9
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)
typo in comment
Revision 1.14 / (download) - annotate - [select for diffs], Fri Jun 11 10:45:36 2010 UTC (14 years ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.13: +24 -1 lines
Diff to previous 1.13 (colored)
Implement IP-FORWARD-MIB, ipv4 only for now. ok reyk@ claudio@
Revision 1.13 / (download) - annotate - [select for diffs], Tue Apr 27 15:36:46 2010 UTC (14 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)
Dumb mistake done twice. First in ospfd then synced to snmpd. rtm_errno is only valid for messages with an rt_msghdr. So move the check back where it was before. Problem found by jsg@
Revision 1.12 / (download) - annotate - [select for diffs], Thu Apr 1 14:42:32 2010 UTC (14 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.11: +21 -26 lines
Diff to previous 1.11 (colored)
Track blackhole and reject flags since the MIB knows about them. Remove an unneeded stack storage as well. OK jsg@
Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 1 13:44:42 2010 UTC (14 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.10: +45 -130 lines
Diff to previous 1.10 (colored)
After syncing kroute with bgpd sync now against ospfd's so that this code uses only one rtm parser instead of three different ones. Fixes problems with priorities that were not handled everywhere correctly. Found by and OK jsg@
Revision 1.10 / (download) - annotate - [select for diffs], Wed Mar 31 09:20:23 2010 UTC (14 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.9: +66 -105 lines
Diff to previous 1.9 (colored)
Track interface addresses in a AF independent way. This is needed to support the AF independent MIBs like RFC4292 in the future. Additionally count number of routes (also needed by some MIBs) and do not track the state of routes since the MIB do not require it and it is expensive. OK jsg@
Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 29 14:52:49 2010 UTC (14 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.8: +518 -319 lines
Diff to previous 1.8 (colored)
Sync kroute.c code with bgpd so that snmpd is able to track INET6 addrs as well. First big sync, the interface address tree still needs to be made AF independent but that will be done in a second step. OK jsg@
Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 25 17:02:30 2009 UTC (14 years, 11 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6
Changes since 1.7: +5 -1 lines
Diff to previous 1.7 (colored)
Another kroute.c needing RTM_VERSION checks. Looked over by sthen@ and henning@
Revision 1.7 / (download) - annotate - [select for diffs], Fri Jun 5 22:40:24 2009 UTC (15 years ago) by chris
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)
rtm->rtm_hdrlen conversion ok claudio@, henning@
Revision 1.6 / (download) - annotate - [select for diffs], Wed Jan 16 09:51:15 2008 UTC (16 years, 4 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)
bump copyright
Revision 1.5 / (download) - annotate - [select for diffs], Sat Dec 29 09:24:43 2007 UTC (16 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.4: +116 -5 lines
Diff to previous 1.4 (colored)
add the IP-MIB ipAddrTable. it requires to encode the ipv4 addresses in the OIDs as the table index. the next step is to simplify the common mib implementation regarding the special requirements of these strange snmp tables.
Revision 1.4 / (download) - annotate - [select for diffs], Fri Dec 28 16:59:31 2007 UTC (16 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.3: +7 -7 lines
Diff to previous 1.3 (colored)
split code handling the "structure of management information" and the "message processing subsystem" into separate files smi.c and mps.c
Revision 1.3 / (download) - annotate - [select for diffs], Fri Dec 28 15:33:37 2007 UTC (16 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.2: +4 -3 lines
Diff to previous 1.2 (colored)
spacing
Revision 1.2 / (download) - annotate - [select for diffs], Thu Dec 6 04:10:46 2007 UTC (16 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)
correct bizzare function definition
Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 5 09:22:44 2007 UTC (16 years, 6 months ago) by reyk
Branch: MAIN
Start working on snmpd(8) and snmpctl(8), a lightweight SNMP implementation for OpenBSD. SNMP is a necessary evil. This is work in progress, don't expect too much from it yet. ok deraadt@