199287 Commits

Author SHA1 Message Date
ae
e8c339bab5 MFC r283117:
Remove unneded mbuf length adjustment, M_PREPEND() already did that.

PR:		139387
2015-05-31 22:49:32 +00:00
ngie
8017091a95 MFC r283170:
Import proposed fix from upstream for
atf-sh/atf_check_test:flush_stdout_on_timeout

Many thanks for jmmv for the fix!

PR: 197060

Original commit message:

From 0e546407567ea858e261e72f75c5ed61e07d0ddf Mon Sep 17 00:00:00 2001
From: Julio Merino <jmmv@google.com>
Date: Tue, 17 Feb 2015 18:10:11 -0500
Subject: [PATCH] Fix atf-sh/atf_check_test:flush_stdout_on_death

The test atf-sh/atf_check_test:flush_stdout_on_timeout was flaky as it
was playing solely with time.  Fix this by making the test more robust
and rename it while we are at it: there is nothing left about "timeouts"
in this test, considering that ATF itself does not enforce deadlines
any longer.

Fixes FreeBSD PR 197060.
2015-05-31 22:44:14 +00:00
ngie
b7ca7c8282 MFC r283502:
Remove SUBDIR_DEPEND for non-existent libreadline directory

libreadline lives under gnu/lib
2015-05-31 22:41:22 +00:00
ngie
f0e277f517 MFC r277627,r277650,r282059,r283056,r283840,r283845:
r277627 (by will):

Add routing_test:static_ipv6_loopback_route_for_each_fib.
It tests that all FIBs get a static IPv6 loopback route.

Submitted by:	asomers
Sponsored by:	Spectra Logic
MFSpectraBSD:	1048456 on 2014/03/13
		1114523 on 2015/01/23

r277650 (by will):

Add tests/etc/rc.d to mtree.

Submitted by:	stefanf
MFC with:	277627

r282059:

Move etc/tests/rc.d to etc/rc.d/tests to match the directory layout jmmv@
documented and implemented in other areas of the FreeBSD tree

r283056:

Move all test integration pieces for etc/ from etc/ to tests/

This is being done to fix breakage with make distribution with read-only
source trees as make distribution doesn't use make obj like building
tests/ does in all cases

Reported by: Wolfgang Zenker <wolfgang@lyxys.ka.sub.org>
Suggested by: jhb

r283840:

Remove empty tests directory

r283845:

Append to SUBDIR, not set it

Pointyhat to: ngie
2015-05-31 22:39:48 +00:00
tuexen
baef3fdea0 MFC r283691:
Remove printf() noise...
2015-05-31 13:07:22 +00:00
tuexen
5cacc4c33e MFC r283666:
Report the MTU consistently as specified in
https://tools.ietf.org/html/rfc6458
Thanks to Irene Ruengeler for helping me to fix this bug.
2015-05-31 13:04:38 +00:00
tuexen
bbe91198b3 MFC r283665:
Take source and destination address into account when determining
the scope.
This fixes a problem when a client with a global address
connects to a server with a private address.
Thanks to Irene Ruengeler in helping me to find the issue.
2015-05-31 13:01:58 +00:00
tuexen
3a8e5cd397 MFC r283664:
Retire SCTP_DONT_DO_PRIVADDR_SCOPE which was never defined.
2015-05-31 12:59:22 +00:00
tuexen
f2a969c70c MFC r283662:
Fix a bug where messages would not be sent in SHUTDOWN_RECEIVED state.
This problem was reported by Mark Bonnekessel and Markus Boese.
Thanks to Irene Ruengeler for helping me to fix the cause of
the problem. It can be tested with the following packetdrill script:

+0.0 socket(..., SOCK_STREAM, IPPROTO_SCTP) = 3
+0.0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
+0.0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
// Check the handshake with an empty(!) cookie
+0.1 connect(3, ..., ...) = -1 EINPROGRESS (Operation now in progress)
+0.0 > sctp: INIT[flgs=0, tag=1, a_rwnd=..., os=..., is=..., tsn=0, ...]
+0.1 < sctp: INIT_ACK[flgs=0, tag=2, a_rwnd=10000, os=1, is=1, tsn=0, STATE_COOKIE[len=4, val=...]]
+0.0 > sctp: COOKIE_ECHO[flgs=0, len=4, val=...]
+0.1 < sctp: COOKIE_ACK[flgs=0]
+0.0 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
+0.0 write(3, ..., 1024) = 1024
+0.0 > sctp: DATA[flgs=BE, len=1040, tsn=0, sid=0, ssn=0, ppid=0]
+0.0 write(3, ..., 1024) = 1024 // Pending due to Nagle
+0.0 < sctp: SHUTDOWN[flgs=0, cum_tsn=0]
+0.0 > sctp: DATA[flgs=BE, len=1040, tsn=1, sid=0, ssn=1, ppid=0]
+0.0 < sctp: SACK[flgs=0, cum_tsn=1, a_rwnd=10000, gaps=[], dups=[]] // Do we need another SHUTDOWN here?
+0.0 > sctp: SHUTDOWN_ACK[flgs=0]
+0.0 < sctp: SHUTDOWN_COMPLETE[flgs=0]
+0.0 close(3) = 0
2015-05-31 12:56:22 +00:00
tuexen
c07a13950d MFC r283658:
Use macros for overhead in a consistent way. No functional change.
Thanks to Irene Ruengeler for suggesting the change.
2015-05-31 12:53:16 +00:00
tuexen
4cc7a6bb7a MFC r283654:
Some more debug info cleanup.
2015-05-31 12:50:10 +00:00
tuexen
beb47cc587 MFC r283650:
Fix and cleanup the debug information. This has no user-visible changes.
Thanks to Irene Ruengeler for proving a patch.
2015-05-31 12:46:40 +00:00
tuexen
b583c15e81 MFC r283648:
Address some compiler warnings. No functional change.
2015-05-31 12:42:34 +00:00
bapt
6d659fd65b MFC: r283695
Remove dead declaration

PR:		195928
2015-05-31 00:52:45 +00:00
bapt
0479e26254 MFC: r281039
Allow fetching pkg(8) even if servers/proxies are not passing Content-length
2015-05-30 21:49:18 +00:00
bapt
f11dbe130e MFC: r273778 (by nwhitehorn)
Remove spurious libelf dependency.

Submitted by:	pluknet
2015-05-30 21:47:25 +00:00
bapt
e5d700b499 MFC: r273754 (by nwhitehorn)
Use pkg-1.4-style platform identifiers based on MACHINE_ARCH (e.g.
FreeBSD:11:amd64 instead of freebsd:11:x86:64) when bootstrapping pkg.
Thanks to portmgr for providing symlinks so both styles work.

Reviewed by:	bapt
MFC after:	3 weeks
2015-05-30 21:45:46 +00:00
bapt
051d0fa6db MFC: r259773, r259774, r259775
Do not print a question in non-interractive mode but explain why boostrapping
has failed and how to allow it to happen

Reported by:	jmmv
2015-05-30 21:32:02 +00:00
bapt
b5d16437e1 MFC: r258226
argc is now used
2015-05-30 21:28:55 +00:00
bapt
0f4e3f90c5 MFC: r258020 (by bdrewery)
Remove useless checks for NULL pointer before free(3)

Reported by:		eadler
Approved by:		eadler
2015-05-30 21:25:32 +00:00
bapt
644eb326fc MFC: r257701 (by bdrewery)
Remove condition which can never be true as the previous loop
is never exited while remote == NULL.
2015-05-30 21:23:41 +00:00
kib
80880ee480 MFC r283320:
Always obey thread request to not stop on non-boundary.
2015-05-30 08:54:42 +00:00
rmacklem
8389b2b3fd MFC: r283008
Add a warning message to mountd for exported file
systems that are automounted, since that configuration
isn't supported. This still allows the export, since
two emails I received felt that this should not be
disabled. It sends the message to syslog(LOG_ERR..), so that
it goes to the same places as the other messages related
to /etc/exports problems, even though it is a warning and not an error.
2015-05-30 01:04:45 +00:00
erj
d390788aa7 MFC r281236 -- extended media types in if_media.h.
Approved by:	jfv (mentor)
2015-05-29 23:02:12 +00:00
davidcs
94b7042c30 MFC r283274
Submitted by:	gary.zambrano@qlogic.com
Approved by:davidcs@freebsd.org
2015-05-29 21:30:11 +00:00
davidcs
39353769d3 MFC r283269
Submitted by:gary.zambrano@qlogic.com
Approved by:davidcs@freebsd.org
2015-05-29 20:00:02 +00:00
emaste
cbcbd6fd24 MFC r283295: ipf(1): Use strchr(3) instead of deprecated index(3)
Sponsored by:	The FreeBSD Foundation
2015-05-29 17:43:14 +00:00
tuexen
09fd91eb46 MFC r282810:
Ensure that the COOKIE-ACK can be sent over UDP if the COOKIE-ECHO was
received over UDP.
Thanks to Felix Weinrank for makeing me aware of the problem and to
Irene Ruengeler for providing the fix.
2015-05-29 13:37:04 +00:00
tuexen
a2dbf980ab MFC r282042:
Don't panic under INVARIANTS when receiving a SACK which cumacks
a TSN never sent.
While there, fix two typos.
2015-05-29 13:34:31 +00:00
tuexen
109c389f07 MFC r281884:
A complete user message is signalled with the MSG_EOR flag, not the MSG_EOF
flag.
Thanks to Valentin Nechayev for reporting the issue.
2015-05-29 13:32:08 +00:00
tuexen
1fcb0f4ab0 MFC r281202:
The code says "or", not "either or". So fix the documentation.
2015-05-29 13:30:37 +00:00
tuexen
f048f8c13f MFC r280782:
Add an SCTP symbol which was missed in
https://svnweb.freebsd.org/base?view=revision&revision=169622
This fixes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197783
Thanks to Jukka Ukkonen for reporting the bug and providing a fix.
2015-05-29 13:28:24 +00:00
tuexen
65d8b9f172 MFC r280714:
Improve the selection of the destination address of SACK chunks.
This fixes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196755
and is joint work with rrs@.
2015-05-29 13:26:05 +00:00
tuexen
443fcce7c9 MFC r280642:
Make sure that we don't free an SCTP shared key too early.
Thanks to Pouyan Sepehrdad from Qualcomm Product Security Initiative
for reporting the issue.
2015-05-29 13:23:16 +00:00
tuexen
6fa1d035cb MFC r280634:
Use the reference count of the right SCTP inp.
Joint work with rrs@
2015-05-29 13:20:39 +00:00
tuexen
6e64233ed9 MFC r280459:
Fix two bugs which resulted in a screwed up end point list:
* Use a save way to walk throught a list while manipulting it.
* Have to appropiate locks in place.
Joint work with rrs@
2015-05-29 13:18:10 +00:00
tuexen
d8c5ad4ada MFC r280440:
Fix the bug in the handling of fragmented abandoned SCTP user messages reported in
https://code.google.com/p/sctp-refimpl/issues/detail?id=11
Thanks to Lally Singh for reporting it.
2015-05-29 13:13:12 +00:00
tuexen
ae995cba15 MFC r280439:
Fix an accounting bug related to the per stream chunk counter.
While there, don't refer to a net articifically.
2015-05-29 13:11:13 +00:00
tuexen
b42d72caa3 MFC r280404:
When an ICMP message is received and the MTU shrinks, only
mark outstanding chunks for retransmissions.
2015-05-29 13:08:43 +00:00
tuexen
d21c3896b9 MFC r280371:
Remove a useless assignment.
2015-05-29 13:06:15 +00:00
tuexen
a29e8c28ca MFC r279886:
Fix the adaptation of the path state when thresholds are changed
using the SCTP_PEER_ADDR_THLDS socket option.
2015-05-29 13:02:00 +00:00
tuexen
16fb87c63d MFC r279867:
Keep track on the socket lock state. This fixes a bug showing up on
Mac OS X.
2015-05-29 12:59:18 +00:00
tuexen
b21153d463 MFC r279863:
Unlock the stcb when using setsockopt() for the SCTP_PEER_ADDR_THLDS option.
2015-05-29 12:57:04 +00:00
tuexen
10635a0e4c MFC r279859:
Add a SCTP socket option to limit the cwnd for each path.
2015-05-29 12:54:30 +00:00
tuexen
44f9f670c9 MFC r279841:
Fix a typo.
2015-05-29 12:50:53 +00:00
tuexen
c929c897c8 MFC r277815:
Whitespace change.
2015-05-29 12:48:14 +00:00
tuexen
03ab9820fc MFC r277424:
Remove comparisons which are not necessary.
With manual intervention.

Reported by:	Coverity
CID:		1237826, 1237844, 1237847
2015-05-29 12:45:55 +00:00
tuexen
4ed8a22fc6 MFC r277380:
Code cleanup.

Reported by:	Coverity
CID:		749578
2015-05-29 12:35:21 +00:00
tuexen
186be7c17d MFC r277350:
Fix a bug which only shows up when an mbuf allocation failed.
Therefore chances are low that we hit this.

Reported by:	Coverity
CID:		1018886
2015-05-29 12:33:02 +00:00
tuexen
7fa1168111 MFC r277348:
Remove an unnecessary check.

Reported by:	Coverity
CID:		749576
2015-05-29 12:30:19 +00:00