Warner Losh
26ea346865
Add an extra (void *) cast. The struct if_msghdr has an 8 byte
...
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.
2009-02-18 19:59:27 +00:00
Qing Li
6e6b3f7cbc
This main goals of this project are:
...
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
2008-12-15 06:10:57 +00:00
Shteryana Shopova
02f27f1cfa
This commit was generated by cvs2svn to compensate for changes in r176892,
...
which included commits to RCS files with non-trunk default branches.
2008-03-07 09:33:29 +00:00
Shteryana Shopova
691f8568ea
Vendor patch: Prevent bsnmpd from dumping core when a module's init hook
...
returns an error.
Approved by: bz (mentor), harti
2008-03-07 09:33:29 +00:00
Hartmut Brandt
cab70e0247
Vendor patch: synthesize the initial value for sysObjectId from the value
...
of uname -r in FreeBSD. This value can be overwritten in the configuration
file.
Suggested by: phk
2006-10-31 09:00:35 +00:00
Hartmut Brandt
f56ce4bd26
This commit was generated by cvs2svn to compensate for changes in r163820,
...
which included commits to RCS files with non-trunk default branches.
2006-10-31 09:00:35 +00:00
Hartmut Brandt
f929683df1
Vendor patch: improve readability by using the IF_Mbps macro.
...
Submitted by: glebius
2006-10-30 16:56:38 +00:00
Hartmut Brandt
91c878a693
This commit was generated by cvs2svn to compensate for changes in r163799,
...
which included commits to RCS files with non-trunk default branches.
2006-10-30 16:56:38 +00:00
Hartmut Brandt
6f557cf7be
Vendor patch: add support for the BITS construct and enumerations in both
...
gensnmpdef and gensnmptree. Add include and typedef directives to gensnmptree.
Submitted by: soc-sheryana (partly)
2006-05-30 07:46:52 +00:00
Hartmut Brandt
1164383c76
This commit was generated by cvs2svn to compensate for changes in r159063,
...
which included commits to RCS files with non-trunk default branches.
2006-05-30 07:46:52 +00:00
Hartmut Brandt
ef52b4dc88
Don't import tree.h from the distribution - we have our own one in sys.
2006-03-13 09:30:26 +00:00
Hartmut Brandt
748b5b1ebd
Virgin import of bsnmpd 1.12
2006-02-27 16:16:18 +00:00
Hartmut Brandt
568d256aa1
This commit was generated by cvs2svn to compensate for changes in r156066,
...
which included commits to RCS files with non-trunk default branches.
2006-02-27 16:16:18 +00:00
Hartmut Brandt
c6a4e65805
Vendor fix: make mibII HC counters really 64-bit on 32-bit platforms by polling
...
the kernel periodically.
Submitted by: glebius (partly)
2006-02-13 14:11:18 +00:00
Hartmut Brandt
4232b8b134
This commit was generated by cvs2svn to compensate for changes in r155602,
...
which included commits to RCS files with non-trunk default branches.
2006-02-13 14:11:18 +00:00
Hartmut Brandt
e6ef6163fd
Vendor patch: Make the link traps more RFC-conform.
...
Submitted by: glebius
2006-02-10 16:49:49 +00:00
Hartmut Brandt
141508eb20
This commit was generated by cvs2svn to compensate for changes in r155506,
...
which included commits to RCS files with non-trunk default branches.
2006-02-10 16:49:49 +00:00
Hartmut Brandt
fa122c2038
Vendor patch: string_get_max() function to return strings with a maximum
...
SNMP string length.
2006-02-07 15:48:37 +00:00
Hartmut Brandt
74b07c5412
This commit was generated by cvs2svn to compensate for changes in r155429,
...
which included commits to RCS files with non-trunk default branches.
2006-02-07 15:48:37 +00:00
Hartmut Brandt
5105400329
Vendor patch: prevent a core dump when the trace option is not followed
...
by an option value.
Submitted by: Shteryana Shopova <shteryana@yahoo.com>
2006-01-31 14:59:07 +00:00
Hartmut Brandt
3dc7424242
This commit was generated by cvs2svn to compensate for changes in r155094,
...
which included commits to RCS files with non-trunk default branches.
2006-01-31 14:59:07 +00:00
Hartmut Brandt
9d165d9f13
Vendor fix: the routing table can change while we are fetching it from
...
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
2006-01-10 11:59:31 +00:00
Hartmut Brandt
1d6d1f6fa8
This commit was generated by cvs2svn to compensate for changes in r154184,
...
which included commits to RCS files with non-trunk default branches.
2006-01-10 11:59:31 +00:00
Hartmut Brandt
2a9284a7c0
Vendor fix: initialize the flag field of a newly created node to be 0.
...
Submitted by: jasone
2006-01-10 11:52:51 +00:00
Hartmut Brandt
d96dd77460
This commit was generated by cvs2svn to compensate for changes in r154182,
...
which included commits to RCS files with non-trunk default branches.
2006-01-10 11:52:51 +00:00
Hartmut Brandt
d4199d75a1
Vendor fix: make the default read and write communities NULL. This
...
basically disables any access unless other strings are set in the config
file. Note, that there is no way to set the communities back to NULL once
they're set to something not NULL.
2006-01-10 11:49:26 +00:00
Hartmut Brandt
5b1d3a5c13
This commit was generated by cvs2svn to compensate for changes in r154180,
...
which included commits to RCS files with non-trunk default branches.
2006-01-10 11:49:26 +00:00
Hartmut Brandt
e9d4cb69e2
Vendor patch: fix a bug when parsing the include path.
2006-01-10 11:47:56 +00:00
Hartmut Brandt
2bc6540439
This commit was generated by cvs2svn to compensate for changes in r154178,
...
which included commits to RCS files with non-trunk default branches.
2006-01-10 11:47:56 +00:00
Hartmut Brandt
361b40a30d
Vendor patch: fix the reporting of ifOperStatus. We now consider an
...
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
2005-11-02 14:05:49 +00:00
Hartmut Brandt
1f467eaaf8
This commit was generated by cvs2svn to compensate for changes in r151970,
...
which included commits to RCS files with non-trunk default branches.
2005-11-02 14:05:49 +00:00
Hartmut Brandt
4c0a7af955
Vendor fix for the build problem of snmp_pf. Move the fallback definitions
...
for U?INT32_{MAX,MIN} from asn1.h into the .c files that actually require
them (the .h file doesn't refer to these macros).
2005-10-05 15:19:56 +00:00
Hartmut Brandt
bb5e059e0d
This commit was generated by cvs2svn to compensate for changes in r150974,
...
which included commits to RCS files with non-trunk default branches.
2005-10-05 15:19:56 +00:00
Hartmut Brandt
86c5d92d71
Add snmp_ntp/Makefile.in to the exclude list.
2005-10-04 14:53:06 +00:00
Hartmut Brandt
e50dd7e071
These files are not needed and were imported by accident in the
...
previous import.
2005-10-04 14:51:55 +00:00
Hartmut Brandt
165c5d31cb
Virgin import of bsnmpd 1.11
2005-10-04 14:41:06 +00:00
Hartmut Brandt
28bd1fdc0b
This commit was generated by cvs2svn to compensate for changes in r150920,
...
which included commits to RCS files with non-trunk default branches.
2005-10-04 14:41:06 +00:00
Hartmut Brandt
9ed6112d51
Apply a vendor patch: silence gcc on arm (alignent when casting pointer).
...
Submitted by: Olivier Houchard <cognet@ci0.org>
2005-05-25 12:00:03 +00:00
Hartmut Brandt
92fd12db24
This commit was generated by cvs2svn to compensate for changes in r146609,
...
which included commits to RCS files with non-trunk default branches.
2005-05-25 12:00:03 +00:00
Hartmut Brandt
69292ced51
Virgin import of bsnmpd 1.10
2005-05-23 11:19:11 +00:00
Hartmut Brandt
fbe4316a67
This commit was generated by cvs2svn to compensate for changes in r146525,
...
which included commits to RCS files with non-trunk default branches.
2005-05-23 11:19:11 +00:00
Hartmut Brandt
a9bfedb789
Vendor patch: fix a bug that was introduced when moving from libisc to
...
libbegemot: the rpoll_start_timer function needs the timeout value in
milli-seconds, not the absolute time when the timer should tick.
2005-04-29 11:02:18 +00:00
Hartmut Brandt
5710486746
This commit was generated by cvs2svn to compensate for changes in r145673,
...
which included commits to RCS files with non-trunk default branches.
2005-04-29 11:02:18 +00:00
Hartmut Brandt
d7eb6b4714
Virgin import of bsnmp 1.9
2005-04-26 16:43:22 +00:00
Hartmut Brandt
646c481fe6
This commit was generated by cvs2svn to compensate for changes in r145557,
...
which included commits to RCS files with non-trunk default branches.
2005-04-26 16:43:22 +00:00
Hartmut Brandt
966fd1ea2f
Don't extract the .gdbinit file from the distribution.
2005-02-28 17:29:10 +00:00
Hartmut Brandt
94caccb357
Virgin import of bsnmpd 1.8
2005-02-28 17:27:11 +00:00
Hartmut Brandt
71651a2743
This commit was generated by cvs2svn to compensate for changes in r142810,
...
which included commits to RCS files with non-trunk default branches.
2005-02-28 17:27:11 +00:00
Hartmut Brandt
e0fd476003
Vendor patch: don't dump core when the config file cannot be opened.
...
Submitted by: Maxim Konovalov <maxim@macomnet.ru>
2004-08-12 19:17:29 +00:00
Hartmut Brandt
181fd12f6c
This commit was generated by cvs2svn to compensate for changes in r133594,
...
which included commits to RCS files with non-trunk default branches.
2004-08-12 19:17:29 +00:00