Home | History | Annotate | Download | only in netinet
History log of /src/sys/netinet/sctputil.c
RevisionDateAuthorComments
 1.21  11-Jul-2025  andvar Fix various typos, mainly in comments and log/error messages.
 1.20  05-Jul-2024  rin sys: Drop redundant NULL check before m_freem(9)

m_freem(9) safely has accepted NULL argument at least since 4.2BSD:
https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c

Compile-tested on amd64/ALL.

Suggested by knakahara@
 1.19  08-Apr-2022  andvar s/postion/position/
 1.18  05-Dec-2021  msaitoh s/measurment/measurement/ in comment.
 1.17  24-Jul-2021  andvar Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.
 1.16  19-Jan-2020  riastradh branches: 1.16.10;
Replace kooky sctp random number generation by cprng_strong32().
 1.15  13-Aug-2019  rjs branches: 1.15.2;
Remove unused checksum code.
 1.14  08-Nov-2018  msaitoh "s/ are are / are /" in comment. No functional change.
 1.13  03-Sep-2018  riastradh Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
 1.12  16-Jan-2017  christos branches: 1.12.12; 1.12.14; 1.12.16;
ip6_sprintf -> IN6_PRINT so that we pass the size.
 1.11  16-Jan-2017  ryo Make ip6_sprintf(), in_fmtaddr(), lla_snprintf() and icmp6_redirect_diag() mpsafe.

Reviewed by ozaki-r@
 1.10  07-Jul-2016  ozaki-r branches: 1.10.2; 1.10.4;
Switch the address list of intefaces to pslist(9)

As usual, we leave the old list to avoid breaking kvm(3) users.
 1.9  10-Jun-2016  ozaki-r Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.
 1.8  22-May-2016  rjs Use const for arguments to sctp_is_same_scope().
 1.7  12-May-2016  ozaki-r Protect ifnet list with psz and psref

The change ensures that ifnet objects in the ifnet list aren't freed during
list iterations by using pserialize(9) and psref(9).

Note that the change adds a pslist(9) for ifnet but doesn't remove the
original ifnet list (ifnet_list) to avoid breaking kvm(3) users. We
shouldn't use the original list in the kernel anymore.
 1.6  26-Apr-2016  rjs Fix build when IPSEC enabled.
 1.5  11-Apr-2016  ozaki-r Sweep unncessary radix.h inclusions
 1.4  03-Apr-2016  mlelstv Replace generic queue macros with IFNET/IFADDR macros.
 1.3  06-Mar-2016  christos PR/50899: David Binderman: optimize memset
 1.2  15-Feb-2016  rtr Fix building of IPv4-Mapped IPv6 addresses.

As discussed on tech-net@ use in6_sin_2_v4mapsin6() to build mapped
addresses.
 1.1  13-Oct-2015  rjs branches: 1.1.2;
Add core networking support for SCTP.
 1.1.2.7  05-Feb-2017  skrll Sync with HEAD
 1.1.2.6  09-Jul-2016  skrll Sync with HEAD
 1.1.2.5  29-May-2016  skrll Sync with HEAD
 1.1.2.4  22-Apr-2016  skrll Sync with HEAD
 1.1.2.3  19-Mar-2016  skrll Sync with HEAD
 1.1.2.2  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.1.2.1  13-Oct-2015  skrll file sctputil.c was added on branch nick-nhusb on 2015-12-27 12:10:07 +0000
 1.10.4.1  21-Apr-2017  bouyer Sync with HEAD
 1.10.2.1  20-Mar-2017  pgoyette Sync with HEAD
 1.12.16.3  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.12.16.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.12.16.1  10-Jun-2019  christos Sync with HEAD
 1.12.14.2  26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.12.14.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.12.12.2  03-Dec-2017  jdolecek update from HEAD
 1.12.12.1  16-Jan-2017  jdolecek file sctputil.c was added on branch tls-maxphys on 2017-12-03 11:39:04 +0000
 1.15.2.1  25-Jan-2020  ad Sync with head.
 1.16.10.1  01-Aug-2021  thorpej Sync with HEAD.

RSS XML Feed