summaryrefslogtreecommitdiffstats
path: root/contrib/bsnmp/snmp_mibII/mibII.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fill the ifAlias leaf of the ifXTable with the interface descriptionharti2016-01-211-0/+13
| | | | if there is one available and it fits into the maximum size (64 characters).
* 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>
* Adter r228571 unbreak architectures with strict alignment rulesbz2011-12-171-7/+7
| | | | by copying rather than casting.
* 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
* Fix a problem with high CPU consumption (up to 30%) by bsnmpd on a loaded ↵syrinx2009-12-031-2/+34
| | | | | | | | | | | | | 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-151-74/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-271-1/+1
|
* Vendor fix: make mibII HC counters really 64-bit on 32-bit platforms by pollingharti2006-02-131-6/+153
| | | | | | 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
* Virgin import of bsnmpd 1.11harti2005-10-041-2/+65
|
* 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-231-4/+4
|
* Virgin import of bsnmpd 1.8harti2005-02-281-1/+2
|
* Virgin import of bsnmpd 1.7harti2004-08-061-29/+26
|
* Import of bsnmpd 1.6harti2004-04-141-2/+2
|
* Virgin import of bsnmpd 1.5aharti2004-01-231-1/+5
|
* Virgin import of bsnmp 1.4harti2003-11-101-0/+1564
OpenPOWER on IntegriCloud