summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r287179:tuexen2016-01-171-3/+2
| | | | Remove a variable which is set but never used.
* MFC r293781:ian2016-01-175-73/+248
| | | | | | | | | Restore uart PPS signal capture polarity to its historical norm, and add an option to invert the polarity in software. Also add an option to capture very narrow pulses by using the hardware's MSR delta-bit capability of latching line state changes. Relnotes: yes
* MFH (r287178): print status on first line, not last.des2016-01-171-11/+12
| | | | This revision has previously been (incorrectly) recorded as merged.
* MFC r285651:tuexen2016-01-171-2/+2
| | | | | | | Move assignments around to avoid a false-positive uninitialized variable warning which broke the sparc64 build. This is work from des@ and MFCing was discussed with him.
* MFC r285630:tuexen2016-01-172-8/+33
| | | | | | | Add a -s option which adds a column listing the connection state if applicable (currently only for TCP). This is work from des@ and MFCing was discussed with him.
* MFC r290641:tuexen2016-01-171-4/+7
| | | | | | Add support for SCTP checksum offloading for the 82580 controller similar to the 82576 controller. Tested with Intel i340 cards.
* MFC r294057:tuexen2016-01-171-2/+6
| | | | | | | | | | | | | | | | | | | | Fix a bug in INIT handling on accepted 1-to-1 style sockets when the listener is closed. This fix allows the following packetdrill test to pass: // Setup a connected, blocking 1-to-1 style socket +0.0 socket(..., SOCK_STREAM, IPPROTO_SCTP) = 3 // Check the handshake with en empty(!) cookie +0.0 bind(3, ..., ...) = 0 +0.0 listen(3, 1) = 0 +0.0 < sctp: INIT[flgs=0, tag=1, a_rwnd=1500, os=1, is=1, tsn=1] +0.0 > sctp: INIT_ACK[flgs=0, tag=2, a_rwnd=..., os=..., is=..., tsn=1, ...] +0.0 < sctp: COOKIE_ECHO[flgs=0, len=..., val=...] +0.0 > sctp: COOKIE_ACK[flgs=0] +0.0 accept(3, ..., ...) = 4 +0.0 close(3) = 0 // Inject an INIT chunk and expect an INIT-ACK +0.0 < sctp: INIT[flgs=0, tag=3, a_rwnd=1500, os=1, is=1, tsn=1] +0.0 > sctp: INIT_ACK[flgs=0, tag=..., a_rwnd=..., os=..., is=..., tsn=..., ...]
* MFC r293913:tuexen2016-01-171-2/+16
| | | | | Fail the SCTP_GET_ASSOC_NUMBER and SCTP_GET_ASSOC_ID_LIST socket options for 1-to-1 style sockets as specified in RFC 6458.
* MFC r293828:tuexen2016-01-171-8/+9
| | | | | Store the timer type for logging, because the timer can be freed during processing the timerout.
* MFC r292734:tuexen2016-01-171-4/+1
| | | | | | | Don't implicitly terminate a user message when moving it to the send_queue and the socket is closed. This results in strange race conditions for the application. While there, remove a stray character.
* MFC r292558:tuexen2016-01-171-0/+1
| | | | Stop processing of a SACK when the association has been aborted.
* MFC r292060:tuexen2016-01-173-42/+0
| | | | | | | | | Retire sctp_validate_no_locks(). This routine checks that there are no locks held for an inp, without having any lock on the inp. This breaks if the inp goes away when it is called. This happens on stress tests on a RPi B+.
* MFC r291904:tuexen2016-01-178-9/+14
| | | | | | | | | Fix the allocation of outgoing streams: * When processing a cookie, use the number of streams announced in the INIT-ACK. * When sending an INIT-ACK for an existing association, use the value from the association, not from the end-point.
* MFC r291752:tuexen2016-01-171-0/+1
| | | | | Fix a bug where a stream reset request wasn't retranmitted when the peer indicated "In progress".
* MFC r291700:tuexen2016-01-174-3/+24
| | | | Ensure that outgoing streams get reset when they run dry.
* MFC r291659:tuexen2016-01-171-1/+1
| | | | Minor cleanup. No functional change.
* MFC r291651:tuexen2016-01-171-3/+7
| | | | | Adjust the MTU when accepting an SCTP association using UDP encapsulation.
* MFC r291410:tuexen2016-01-171-4/+8
| | | | | Take also the send queue and sent queue into account when triggering the sending of outgoing stream reset requests.
* MFC r291376:tuexen2016-01-171-3/+12
| | | | | | When the sending of an SCTP outgoing stream reset request fails, don't report it to the user since all stream have been marked as pending.
* MFC r288297 (userland part).melifaro2016-01-172-1/+6
| | | | | | | | | | | If ever MFC is done for the new lltable code, this change will miminise ABI breakage. rtsock requests for deleting interface address lles started to return EPERM instead of old "ignore-and-return 0" in r287789. This broke arp -da / ndp -cn behavior (they exit on rtsock command failure). Fix this by translating LLE_IFADDR to RTM_PINNED flag, passing it to userland and making arp/ndp ignore these entries in batched delete.
* MFC r292831: Add SFF-8024 Extended Specification Compliance.melifaro2016-01-172-5/+45
| | | | | Submitted by: markb_mellanox.com Differential Revision: https://reviews.freebsd.org/D4666
* MFH (r280630): remove all traces of SSLv2 supportdes2016-01-166-51/+67
| | | | | | | | | | | MFH (r285141): remove unused variable MFH (r288217): correctly check return value from getaddrinfo(3) MFH (r289419): fix bugs in HTTPS tunnelling MFH (r289420): use fopen()'s "e" mode instead of fcntl for close-on-exec MFH (r291453, r291461): use .netrc for http servers and proxies MFH (r292330, r292332): reset bufpos to 0 after refilling in chunked mode PR: 194483 199801 193740 204771
* MFH (r292408): use correct length in calloc() calldes2016-01-161-1/+1
|
* MFH (r262530): fix is_upper() predicate (almost two years late...)des2016-01-1612-11/+144
| | | | | | | | | MFH (r271614): remove incorrect svn properties MFH (r274145): cast-qual bugs in tests MFH (r288070): restore correct module search path semantics Also merge upstream r854, committed to head as part of r280031, which fixes cast-qual bugs in libpam itself.
* MFH (r292206): upgrade to Unbound 1.5.7des2016-01-1683-606/+1833
| | | | MFH (r292135): run configure script with correct compiler
* MFC r291364:tuexen2016-01-161-0/+12
| | | | | | | | | When receiving an SCTP/UDP packet and the interface performed the UDP checksum computation and signals that it was OK, clear this bit when passing the packet to SCTP. Since the bits indicating a valid UDP checksum and a valid SCTP checksum are the same, the SCTP stack would assume that also an SCTP checksum check has been performed.
* MFC: r287337allanjude2016-01-161-1/+1
| | | | | | | | | | Apply the noline attribute to vdev_queue_max_async_writes This makes it possible to analyze the performance of the new ZFS write throttle with dtrace PR: 200316 Sponsored by: FreeBSD Mastery: Advanced ZFS
* MFC r291141:tuexen2016-01-162-47/+9
| | | | | Fix the handling of IPSec policies in the SCTP stack. At least make sure they are not leaked...
* MFC r291140:tuexen2016-01-161-2/+4
| | | | | Revert part of r291137 which seems correct, bit does not fix the resource problem I'm currently hunting down.
* MFC r291138:tuexen2016-01-161-1/+2
| | | | Clear the so_pcb pointer in case of ipsec_init_policy() fails.
* MFC r291137:tuexen2016-01-162-8/+5
| | | | | | Don't send SHUTDOWN chunk when the association is in a front state and the applications calls shutdown(..., SHUT_WR) or shutdown(..., SHUT_RDWR).
* MFC r291078:tuexen2016-01-161-51/+52
| | | | | Fix a bug where an SCTP association was moved back to SHUTDOWN_SENT state when the user issued a shutdown() call.
* MFC r290468:tuexen2016-01-161-1/+1
| | | | Use the correct length. The wrong one was too large.
* MFC r290444:tuexen2016-01-161-1/+2
| | | | | The field sinfo_timetolive should have been sinfo_pr_value. Thanks to Jens Hoelscher for making me aware of the bug.
* MFC r290442:tuexen2016-01-163-27/+33
| | | | | | Fix typos in field names of struct sctp_extrcvinfo. Provide defines to allow applications to compile. Thanks to Jens Hoelscher for making me aware of the typos.
* MFC r290023:tuexen2016-01-161-2/+2
| | | | | | When processing a cookie, any mismatch in port numbers or the vtag results in failing the check. This fixes https://github.com/nplab/ETSI-SCTP-Conformance-Testsuite/blob/master/sctp-imh-tests/sctp-imh-i-3-3.pkt
* MFC r289570:tuexen2016-01-166-26/+26
| | | | | | | Use __func__ instead of __FUNCTION__. This allows to compile the userland stack without errors using gcc5. Thanks to saghul for makeing me aware and providing the patch.
* MFC r289240:tuexen2016-01-161-1/+5
| | | | | Fix the timeout for INIT retransmissions in the case where RTO_MIN is smaller than RTO_INITIAL.
* MFC r287725:tuexen2016-01-161-1/+1
| | | | | Fix compilation issue introduced in r287717. Thanks to bz@ for making me aware of it.
* MFC r287719:tuexen2016-01-161-2/+2
| | | | Address a compile warning.
* MFC r287717:tuexen2016-01-165-156/+82
| | | | | | Cleanup the handling of error causes for ERROR chunks. This fixes an inconsistency of the padding handling. The final padding is now considered to be a chunk padding.
* MFC r287669:tuexen2016-01-164-26/+38
| | | | | | | Ensure that ERROR chunks are always padded by implementing this in the routine, which queues an ERROR chunk, instead on relyinh on the callers to do so. Since one caller missed this, this actially fixes a bug.
* MFC r287619:tuexen2016-01-161-2/+0
| | | | | | | | | Zero out a local variable also when PURIFY is not defined. This silence a warning brought up by valgrind whenever if_nametoindex is used. This was already discussed in PR 166483, but the code committed in r234329 guards the initilization with #ifdef PURIFY. Therefore, valgrind still complains. Since this code is not performance critical, always zero out the local variable to silence valgrind.
* MFC r287535:tuexen2016-01-161-6/+4
| | | | | | RFC 4960 requires that packets containing an INIT chunk bundled with another chunk are silently discarded. Do so, instead of sending an ABORT.
* MFC r287457:tuexen2016-01-161-0/+5
| | | | Don't leak memory in an error case.
* MFC r287456:tuexen2016-01-161-0/+3
| | | | Add a NULL pointer check to silence the clang code analyzer.
* MFC r287444:tuexen2016-01-161-10/+15
| | | | | Fix a bug where two SHUTDOWN_ACK chunks were sent if a SHUTDOWN chunk was received acking all outstanding data.
* MFC r287294:tuexen2016-01-163-7/+7
| | | | | | Use 5 times RTO.Max as the default for the shutdown guard timer as required by RFC 4960. The sysctl variable can be used to overwrite this.
* MFC r287284:tuexen2016-01-161-7/+16
| | | | Use the userland exported states and handle them completely.
* MFC r287282:tuexen2016-01-165-8/+49
| | | | | Fix the exporting of SCTP association states to userland. Without this, associations in SHUTDOWN-PENDING were never reported correctly.
OpenPOWER on IntegriCloud