Author: tuexen
Date: Thu May 25 14:27:54 2017
New Revision: 318879
URL: https://svnweb.freebsd.org/changeset/base/318879
Log:
Improve the decoding of the third argument of the socket() call.
Decoding of the third argument depends on the first one. For doing this,
add a corresponding funct
Author: tuexen
Date: Mon May 22 15:29:10 2017
New Revision: 318649
URL: https://svnweb.freebsd.org/changeset/base/318649
Log:
The connect() system call should return -1 and set errno to EAFNOSUPPORT
if it is called on a TCP socket
* with an IPv6 address and the socket is bound to an
I
> On 16. May 2017, at 20:28, John Baldwin wrote:
>
> On Wednesday, May 03, 2017 09:23:14 AM Michael Tuexen wrote:
>> Author: tuexen
>> Date: Wed May 3 09:23:13 2017
>> New Revision: 317732
>> URL: https://svnweb.freebsd.org/changeset/base/317732
>>
&
Author: tuexen
Date: Thu May 4 07:44:07 2017
New Revision: 317789
URL: https://svnweb.freebsd.org/changeset/base/317789
Log:
Add support for socket option names related to the level IPPROTO_UDPLITE.
Modified:
head/lib/libsysdecode/flags.c
head/lib/libsysdecode/mktables
Modified: head/lib/
Author: tuexen
Date: Wed May 3 16:03:33 2017
New Revision: 317750
URL: https://svnweb.freebsd.org/changeset/base/317750
Log:
Add support for sctp_generic_sendmsg() and sctp_generic_recvmsg().
Modified:
head/usr.bin/truss/syscalls.c
Modified: head/usr.bin/truss/syscalls.c
===
Author: tuexen
Date: Wed May 3 15:20:40 2017
New Revision: 317748
URL: https://svnweb.freebsd.org/changeset/base/317748
Log:
Add support for socket option names related to the IPPROTO_IPV6 level.
Modified:
head/lib/libsysdecode/flags.c
head/lib/libsysdecode/mktables
Modified: head/lib/lib
Author: tuexen
Date: Wed May 3 15:03:00 2017
New Revision: 317747
URL: https://svnweb.freebsd.org/changeset/base/317747
Log:
Add support for socket option names related to the IPPROTO_SCTP level.
Modified:
head/lib/libsysdecode/flags.c
head/lib/libsysdecode/mktables
Modified: head/lib/lib
Author: tuexen
Date: Wed May 3 12:26:16 2017
New Revision: 317739
URL: https://svnweb.freebsd.org/changeset/base/317739
Log:
Add support for sendmsg() and recvmsg().
Modified:
head/usr.bin/truss/syscalls.c
Modified: head/usr.bin/truss/syscalls.c
=
Author: tuexen
Date: Wed May 3 12:23:58 2017
New Revision: 317737
URL: https://svnweb.freebsd.org/changeset/base/317737
Log:
Decode the fourth argument of sendto and recvfrom call.
Modified:
head/usr.bin/truss/syscall.h
head/usr.bin/truss/syscalls.c
Modified: head/usr.bin/truss/syscall.h
Author: tuexen
Date: Wed May 3 12:18:09 2017
New Revision: 317736
URL: https://svnweb.freebsd.org/changeset/base/317736
Log:
Add support for [gs]etsockopt().
Modified:
head/usr.bin/truss/syscall.h
head/usr.bin/truss/syscalls.c
Modified: head/usr.bin/truss/syscall.h
===
Author: tuexen
Date: Wed May 3 09:23:13 2017
New Revision: 317732
URL: https://svnweb.freebsd.org/changeset/base/317732
Log:
Decode the third argument of socket().
Modified:
head/usr.bin/truss/syscall.h
head/usr.bin/truss/syscalls.c
Modified: head/usr.bin/truss/syscall.h
=
Author: tuexen
Date: Wed May 3 09:20:36 2017
New Revision: 317731
URL: https://svnweb.freebsd.org/changeset/base/317731
Log:
Add Socklent for handling args of type socklen_t.
Modified:
head/usr.bin/truss/syscall.h
head/usr.bin/truss/syscalls.c
Modified: head/usr.bin/truss/syscall.h
==
Author: tuexen
Date: Wed May 3 09:09:34 2017
New Revision: 317730
URL: https://svnweb.freebsd.org/changeset/base/317730
Log:
Add support for listen() call.
Modified:
head/usr.bin/truss/syscalls.c
Modified: head/usr.bin/truss/syscalls.c
===
Author: tuexen
Date: Sat Apr 29 19:20:50 2017
New Revision: 317597
URL: https://svnweb.freebsd.org/changeset/base/317597
Log:
Allow SCTP to use the hostcache.
This patch allows the MTU stored in the hostcache to be used as an
initial value for SCTP paths. When an ICMP PTB message is recei
Author: tuexen
Date: Sat Apr 29 09:57:27 2017
New Revision: 317592
URL: https://svnweb.freebsd.org/changeset/base/317592
Log:
Don't set the DF-bit on timer based retransmissions.
MFC after:1 week
Modified:
head/sys/netinet/sctp_timer.c
Modified: head/sys/netinet/sctp_timer.c
===
Author: tuexen
Date: Fri Apr 28 15:38:34 2017
New Revision: 317558
URL: https://svnweb.freebsd.org/changeset/base/317558
Log:
Set the DF bit for responses to out-of-the-blue packets.
MFC after:1 week
Modified:
head/sys/netinet/sctp_output.c
Modified: head/sys/netinet/sctp_output.c
=
arm64/crc32c_armv8.S Thu Apr 27 17:53:05 2017
(r317512)
@@ -0,0 +1,78 @@
+/*-
+ * Copyright (c) 2017 Michael Tuexen
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following
Author: tuexen
Date: Wed Apr 26 20:21:05 2017
New Revision: 317464
URL: https://svnweb.freebsd.org/changeset/base/317464
Log:
Fix an issue with MTU calculation if an ICMP messaeg is received
for an SCTP/UDP packet.
MFC after:1 week
Modified:
head/sys/netinet/sctp_usrreq.c
head/sy
Author: tuexen
Date: Wed Apr 26 19:26:40 2017
New Revision: 317457
URL: https://svnweb.freebsd.org/changeset/base/317457
Log:
Use consistently uint32_t for mtu values.
This does not change functionality, but this cleanup is need for further
improvements of ICMP handling.
MFC after:
Author: tuexen
Date: Wed Apr 26 06:20:58 2017
New Revision: 317435
URL: https://svnweb.freebsd.org/changeset/base/317435
Log:
When a SYN-ACK is received in SYN-SENT state, RFC 793 requires the
validation of SEG.ACK as the first step. If the ACK is not acceptable,
a RST segment should be sent
> On 21. Apr 2017, at 05:16, Bruce Evans wrote:
>
> On Thu, 20 Apr 2017, Cy Schubert wrote:
>
> Please trim quotes.
>
>> In message <201704201919.v3kjjyko052...@repo.freebsd.org>, Michael Tuexen
>> write
>> s:
>
> [>> ... 5 line
> On 21. Apr 2017, at 03:43, Cy Schubert wrote:
>
> In message <201704201919.v3kjjyko052...@repo.freebsd.org>, Michael Tuexen
> writes:
>
[...]
> Hi Michael,
>
> This line produced the following on i386:
>
> /opt/src/svn-current/sys/netinet/tc
Author: tuexen
Date: Fri Apr 21 06:05:34 2017
New Revision: 317244
URL: https://svnweb.freebsd.org/changeset/base/317244
Log:
Represent "a syncache overflow hasn't happend yet" by using
-(SYNCOOKIE_LIFETIME + 1) instead of INT64_MIN, since it is
good enough and works when time_t is int32 or
Author: tuexen
Date: Thu Apr 20 19:19:33 2017
New Revision: 317208
URL: https://svnweb.freebsd.org/changeset/base/317208
Log:
Syncoockies can be used in combination with the syncache. If the cache
overflows, syncookies are used.
This patch restricts the usage of syncookies in this case: acce
Author: tuexen
Date: Wed Apr 12 20:27:15 2017
New Revision: 316743
URL: https://svnweb.freebsd.org/changeset/base/316743
Log:
The sysctl variable net.inet.tcp.drop_synfin is not honored in all states,
for example not in SYN-SENT.
This patch adds code to check the sysctl variable in other sta
Author: tuexen
Date: Mon Mar 27 18:20:32 2017
New Revision: 316038
URL: https://svnweb.freebsd.org/changeset/base/316038
Log:
Tweak the Makefiles a bit to allow using "tcp" in MODULES_OVERRIDE
to build the tcp modules.
Sponsored by: Netflix, Inc.
Added:
head/sys/modules/tcp/Makefile
Author: tuexen
Date: Thu Feb 23 18:14:36 2017
New Revision: 314155
URL: https://svnweb.freebsd.org/changeset/base/314155
Log:
TCP window updates are only sent if the window can be increased by at
least 2 * MSS. However, if the receive buffer size is small, this might
be impossible. Add back
Author: tuexen
Date: Wed Feb 1 00:10:29 2017
New Revision: 313032
URL: https://svnweb.freebsd.org/changeset/base/313032
Log:
Ensure that the variable bail is always initialized before used.
MFC after:1 week
Modified:
head/sys/netinet/sctp_output.c
Modified: head/sys/netinet/sctp_ou
Author: tuexen
Date: Tue Jan 31 23:36:31 2017
New Revision: 313031
URL: https://svnweb.freebsd.org/changeset/base/313031
Log:
Take the SCTP common header into account when computing the
space available for chunks. This unbreaks the handling of
ICMPV6 packets indicating "packet too big". It j
Author: tuexen
Date: Tue Jan 31 23:34:02 2017
New Revision: 313030
URL: https://svnweb.freebsd.org/changeset/base/313030
Log:
Remove a duplicate debug statement.
MFC after:1 week
Modified:
head/sys/netinet/sctp_timer.c
Modified: head/sys/netinet/sctp_timer.c
Author: tuexen
Date: Tue Jan 24 21:30:31 2017
New Revision: 312722
URL: https://svnweb.freebsd.org/changeset/base/312722
Log:
Fix a bug where the overhead of the I-DATA chunk was not considered.
MFC after: 1 week
Modified:
head/sys/netinet/sctp_output.c
Modified: head/sys/netinet/sctp_o
Author: tuexen
Date: Fri Jan 13 10:55:26 2017
New Revision: 312063
URL: https://svnweb.freebsd.org/changeset/base/312063
Log:
Ensure that the buffer length and the length provided in the IPv4
header match when using a raw socket to send IPv4 packets and
providing the header. If they don't ma
Author: tuexen
Date: Tue Dec 27 22:14:41 2016
New Revision: 310642
URL: https://svnweb.freebsd.org/changeset/base/310642
Log:
Consistent handling of errors reported from the lower layer.
MFC after:3 days
Modified:
head/sys/netinet/sctp_output.c
Modified: head/sys/netinet/sctp_output
> On 27 Dec 2016, at 09:19, hiren panchasara wrote:
>
> On 12/25/16 at 05:37P, Michael Tuexen wrote:
>> Author: tuexen
>> Date: Sun Dec 25 17:37:18 2016
>> New Revision: 310547
>> URL: https://svnweb.freebsd.org/changeset/base/310547
>>
>> Log:
Author: tuexen
Date: Mon Dec 26 11:06:41 2016
New Revision: 310590
URL: https://svnweb.freebsd.org/changeset/base/310590
Log:
Whitespace changes.
The toolchain for processing the sources has been updated. No functional
change.
MFC after:3 days
Modified:
head/sys/netinet/sctp_a
Author: tuexen
Date: Sun Dec 25 17:37:18 2016
New Revision: 310547
URL: https://svnweb.freebsd.org/changeset/base/310547
Log:
Remove a KASSERT which is not always true.
In case of the empty queue tp->snd_holes and tcp_sackhole_insert()
failing due to memory shortage, tp->snd_holes will be
Author: tuexen
Date: Sat Dec 17 22:31:30 2016
New Revision: 310193
URL: https://svnweb.freebsd.org/changeset/base/310193
Log:
Fix the handling of buffered messages in stream reset deferred handling.
Thanks to Eugen-Andrei Gavriloaie for reporting the issue and providing
substantial help i
Author: tuexen
Date: Sun Dec 11 13:26:35 2016
New Revision: 309851
URL: https://svnweb.freebsd.org/changeset/base/309851
Log:
Ensure that the reported ppid and tsn are taken from the first fragment.
This fixes a bug where the wrong ppid was reported, if
* I-DATA was used on the first frag
Author: tuexen
Date: Fri Dec 9 17:58:07 2016
New Revision: 309744
URL: https://svnweb.freebsd.org/changeset/base/309744
Log:
Don't bundle a SACK chunk with a SHUTDOWN chunk if it is not required.
MFC after:1 week
Modified:
head/sys/netinet/sctp_indata.c
Modified: head/sys/netinet/s
Author: tuexen
Date: Fri Dec 9 17:57:17 2016
New Revision: 309743
URL: https://svnweb.freebsd.org/changeset/base/309743
Log:
Don't send multiple SHUTDOWN chunks in a single packet.
Thanks to Felix Weinrank for making me aware of this issue.
MFC after:1 week
Modified:
head/sys/n
Author: tuexen
Date: Wed Dec 7 22:01:09 2016
New Revision: 309685
URL: https://svnweb.freebsd.org/changeset/base/309685
Log:
Silence a warning produced by newer versions of gcc.
MFC after:1 week
Modified:
head/sys/netinet/sctp_output.c
Modified: head/sys/netinet/sctp_output.c
=
Author: tuexen
Date: Wed Dec 7 21:24:49 2016
New Revision: 309683
URL: https://svnweb.freebsd.org/changeset/base/309683
Log:
Fix a bug in sctp_sendmsgx(), where the sid provided by the user
was hot honored.
MFC after:3 days
Modified:
head/lib/libc/net/sctp_sys_calls.c
Modified: h
Author: tuexen
Date: Wed Dec 7 19:30:59 2016
New Revision: 309682
URL: https://svnweb.freebsd.org/changeset/base/309682
Log:
Cleanup the names of SSN, SID, TSN, FSN, PPID and MID.
This made a couple of bugs visible in handling SSN wrap-arounds
when using DATA chunks. Now bulk transfer se
Author: tuexen
Date: Tue Dec 6 10:21:25 2016
New Revision: 309607
URL: https://svnweb.freebsd.org/changeset/base/309607
Log:
Whitespace changes.
The tools using to generate the sources has been updated and produces
different whitespaces. Commit this seperately to avoid intermixing
thes
Author: tuexen
Date: Fri Dec 2 08:02:31 2016
New Revision: 309397
URL: https://svnweb.freebsd.org/changeset/base/309397
Log:
Fix the handling of TCP FIN-segments in the CLOSED state
When a TCP segment with the FIN bit set was received in the CLOSED state,
a TCP RST-ACK-segment is sent.
Author: tuexen
Date: Sat Nov 19 14:45:08 2016
New Revision: 308832
URL: https://svnweb.freebsd.org/changeset/base/308832
Log:
Ensure that TCP state changes to state-closing are reported via dtrace.
This does not cover state changes from TIME-WAIT.
Reviewed by: gnn
MFC after:
Author: tuexen
Date: Thu Nov 17 08:15:02 2016
New Revision: 308745
URL: https://svnweb.freebsd.org/changeset/base/308745
Log:
Notify the use via setting errno when a TCP RST segment is received
either in the CLOSING or LAST-ACK state.
Reviewed by: hiren
MFC after:3
Author: tuexen
Date: Sun Nov 13 17:55:27 2016
New Revision: 308616
URL: https://svnweb.freebsd.org/changeset/base/308616
Log:
Fix typo.
MFC after: 1 month
Sponsored by: Netflix
Modified:
head/usr.sbin/bhyvectl/bhyvectl.8
Modified: head/usr.sbin/bhyvectl/bhyvectl.8
Author: tuexen
Date: Sat Oct 22 17:21:21 2016
New Revision: 307779
URL: https://svnweb.freebsd.org/changeset/base/307779
Log:
No functional changes, mostly getting the whitespace changes resulting
from an updated formatting tool chain.
MFC after: 1 month
Modified:
head/sys/netinet/sctp
> On 21 Oct 2016, at 16:36, Marcelo Araujo wrote:
>
> Bump date too.
It was bumped, wasn't it?
Best regards
Michael
>
>
> On Oct 21, 2016 10:28 PM, "hiren panchasara"
> wrote:
> On 10/21/16 at 11:29P, Michael Tuexen wrote:
> > Author: tuex
> On 21 Oct 2016, at 17:26, Eric van Gyzen wrote:
>
> On 10/21/2016 09:28, hiren panchasara wrote:
>> On 10/21/16 at 11:29P, Michael Tuexen wrote:
>>> Author: tuexen
>>> Date: Fri Oct 21 11:29:25 2016
>>> New Revision: 307727
>>> URL: https://sv
Author: tuexen
Date: Fri Oct 21 18:45:09 2016
New Revision: 307746
URL: https://svnweb.freebsd.org/changeset/base/307746
Log:
Fix a grammar error.
Reported by:i hiren, vangyzen
MFC after: 1 month
X-MFC:r307727
Sponsored by: Netflix
Modified:
head/share/man/man4/tcp.4
Modif
Author: tuexen
Date: Fri Oct 21 11:29:25 2016
New Revision: 307727
URL: https://svnweb.freebsd.org/changeset/base/307727
Log:
Document the TCP sysctl variables insecure_rst and insecure_syn.
MFC after: 1 month
Sponsored by: netflix
Modified:
head/share/man/man4/tcp.4
Modified: head/sh
Author: tuexen
Date: Fri Oct 21 10:32:57 2016
New Revision: 307726
URL: https://svnweb.freebsd.org/changeset/base/307726
Log:
Make ICMPv6 hard error handling for TCP consistent with the ICMPv4
handling. Ensure that:
* Protocol unreachable errors are handled by indicating ECONNREFUSED
to
Author: tuexen
Date: Thu Oct 13 13:53:01 2016
New Revision: 307217
URL: https://svnweb.freebsd.org/changeset/base/307217
Log:
Mark the socket as un-writable when it is 1-to-1 and the SCTP association
is freed.
MFC after:1 month
Modified:
head/sys/netinet/sctp_pcb.c
Modified: head/
Author: tuexen
Date: Thu Oct 13 13:38:14 2016
New Revision: 307216
URL: https://svnweb.freebsd.org/changeset/base/307216
Log:
Whitespace changes.
MFC after: 1 month
Modified:
head/sys/netinet/sctp_pcb.c
Modified: head/sys/netinet/sctp_pcb.c
==
Author: tuexen
Date: Wed Sep 21 08:28:18 2016
New Revision: 306082
URL: https://svnweb.freebsd.org/changeset/base/306082
Log:
Fix the handling of unordered fragmented user messages using DATA chunks.
There were two bugs:
* There was an accounting bug resulting in reporting a too small a_r
Author: tuexen
Date: Wed Sep 14 14:48:00 2016
New Revision: 305810
URL: https://svnweb.freebsd.org/changeset/base/305810
Log:
Ensure that the IPPROTO_TCP level socket options
* TCP_KEEPINIT
* TCP_KEEPINTVL
* TCP_KEEPIDLE
* TCP_KEEPCNT
always always report the values currently used when
Author: tuexen
Date: Fri Aug 26 07:49:23 2016
New Revision: 304837
URL: https://svnweb.freebsd.org/changeset/base/304837
Log:
Fix a bug, where no SACK is sent when receiving a FORWARD-TSN or
I-FORWARD-TSN chunk before any DATA or I-DATA chunk.
Thanks to Julian Cordes for finding this prob
Author: tuexen
Date: Wed Aug 24 06:22:53 2016
New Revision: 304736
URL: https://svnweb.freebsd.org/changeset/base/304736
Log:
When aborting an association, send the ABORT before notifying the upper
layer. For the kernel this doesn't matter, for the userland stack, it does.
While there, silen
Author: tuexen
Date: Mon Aug 22 01:45:29 2016
New Revision: 304579
URL: https://svnweb.freebsd.org/changeset/base/304579
Log:
Improve the locking when sending user messages.
First, keep a ref count on the stcb after looking it up, as
done in the other lookup cases.
Second, before lookin
Author: tuexen
Date: Mon Aug 22 00:40:45 2016
New Revision: 304573
URL: https://svnweb.freebsd.org/changeset/base/304573
Log:
Remove duplicate code, which is not protected by the appropriate locks.
MFC after: 3 days
Modified:
head/sys/netinet/sctp_usrreq.c
Modified: head/sys/netinet/sct
Author: tuexen
Date: Sat Aug 20 20:15:36 2016
New Revision: 304543
URL: https://svnweb.freebsd.org/changeset/base/304543
Log:
Unbreak sctp_connectx().
MFC after: 3 days
Modified:
head/sys/netinet/sctputil.c
Modified: head/sys/netinet/sctputil.c
==
Author: tuexen
Date: Wed Aug 17 16:56:20 2016
New Revision: 304295
URL: https://svnweb.freebsd.org/changeset/base/304295
Log:
Fix the output for scope statistics.
MFC after: 3 days
Modified:
head/usr.bin/netstat/inet6.c
Modified: head/usr.bin/netstat/inet6.c
Author: tuexen
Date: Wed Aug 17 14:44:47 2016
New Revision: 304292
URL: https://svnweb.freebsd.org/changeset/base/304292
Log:
Use names for SCTP and UDPLite when reporting the input histogram.
MFC after: 3 days
Modified:
head/usr.bin/netstat/inet6.c
Modified: head/usr.bin/netstat/inet6.
Author: tuexen
Date: Mon Aug 15 10:16:08 2016
New Revision: 304146
URL: https://svnweb.freebsd.org/changeset/base/304146
Log:
Ensure that sctp_it_ctl.cur_it does not point to a free object (during
a small time window).
Thanks to Byron Campen for reporting the issue and
suggesting a fix.
Author: tuexen
Date: Wed Aug 10 17:19:33 2016
New Revision: 303927
URL: https://svnweb.freebsd.org/changeset/base/303927
Log:
Improve a consistency check to not detect valid cases for
unordered user messages using DATA chunks as invalid ones.
While there, ensure that error causes are provide
Author: tuexen
Date: Mon Aug 8 13:52:18 2016
New Revision: 303834
URL: https://svnweb.freebsd.org/changeset/base/303834
Log:
Fix the sending of FORWARD-TSN and I-FORWARD-TSN chunks. The
last SID/SSN pair wasn't filled in.
Thanks to Julian Cordes for providing a packetdrill script
triggeri
Author: tuexen
Date: Mon Aug 8 08:20:10 2016
New Revision: 303831
URL: https://svnweb.freebsd.org/changeset/base/303831
Log:
Fix a locking issue found by stress testing with tsctp.
The inp read lock neeeds to be held when considering control->do_not_ref_stcb.
MFC after:3 days
Modified:
Author: tuexen
Date: Sun Aug 7 23:04:46 2016
New Revision: 303819
URL: https://svnweb.freebsd.org/changeset/base/303819
Log:
Consistently check for unsent data on the stream queues.
MFC after:3 days
Modified:
head/sys/netinet/sctp_input.c
head/sys/netinet/sctp_output.c
Modified:
Author: tuexen
Date: Sun Aug 7 12:51:13 2016
New Revision: 303813
URL: https://svnweb.freebsd.org/changeset/base/303813
Log:
Remove stream queue entry consistently from wheel.
While there, improve the handling of drain.
MFC after:3 days
Modified:
head/sys/netinet/sctp_input.c
he
Author: tuexen
Date: Sat Aug 6 15:29:46 2016
New Revision: 303798
URL: https://svnweb.freebsd.org/changeset/base/303798
Log:
Don't modify a structure without holding a reference count on it.
MFC after:3 days
Modified:
head/sys/netinet/sctputil.c
Modified: head/sys/netinet/sctputil.
Author: tuexen
Date: Sat Aug 6 12:51:07 2016
New Revision: 303793
URL: https://svnweb.freebsd.org/changeset/base/303793
Log:
Mark an unused parameter as such.
MFC after:3 days
Modified:
head/sys/netinet/sctp_ss_functions.c
Modified: head/sys/netinet/sctp_ss_functions.c
Author: tuexen
Date: Sat Aug 6 12:33:15 2016
New Revision: 303792
URL: https://svnweb.freebsd.org/changeset/base/303792
Log:
Fix various bugs in relation to the I-DATA chunk support
This is joint work with rrs.
MFC after:3 days
Modified:
head/sys/netinet/sctp_indata.c
head/sy
Author: tuexen
Date: Wed Jul 20 06:29:26 2016
New Revision: 303073
URL: https://svnweb.freebsd.org/changeset/base/303073
Log:
Fix a bug in deferred stream reset processing which results
in using a length field before it is set.
Thanks to Taylor Brandstetter for reporting the issue and
p
Author: tuexen
Date: Tue Jul 19 11:16:44 2016
New Revision: 303025
URL: https://svnweb.freebsd.org/changeset/base/303025
Log:
Use correct order of conditions to avoid NULL deref.
MFC after:3 days
X-MFC with: r302935
Modified:
head/sys/netinet/sctp_indata.c
Modified: head/sys/net
Author: tuexen
Date: Tue Jul 19 09:48:08 2016
New Revision: 303024
URL: https://svnweb.freebsd.org/changeset/base/303024
Log:
netstat and sockstat expect the IPv6 link local addresses to
have an embedded scope. So don't recover.
MFC after:3 days
Modified:
head/sys/netinet/sctp_sysc
Author: tuexen
Date: Sun Jul 17 13:33:35 2016
New Revision: 302950
URL: https://svnweb.freebsd.org/changeset/base/302950
Log:
Add a constant required by RFC 7496.
MFC after:3 days
Modified:
head/sys/netinet/sctp_uio.h
Modified: head/sys/netinet/sctp_uio.h
===
Author: tuexen
Date: Sun Jul 17 13:14:51 2016
New Revision: 302949
URL: https://svnweb.freebsd.org/changeset/base/302949
Log:
Fix the PR-SCTP behaviour.
This is done by rrs@.
MFC after:3 days
Modified:
head/sys/netinet/sctp_constants.h
head/sys/netinet/sctp_header.h
head/sys/ne
Author: tuexen
Date: Sun Jul 17 11:43:27 2016
New Revision: 302945
URL: https://svnweb.freebsd.org/changeset/base/302945
Log:
Don't duplicate code for SCTP, just use the ones used for UDP and TCP.
This fixes a bug with link local addresses. This will require and
upcoming change in the ker
Author: tuexen
Date: Sun Jul 17 08:31:21 2016
New Revision: 302942
URL: https://svnweb.freebsd.org/changeset/base/302942
Log:
Add missing sctps_reasmusrmsgs counter.
Joint work with rrs@.
MFC after:3 days
Modified:
head/sys/netinet/sctp_indata.c
Modified: head/sys/netinet/sctp_indata
Author: tuexen
Date: Sat Jul 16 12:25:37 2016
New Revision: 302935
URL: https://svnweb.freebsd.org/changeset/base/302935
Log:
Deal with a portential memory allocation failure, which was reported
by the clang static code analyzer.
Joint work with rrs@.
MFC after:3 days
Modified:
h
Author: tuexen
Date: Sat Jul 16 08:11:43 2016
New Revision: 302930
URL: https://svnweb.freebsd.org/changeset/base/302930
Log:
Don't free a data chunk twice.
Found by the clang static code analyzer running for the userland stack.
MFC after:3 days
Modified:
head/sys/netinet/sctp_inda
Author: tuexen
Date: Sat Jul 16 07:48:01 2016
New Revision: 302928
URL: https://svnweb.freebsd.org/changeset/base/302928
Log:
Address a potential memory leak found a the clang static code analyzer
running on the userland stack.
MFC after:3 days
Modified:
head/sys/netinet/sctp_auth.
Author: tuexen
Date: Fri Jul 15 23:13:57 2016
New Revision: 302917
URL: https://svnweb.freebsd.org/changeset/base/302917
Log:
Ensure that the -a, -W, -L options for SCTP behave similar
as for TCP.
MFC after:3 days
Modified:
head/usr.bin/netstat/sctp.c
Modified: head/usr.bin/netsta
Author: tuexen
Date: Fri Jul 15 17:40:34 2016
New Revision: 302907
URL: https://svnweb.freebsd.org/changeset/base/302907
Log:
When calling netstat -Laptcp the local address values are not aligned
with the corresponding entry in the table header.
r295136 increased the value width from 14 to 3
Author: tuexen
Date: Fri Jul 15 15:55:36 2016
New Revision: 302904
URL: https://svnweb.freebsd.org/changeset/base/302904
Log:
Fix a bug which results in a core dump when running netstat with
the -W option and having a listening SCTP socket.
The bug was introduced in r279122 when adding suppo
Author: tuexen
Date: Thu Jun 30 06:06:35 2016
New Revision: 302293
URL: https://svnweb.freebsd.org/changeset/base/302293
Log:
This patch fixes two bugs related to the setting of the I-Bit
for SCTP DATA and I-DATA chunks.
* For fragmented user messages, set the I-Bit only on the last
frag
Author: tuexen
Date: Sun Jun 26 16:38:42 2016
New Revision: 302212
URL: https://svnweb.freebsd.org/changeset/base/302212
Log:
This patch fixes two bugs related to the SCTP message recovery
for messages which have been put on the send queue:
* Do not report any DATA or I-DATA chunk padding.
Author: tuexen
Date: Sun Jun 26 12:41:02 2016
New Revision: 302207
URL: https://svnweb.freebsd.org/changeset/base/302207
Log:
This patch fixes a locking bug when a send() call blocks
on an SCTP socket and the association is aborted by the
peer.
Approved by: re (kib)
MFC after:1 w
Author: tuexen
Date: Sat Jun 25 12:46:18 2016
New Revision: 302197
URL: https://svnweb.freebsd.org/changeset/base/302197
Log:
This patch fixes two bugs:
* sctp46, tcp46, and udp46 sockets are displayed as such and not as
sctp4 6, tcp4 6, udp4 6. This bug was introduced in
http://svnweb
Author: tuexen
Date: Thu Jun 23 19:27:29 2016
New Revision: 302148
URL: https://svnweb.freebsd.org/changeset/base/302148
Log:
Fix a bug in the handling of non-blocking SCTP 1-to-1 sockets. When using
this code in the userland stack, it could result in a loop. This happened on
iOS.
However,
Author: tuexen
Date: Thu Jun 23 09:13:15 2016
New Revision: 302138
URL: https://svnweb.freebsd.org/changeset/base/302138
Log:
Don't consider the socket when processing an incoming ICMP/ICMP6 packet,
which was triggered by an SCTP packet. Whether a socket exists, is just
not relevant.
Ap
Author: tuexen
Date: Wed Jun 8 17:57:42 2016
New Revision: 301666
URL: https://svnweb.freebsd.org/changeset/base/301666
Log:
Use a separate MID counter for ordered und unordered messages for each
outgoing stream.
Thanks to Jens Hoelscher for reporting the issue.
MFC after: 1 week
Author: tuexen
Date: Fri Jun 3 07:43:04 2016
New Revision: 301246
URL: https://svnweb.freebsd.org/changeset/base/301246
Log:
Get struct sctp_net_route in-sync with struct route again.
Modified:
head/sys/netinet/sctp_structs.h
Modified: head/sys/netinet/sctp_structs.h
===
Author: tuexen
Date: Fri Jun 3 07:24:41 2016
New Revision: 301244
URL: https://svnweb.freebsd.org/changeset/base/301244
Log:
Store the peers vtag in host byte order in the cookie, since all
consumers expect it that way.
This fixes the vtag when sending en ERROR chunk.
MFC after:1 w
Author: tuexen
Date: Thu Jun 2 17:31:37 2016
New Revision: 301216
URL: https://svnweb.freebsd.org/changeset/base/301216
Log:
Fix two types which resulted in setting the address long wrong
for IPv6 addresses.
Reported by: pfg@
CID: 1347086
MFC after:1 week
Modified:
h
Author: tuexen
Date: Mon May 30 18:24:23 2016
New Revision: 301000
URL: https://svnweb.freebsd.org/changeset/base/301000
Log:
Add PR_CONNREQUIRED for SOCK_STREAM sockets using SCTP.
This is required to signal connetion setup on non-blocking sockets
via becoming writable. This still allows
Author: tuexen
Date: Mon May 30 11:18:39 2016
New Revision: 300995
URL: https://svnweb.freebsd.org/changeset/base/300995
Log:
Fix a byte order issue for the scope stored in the SCTP cookie.
MFC after:1 week
Modified:
head/sys/netinet/sctp_output.c
Modified: head/sys/netinet/sctp_out
> On 26 May 2016, at 23:33, Gleb Smirnoff wrote:
>
> Michael,
>
> On Wed, May 25, 2016 at 01:48:26PM +, Michael Tuexen wrote:
> M> Author: tuexen
> M> Date: Wed May 25 13:48:26 2016
> M> New Revision: 300679
> M> URL: https://svnweb.freebsd.org/ch
601 - 700 of 1365 matches
Mail list logo