Home | History | Annotate | Download | only in netinet
History log of /src/sys/netinet/icmp_var.h
RevisionDateAuthorComments
 1.32  29-Aug-2022  knakahara Add sysctl entry to control to send routing message for RTM_DYNAMIC.

Some routing daemons require such routing message to keep coherency.

If we want to let kernel send such message, set net.inet.icmp.dynamic_rt_msg=1
for IPv4, net.inet6.icmp6.dynamic_rt_msg=1 for IPv6.
Default(=0) is the same as before, that is, not send such routing message.
 1.31  22-Aug-2018  msaitoh - Cleanup for dynamic sysctl:
- Remove unused *_NAMES macros for sysctl.
- Remove unused *_MAXID for sysctls.
- Move CTL_MACHDEP sysctl definitions for m68k into m68k/include/cpu.h and
use them on all m68k machines.
 1.30  18-Feb-2015  christos branches: 1.30.16; 1.30.18;
PR/49676: Ryo Shimizu: ICMP_STATINC() buffer overflows
XXX: pullup-7
 1.29  24-Dec-2011  christos branches: 1.29.2; 1.29.6; 1.29.8; 1.29.16; 1.29.22; 1.29.24;
put the histograms last and make them autosize (breaks compat with netstat).
 1.28  07-Dec-2009  christos branches: 1.28.12; 1.28.16;
PR/42243: Yasuoka Masahiko: Add "net.inet.icmp.bmcastecho" sysctl support,
to disable icmp replies to the broadcast address.
 1.27  12-Apr-2008  thorpej branches: 1.27.4;
Make IP, TCP, UDP, and ICMP statistics per-CPU. The stats are collated
when the user requests them via sysctl.
 1.26  06-Apr-2008  thorpej Change ICMP stats from a structure to an array of uint64_t's.

Note: This is ABI-compatible with the old icmpstat structure; old netstat
binaries will continue to work properly.
 1.25  10-Dec-2005  elad branches: 1.25.70;
Multiple inclusion protection, as suggested by christos@ on tech-kern@
few days ago.
 1.24  05-Aug-2005  elad Add sysctls for IP, ICMP, TCP, and UDP statistics.
 1.23  03-Aug-2004  cube branches: 1.23.12;
Remove a common (icmpstat).
 1.22  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.21  30-Jun-2002  thorpej branches: 1.21.6;
Changes to allow the IPv4 and IPv6 layers to align headers themseves,
as necessary:
* Implement a new mbuf utility routine, m_copyup(), is is like
m_pullup(), except that it always prepends and copies, rather
than only doing so if the desired length is larger than m->m_len.
m_copyup() also allows an offset into the destination mbuf, which
allows space for packet headers, in the forwarding case.
* Add *_HDR_ALIGNED_P() macros for IP, IPv6, ICMP, and IGMP. These
macros expand to 1 if __NO_STRICT_ALIGNMENT is defined, so that
architectures which do not have strict alignment constraints don't
pay for the test or visit the new align-if-needed path.
* Use the new macros to check if a header needs to be aligned, or to
assert that it already is, as appropriate.

Note: This code is still somewhat experimental. However, the new
code path won't be visited if individual device drivers continue
to guarantee that packets are delivered to layer 3 already properly
aligned (which are rules that are already in use).
 1.20  09-Jun-2002  itojun whitespace
 1.19  30-Oct-2001  kml branches: 1.19.8;
Add in support for timing out IPv4 routes added due to redirects,
as discussed in tech-net several weeks ago. It turned out that
KAME had already added this functionality to the IPv6 stack, so
I followed their example in adding the sysctl variables
net.inet.icmp.rediraccept and net.inet.icmp.redirtimeout.
 1.18  18-Oct-2000  itojun branches: 1.18.2; 1.18.4; 1.18.8;
count successful path MTU changes. good for debugging.
(there could be some discussion on when to increase the counter...)
 1.17  28-Jul-2000  itojun nuke the following sysctl variables. "ppsratelimit" should work better.
need to recompile sbin/sysctl after updating /usr/include.
net.inet.tcp.rstratelimit
net.inet.icmp.errratelimit
net.inet6.icmp6.errratelimit
 1.16  10-Jul-2000  itojun implement net.inet.icmp.errppslimit.
make default value for net.inet.icmp.erratelimit to 0, as < 10ms value
does not do the right thing.
 1.15  10-Jun-2000  darrenr branches: 1.15.2;
add icmpreturndatabytes kernel variable (default 8) which specifies the
number of extra data bytes to return in ICMP error messages. This is
also available via sysctl as net.icmp.returndatabytes and is limited to
[8,512].
 1.14  15-Feb-2000  thorpej branches: 1.14.2;
Add ICMP error rate limiting, based on the same for ICMP6.

Note, we're reusing the previously unused slot for "MTU discovery" (which
was moved to the "net.inet.ip" branch of the sysctl tree quite some time
ago).
 1.13  19-Nov-1999  bouyer Update protocoles and interfaces stats counters to 64bit.
RTM_IFINFO is now 0xf, 0xe is RTM_OIFINFO which returns the old (if_msghdr14)
struct with 32bit counters (binary compat, conditioned on COMPAT_14).
Same for sysctl: node 3 is renamed NET_RT_OIFLIST, NET_RT_IFLIST is now node 4.
Change rt_msg1() to add an mbuf to the mbuf chain instead of just panic()
when the message is larger than MHLEN.
 1.12  10-Feb-1998  perry branches: 1.12.14; 1.12.20;
add/cleanup multiple inclusion protection.
 1.11  18-Oct-1997  kml remove extraneous icmp_do_mtudisc
 1.10  18-Oct-1997  kml change sysctl net.inet.icmp.mtudisc to net.inet.ip.mtudisc
 1.9  17-Oct-1997  kml Path MTU Discovery support. This is turned off by default.
Use sysctl -w net.inet.icmp.mtudisc=1 to turn on.
Still to come: path removal after some period, black hole detection
 1.8  26-Mar-1995  jtc KERNEL -> _KERNEL
 1.7  29-Jun-1994  cgd New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
 1.6  13-May-1994  mycroft Update to 4.4-Lite networking code, with a few local changes.
 1.5  10-Jan-1994  mycroft Change the counters to be all the same type -- u_long.
 1.4  08-Jan-1994  mycroft Fix some inconsistent spacing; spaces at the end of lines, etc.
 1.3  20-May-1993  cgd more rcsid additions and file header cleanups
 1.2  19-Apr-1993  mycroft Add consistent multiple-inclusion protection.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  05-Jan-1998  thorpej Import sys/netinet from 4.4BSD-Lite for reference purposes.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.12.20.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.12.14.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.14.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.15.2.1  16-Aug-2000  itojun pullup (approved by releng-1-5)

switch from net.inet*.*.*ratelimit to net.inet*.*.ppslimit.

(tags are rough estimate - we had some try-and-error in main trunc)
sys/netinet/icmp6.h 1.9 -> 1.11
sys/netinet/icmp_var.h 1.15 -> 1.17
sys/netinet/in_proto.c 1.39 -> 1.42
sys/netinet/ip_icmp.c 1.50 -> 1.51, 1.52 -> 1.54
sys/netinet/tcp_input.c 1.111 -> 1.112, 1.115 -> 1.117
sys/netinet/tcp_usrreq.c 1.52 -> 1.53
sys/netinet/tcp_var.h 1.72 -> 1.75
sys/netinet6/icmp6.c 1.34 -> 1.35, 1.36 -> 1.38
sys/netinet6/in6_proto.c 1.17 -> 1.19
 1.18.8.1  12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.18.4.3  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.18.4.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.18.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.18.2.3  01-Aug-2002  nathanw Catch up to -current.
 1.18.2.2  20-Jun-2002  nathanw Catch up to -current.
 1.18.2.1  14-Nov-2001  nathanw Catch up to -current.
 1.19.8.2  15-Jul-2002  gehenna catch up with -current.
 1.19.8.1  20-Jun-2002  gehenna catch up with -current.
 1.21.6.6  11-Dec-2005  christos Sync with head.
 1.21.6.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.21.6.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.21.6.3  18-Sep-2004  skrll Sync with HEAD.
 1.21.6.2  12-Aug-2004  skrll Sync with HEAD.
 1.21.6.1  03-Aug-2004  skrll Sync with HEAD
 1.23.12.1  21-Jun-2006  yamt sync with head.
 1.25.70.1  02-Jun-2008  mjf Sync with HEAD.
 1.27.4.1  11-Mar-2010  yamt sync with head
 1.28.16.1  18-Feb-2012  mrg merge to -current.
 1.28.12.1  17-Apr-2012  yamt sync with head
 1.29.24.1  06-Apr-2015  skrll Sync with HEAD
 1.29.22.1  21-Feb-2015  martin Pull up following revision(s) (requested by christos in ticket #537):
sys/netinet/icmp_var.h: revision 1.30
sys/netinet/ip_icmp.h: revision 1.34
PR/49676: Ryo Shimizu: ICMP_STATINC() buffer overflows
XXX: pullup-7
 1.29.16.1  21-Feb-2015  martin Pull up following revision(s) (requested by christos in ticket #1258):
sys/netinet/icmp_var.h: revision 1.30
sys/netinet/ip_icmp.h: revision 1.34
PR/49676: Ryo Shimizu: ICMP_STATINC() buffer overflows
 1.29.8.1  21-Feb-2015  martin Pull up following revision(s) (requested by christos in ticket #1258):
sys/netinet/icmp_var.h: revision 1.30
sys/netinet/ip_icmp.h: revision 1.34
PR/49676: Ryo Shimizu: ICMP_STATINC() buffer overflows
 1.29.6.1  03-Dec-2017  jdolecek update from HEAD
 1.29.2.1  21-Feb-2015  martin Pull up following revision(s) (requested by christos in ticket #1258):
sys/netinet/icmp_var.h: revision 1.30
sys/netinet/ip_icmp.h: revision 1.34
PR/49676: Ryo Shimizu: ICMP_STATINC() buffer overflows
 1.30.18.1  10-Jun-2019  christos Sync with HEAD
 1.30.16.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

RSS XML Feed