History log of /netbsd-src/sys/netinet/tcp_subr.c (Results 1 – 25 of 297)
Revision Date Author Comments
# 481d3881 05-Jul-2024 rin <rin@NetBSD.org>

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

Co

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@

show more ...


# b000e63f 04-Nov-2022 ozaki-r <ozaki-r@NetBSD.org>

inpcb: rename functions to in6pcb_*


# 2ba9f052 04-Nov-2022 ozaki-r <ozaki-r@NetBSD.org>

inpcb: rename functions to inpcb_*

Inspired by rmind-smpnet patches.


# 24c607fd 31-Oct-2022 ozaki-r <ozaki-r@NetBSD.org>

tcp: fix wrong logic in tcp_drop

Pointed out by mlelstv@


# a071c829 28-Oct-2022 ozaki-r <ozaki-r@NetBSD.org>

inpcb: separate inpcb again to reduce the size of PCB for IPv4

The data size of PCB for IPv4 increased because of the merge of
struct in6pcb. The change decreases the size to the original size by
s

inpcb: separate inpcb again to reduce the size of PCB for IPv4

The data size of PCB for IPv4 increased because of the merge of
struct in6pcb. The change decreases the size to the original size by
separating struct inpcb (again). struct in4pcb and in6pcb that embed
struct inpcb are introduced.

Even after the separation, users don't need to realize the separation
and only have to use some macros to access dedicated data. For example,
inp->inp_laddr is now accessed through in4p_laddr(inp).

show more ...


# 0e390eee 28-Oct-2022 ozaki-r <ozaki-r@NetBSD.org>

inpcb: integrate data structures of PCB into one

Data structures of network protocol control blocks (PCBs), i.e.,
struct inpcb, in6pcb and inpcb_hdr, are not organized well. Users of
the data struc

inpcb: integrate data structures of PCB into one

Data structures of network protocol control blocks (PCBs), i.e.,
struct inpcb, in6pcb and inpcb_hdr, are not organized well. Users of
the data structures have to handle them separately and thus the code
is cluttered and duplicated.

The commit integrates the data structures into one, struct inpcb. As a
result, users of PCBs only have to handle just one data structure, so
the code becomes simple.

One drawback is that the data size of PCB for IPv4 increases by 40 bytes
(from 248 bytes to 288 bytes).

show more ...


# 3761620b 20-Sep-2022 ozaki-r <ozaki-r@NetBSD.org>

tcp: separate syn cache stuffs into tcp_syncache.[ch] files

No functional change.


# 65b54797 27-Jun-2022 knakahara <knakahara@NetBSD.org>

Remove confusable comment.

The comment was added in tcp_subr.c:r1.124 (2002/03/15).
tcp_drain() is called from softint context only, now.


# 40be87ae 31-Jul-2021 andvar <andvar@NetBSD.org>

s/threshhold/threshold


# 9c922361 09-Mar-2021 christos <christos@NetBSD.org>

Move the offset addition in one place and mask the random generated value
to make sure that the isn is monotonic.


# 2f7bd770 08-Mar-2021 christos <christos@NetBSD.org>

Remove the unused "addin" argument (it was always 0) and go back using
a random iss by default (instead of rfc1948)


# 32fcdf5a 08-Mar-2021 christos <christos@NetBSD.org>

Don't increment the iss sequence on each connection because it exposes
information (Amit Klein)


# e4aa255b 07-Mar-2021 christos <christos@NetBSD.org>

netinet: Enable RFC 1948 pseudorandom TCP ISS selection by default.
(from riastradh)


# b05648aa 12-Jun-2020 roy <roy@NetBSD.org>

Remove in-kernel handling of Router Advertisements

This is much better handled by a user-land tool.
Proposed on tech-net here:
https://mail-index.netbsd.org/tech-net/2020/04/22/msg007766.html

Note

Remove in-kernel handling of Router Advertisements

This is much better handled by a user-land tool.
Proposed on tech-net here:
https://mail-index.netbsd.org/tech-net/2020/04/22/msg007766.html

Note that the ioctl SIOCGIFINFO_IN6 no longer sets flags. That now
needs to be done using the pre-existing SIOCSIFINFO_FLAGS ioctl.

Compat is fully provided where it makes sense, but trying to turn on
RA handling will obviously throw an error as it no longer exists.

Note that if you use IPv6 temporary addresses, this now needs to be
turned on in dhcpcd.conf(5) rather than in sysctl.conf(5).

show more ...


# 4952945b 06-Aug-2019 riastradh <riastradh@NetBSD.org>

Clamp tcp timer quantities to reasonable ranges.

Reported-by: syzbot+259675123340bf46a6de@syzkaller.appspotmail.com


# b9e11ce7 27-Dec-2018 maxv <maxv@NetBSD.org>

Remove unused arguments.


# d1579b2d 03-Sep-2018 riastradh <riastradh@NetBSD.org>

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 n

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!)

show more ...


# b4370c2b 23-May-2018 maxv <maxv@NetBSD.org>

Add XXX.


# 5d73803e 03-May-2018 maxv <maxv@NetBSD.org>

Remove now unused tcpip.h includes. Some were already unused before.


# e62bbe68 18-Apr-2018 maxv <maxv@NetBSD.org>

Remove unused netipsec/xform.h includes.


# 1da467ec 18-Apr-2018 maxv <maxv@NetBSD.org>

Remove misleading comments.


# c2ea7669 29-Mar-2018 maxv <maxv@NetBSD.org>

Remove TCPREASS_DEBUG. It was introduced 20 years ago when the reassembler
was being developed, but it's irrelevant today. Makes the code clearer.


# 4ff27f25 29-Mar-2018 maxv <maxv@NetBSD.org>

Misc changes; no real functional change.


# 6ad323e9 29-Mar-2018 maxv <maxv@NetBSD.org>

Remove #ifdef INET. Same as tcp_input.c. Makes the code easier to
understand.

Also make tcp6_mtudisc() static in tcp_subr.c.


# c3c5f130 26-Feb-2018 maxv <maxv@NetBSD.org>

Dedup: merge ipsec4_hdrsiz and ipsec6_hdrsiz into ipsec_hdrsiz.

ok ozaki-r@


12345678910>>...12