summaryrefslogtreecommitdiffstats
path: root/contrib/bsnmp/snmp_mibII
Commit message (Collapse)AuthorAgeFilesLines
* Return `ret` in op_ifentry(..) to mute a -Wunused-but-set-variable warningngie2016-04-221-1/+1
| | | | | | | | | | | | This will also now detect error conditions with value->var.subs[sub - 1] == LEAF_ifPhysAddress where `string_get(..)` could fail if iifp->physaddr and/or iifp->physaddrlen were deemed invalid. MFC after: 2 weeks CID: 1006551 Reported by: Coverity, gcc Sponsored by: EMC / Isilon Storage Division
* Redo r294869. The array of counters for TCP states doesn't belong toglebius2016-03-151-2/+14
| | | | | | | | struct tcpstat, because the structure can be zeroed out by netstat(1) -z, and of course running connection counts shouldn't be touched. Place running connection counts into separate array, and provide separate read-only sysctl oid for it.
* Try to fix a bug introduced in r228623. We started to copy the ifa_msghdrbz2016-02-031-5/+7
| | | | | | | | | | | | | | as otherwise platforms with strict alignment would break. It's unclear to me if there's also a problem with access to the address list following the structure. However we never copied the address list after the structure and thus are pointing at random memory. For now just use a pointer to the original memory for accessing the address list making it at least work on platforms with weak memory access. PR: 195445 Reported by: wolfgang lyxys.ka.sub.org Tested by: wolfgang lyxys.ka.sub.org (x86) MFC after: 3 days
* Grab value for LEAF_tcpCurrEstab from net.inet.tcp.stats instead ofglebius2016-01-271-14/+20
| | | | net.inet.tcp.pcblist, which is much cheaper.
* Change the variable to a #define in order to make gcc happy whichbz2016-01-221-1/+1
| | | | | otherwise will complain about "variably modified 'alias' at file scope". Unbreaks the build on gcc platforms.
* Fill the ifAlias leaf of the ifXTable with the interface descriptionharti2016-01-213-1/+20
| | | | if there is one available and it fits into the maximum size (64 characters).
* Fix variable 'old' is used uninitialized whenever '&&' condition is false.araujo2015-08-071-1/+1
| | | | | | | Spotted by clang. Differential Revision: D2721 Reviewed by: rodrigc, bapt
* Restore the ipNetToMedia MIB, that was broken with new ARP commitglebius2013-04-251-0/+45
| | | | | | in the r186119. Submitted by: Konstantin Kukushkin <dark rambler-co.ru>
* Looks like support.h is really not needed here.glebius2012-10-181-1/+0
|
* put another bandaid on the build until i figure out bsnmp headersemax2012-10-181-1/+1
|
* fix buildemax2012-10-171-0/+1
| | | | MFC after: 1 week
* Count both IPv4 and IPv6 TCP connections in tcpCurrEstabemax2012-06-061-2/+4
| | | | | Timeout from: current, syrinx MFC after: 1 week
* Adter r228571 unbreak architectures with strict alignment rulesbz2011-12-171-7/+7
| | | | by copying rather than casting.
* Properly detect interface's state in the LINK_STATE_UNKNOWN case.ru2011-05-031-2/+1
| | | | MFC after: 1 week
* Fix a typo introduced in r210936 which broke build.yongari2010-08-061-1/+1
|
* Ethernet vlan(4) interfaces have valid Ethernet link layer addresses butjhb2010-08-061-0/+1
| | | | | | | | use a different interface type (IFT_L2VLAN vs IFT_ETHER). Treat IFT_L2VLAN interfaces like IFT_ETHER interfaces when handling link layer addresses. Reviewed by: syrinx (bsnmpd) MFC after: 1 week
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>uqs2010-05-241-2/+2
| | | | | Reviewed by: ru Approved by: harti
* Fix a problem with high CPU consumption (up to 30%) by bsnmpd on a loaded ↵syrinx2009-12-035-3/+77
| | | | | | | | | | | | | system. Instead of constantly calling the mibII_idle function when the server is not busy call the function only once every 10 seconds to avoid bsnmpd constantly doing gettimeofday syscalls. Make the idle polling interval confugurable via begemotIfDataPoll. Reported and tested by: misho (at) aitbg (dot) com Oked by: harti MFC after: 1 week
* Add an extra (void *) cast. The struct if_msghdr has an 8 byteimp2009-02-181-1/+1
| | | | | | | | | | | | | | alignment requirement, while rt_msghdr has a 4 byte alignment requirement. The root cause is that if_msghdr has an struct if_data which has an 8-byte alignment requirement due to a time_t that's embedded in it. On MIPS, time_t is a 64-bit number, so must be 64-bit aligned. Since we don't access ifm_data.ifi_epoch, a simple cast is all that's necessary here. It is likely the case that ifi_epoch should *NOT* be a time_t because it is an uptime (time delta) an not an absolute time since 1970. u_long is likely sufficient there since that gives an uptime of 136 years will suffice for the foreseeable future.
* This main goals of this project are:qingli2008-12-152-76/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. separating L2 tables (ARP, NDP) from the L3 routing tables 2. removing as much locking dependencies among these layers as possible to allow for some parallelism in the search operations 3. simplify the logic in the routing code, The most notable end result is the obsolescent of the route cloning (RTF_CLONING) concept, which translated into code reduction in both IPv4 ARP and IPv6 NDP related modules, and size reduction in struct rtentry{}. The change in design obsoletes the semantics of RTF_CLONING, RTF_WASCLONE and RTF_LLINFO routing flags. The userland applications such as "arp" and "ndp" have been modified to reflect those changes. The output from "netstat -r" shows only the routing entries. Quite a few developers have contributed to this project in the past: Glebius Smirnoff, Luigi Rizzo, Alessandro Cerri, and Andre Oppermann. And most recently: - Kip Macy revised the locking code completely, thus completing the last piece of the puzzle, Kip has also been conducting active functional testing - Sam Leffler has helped me improving/refactoring the code, and provided valuable reviews - Julian Elischer setup the perforce tree for me and has helped me maintaining that branch before the svn conversion
* Vendor patch: improve readability by using the IF_Mbps macro.harti2006-10-301-5/+6
| | | | Submitted by: glebius
* Virgin import of bsnmpd 1.12harti2006-02-279-6/+267
|
* Vendor fix: make mibII HC counters really 64-bit on 32-bit platforms by pollingharti2006-02-135-19/+206
| | | | | | the kernel periodically. Submitted by: glebius (partly)
* Vendor patch: Make the link traps more RFC-conform.harti2006-02-101-9/+12
| | | | Submitted by: glebius
* Vendor fix: the routing table can change while we are fetching it fromharti2006-01-101-9/+19
| | | | | | | the kernel. Instead of complaining if we get an ENOMEM (meaning it got larger than our buffer is) reallocate the buffer and loop. Submitted by: maxim
* Vendor patch: fix the reporting of ifOperStatus. We now consider anharti2005-11-021-3/+17
| | | | | | | | | | interface up when it is running AND the link is not down (that is, it is up or unknown). If the interface is running but the link is down, we return state 'dormant', because we're waiting for an external event. Otherwise the interface is 'down'. Submitted by: csjp Reviewed by: glebius
* Virgin import of bsnmpd 1.11harti2005-10-045-153/+462
|
* Apply a vendor patch: silence gcc on arm (alignent when casting pointer).harti2005-05-251-1/+1
| | | | Submitted by: Olivier Houchard <cognet@ci0.org>
* Virgin import of bsnmpd 1.10harti2005-05-239-27/+31
|
* Virgin import of bsnmpd 1.8harti2005-02-284-8/+14
|
* Virgin import of bsnmpd 1.7harti2004-08-0615-367/+308
|
* Import of bsnmpd 1.6harti2004-04-144-33/+28
|
* Virgin import of bsnmpd 1.5aharti2004-01-2315-15/+19
|
* Virgin import of bsnmp 1.4harti2003-11-1015-0/+5335
OpenPOWER on IntegriCloud