Home | History | Annotate | Download | only in netinet
History log of /src/sys/netinet/dccp_usrreq.c
RevisionDateAuthorComments
 1.27  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.26  04-Nov-2022  ozaki-r branches: 1.26.8;
inpcb: rename functions to in6pcb_*
 1.25  04-Nov-2022  ozaki-r inpcb: rename functions to inpcb_*

Inspired by rmind-smpnet patches.
 1.24  28-Oct-2022  ozaki-r Adjust dccp and sctp for struct inpcb separation
 1.23  28-Oct-2022  ozaki-r Adjust pf, wg, dccp and sctp for struct inpcb integration
 1.22  04-Dec-2021  andvar fix typos in comments and log messages, mainly in establish(ed).
 1.21  16-Dec-2018  christos sbspace() does not return negative values anymore and that broke OOB data
sending. Instead of depending on negative values, account for the 1024
bytes sosend() adds so that it can use all the space here in a separate
function sbspace_oob(). Idea from mlelstv@
 1.20  14-Sep-2018  maxv Use non-variadic function pointer in protosw::pr_input.
 1.19  18-May-2018  maxv branches: 1.19.2;
IP6_EXTHDR_GET -> M_REGION_GET, no functional change.
 1.18  03-May-2018  maxv Remove m_copy completely.
 1.17  08-Feb-2018  dholland branches: 1.17.2;
Typos.
 1.16  07-May-2017  rjs branches: 1.16.8;
Change bzero -> memset, bcopy -> memcpy.
 1.15  07-May-2017  rjs Change SPL around call to in_pcbbind().
 1.14  07-May-2017  rjs Remove some foreign conditional code, NFC intended.
 1.13  03-Mar-2017  ozaki-r branches: 1.13.4;
Pass inpcb/in6pcb instead of socket to ip_output/ip6_output

- Passing a socket to Layer 3 is layer violation and even unnecessary
- The change makes codes of callers and IPsec a bit simple
 1.12  16-Jan-2017  christos 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  13-Dec-2016  ozaki-r branches: 1.10.2;
Remove unnecessary inclusions of nd6.h
 1.9  07-Jul-2016  msaitoh branches: 1.9.2;
KNF. Remove extra spaces. No functional change.
 1.8  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.7  24-Aug-2015  pooka sprinkle _KERNEL_OPT
 1.6  02-May-2015  rtr make connect syscall use sockaddr_big and modify pr_{send,connect}
nam parameter type from buf * to sockaddr *.

final commit for parameter type changes to protocol user requests

* bump kernel version to 7.99.15 for parameter type changes to pr_{send,connect}
 1.5  27-Apr-2015  ozaki-r Introduce in6_selecthlim_rt to consolidate an idiom for rt->rt_ifp

It consolidates a scattered routine:
(rt = rtcache_validate(&in6p->in6p_route)) != NULL ? rt->rt_ifp : NULL
 1.4  26-Apr-2015  rtr remove pr_generic from struct pr_usrreqs and all implementations of
pr_generic in protocols.

bump to 7.99.13

approved by rmind@
 1.3  24-Apr-2015  rtr make accept, getsockname and getpeername syscalls use sockaddr_big and modify
pr_{accept,sockname,peername} nam parameter type from mbuf * to sockaddr *.

* retained use of mbuftypes[MT_SONAME] for now.
* bump to netbsd version 7.99.12 for parameter type change.

patch posted to tech-net@ 2015/04/19
 1.2  04-Apr-2015  rtr branches: 1.2.2;
* update dccp_bind for struct mbuf * to struct sockaddr * parameter change
* pass NULL instead of casting 0 to a pointer when calling in_pcbbind()
 1.1  10-Feb-2015  rjs Add DCCP protocol support from KAME.
 1.2.2.7  28-Aug-2017  skrll Sync with HEAD
 1.2.2.6  05-Feb-2017  skrll Sync with HEAD
 1.2.2.5  09-Jul-2016  skrll Sync with HEAD
 1.2.2.4  22-Sep-2015  skrll Sync with HEAD
 1.2.2.3  06-Jun-2015  skrll Sync with HEAD
 1.2.2.2  06-Apr-2015  skrll Sync with HEAD
 1.2.2.1  04-Apr-2015  skrll file dccp_usrreq.c was added on branch nick-nhusb on 2015-04-06 15:18:22 +0000
 1.9.2.2  20-Mar-2017  pgoyette Sync with HEAD
 1.9.2.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.10.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.13.4.1  11-May-2017  pgoyette Sync with HEAD
 1.16.8.2  03-Dec-2017  jdolecek update from HEAD
 1.16.8.1  07-May-2017  jdolecek file dccp_usrreq.c was added on branch tls-maxphys on 2017-12-03 11:39:03 +0000
 1.17.2.3  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.17.2.2  30-Sep-2018  pgoyette Ssync with HEAD
 1.17.2.1  21-May-2018  pgoyette Sync with HEAD
 1.19.2.1  10-Jun-2019  christos Sync with HEAD
 1.26.8.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed