| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
PR: 224403
Reported by: Michael Kaufmann
Reviewed by: Michael Kaufmann
MFC after: 1 week
Notes:
svn path=/head/; revision=327029
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mainly focus on files that use BSD 3-Clause license.
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.
Notes:
svn path=/head/; revision=326025
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
works on other OSes. Also avoid unnecessary NULL check, free(NULL) is
valid.
Reviewed by: bjk (man page), hrs, hselasky, ume
Sponsored by: Mellanox Technologies
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D12354
Notes:
svn path=/head/; revision=323597
|
|
|
|
| |
Notes:
svn path=/head/; revision=311102
|
|
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=310984
|
|
|
|
|
|
|
|
|
|
|
| |
the byte from the left and 'addrlen' already counted in 'lim'.
PR: 212121
Submitted by: Herbie.Robinson@stratus.com
MFC after: 7 days
Notes:
svn path=/head/; revision=305144
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
are equal. Unfortunately, RFC 3484 requires that otherwise equal objects
remain in the order supplied by the DNS server. The present code attempts
to deal with this by returning -1 for objects that are equal (i.e.,
returns that the first parameter is less then the second parameter).
Unfortunately, the qsort API does not state that the first parameter
passed in is in any particular position in the list.
PR: 212122
Submitted by: Herbie.Robinson@stratus.com
MFC after: 3 days
Notes:
svn path=/head/; revision=304911
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Depending on the address family and ai_flags containing AI_V4MAPPED,
it might not do a proper DNS lookup on the provided DNS address
Convert some `ai` boolean true/false checks to NULL/non-NULL while here.
MFC after: 1 week
PR: 211790
Reported by: Herbie.Robinson@stratus.com
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=304034
|
|
|
|
|
|
|
| |
Mostly on comments.
Notes:
svn path=/head/; revision=298830
|
|
|
|
|
|
|
|
|
| |
According to style(9):
> normally, include <sys/types.h> OR <sys/param.h>, but not both.
(<sys/param.h> already includes <sys/types.h> when LOCORE is not defined).
Notes:
svn path=/head/; revision=298226
|
|
|
|
|
|
|
|
|
|
|
| |
We have an nitems() macro in the <sys/param.h> header that is
convenient to re-use as it makes things easier to read.
Given that it is available already without adding additional
headers and other parts of libc already use it, extend a bit
more its use.
Notes:
svn path=/head/; revision=298120
|
|
|
|
|
|
|
|
|
|
|
| |
any data return that instead of internal error.
PR: 156684
Obtained from: NetBSD
MFC after: 1 week
Notes:
svn path=/head/; revision=292539
|
|
|
|
|
|
|
|
| |
Suggested by: hrs
MFC after: 1 week
Notes:
svn path=/head/; revision=292445
|
|
|
|
|
|
|
|
| |
PR: 198092
MFC after: 1 week
Notes:
svn path=/head/; revision=292444
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since it breaks certain jail setup, we ignore just 127.0.0.1
instead of whole loopback address range.
PR: 192014
Reviewed by: hrs
MFC after: 1 week
Notes:
svn path=/head/; revision=292129
|
|
|
|
|
|
|
|
|
|
|
| |
dereferencing an uninitialized res.
PR: 202142
Submitted by: Sean Boudreau
MFC after: 1 week
Notes:
svn path=/head/; revision=292059
|
|
|
|
|
|
|
|
|
|
| |
- Add SOCKTYPE_ANY to PF_LOCAL.
- Apply AI_CANONNAME to only AF_INET{,6}. It is not meaningful for the
other AFs.
Notes:
svn path=/head/; revision=288601
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- In a PF_LOCAL address, "hostname" must begins with '/' and "servname"
is always NULL. All of ai_flags are ignored.
- PF_UNSPEC matches PF_LOCAL. EAI_SERVICE is not returned to make
AF-independent programming easier; "servname" is always ignored
in PF_LOCAL. In practice, PF_INET* and PF_LOCAL are
mutually-exclusive because a hostname which begins with '/' is invalid
in PF_INET*. No domain name resolution is performed for a PF_LOCAL address.
Differential Revision: https://reviews.freebsd.org/D3634
Notes:
svn path=/head/; revision=287999
|
|
|
|
|
|
|
| |
Sponsored by: Nginx, Inc.
Notes:
svn path=/head/; revision=281143
|
|
|
|
|
|
|
|
|
|
|
|
| |
have chosen different (and more traditional) stateless/statuful
NAT64 as translation mechanism. Last non-trivial commits to both
faith(4) and faithd(8) happened more than 12 years ago, so I assume
it is time to drop RFC3142 in FreeBSD.
No objections from: net@
Notes:
svn path=/head/; revision=274331
|
|
|
|
|
|
|
|
| |
Spotted by: bf
MFC after: 1 week
Notes:
svn path=/head/; revision=267915
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- style(9)
TODO: When AI_ADDRCONFIG is specified, getaddrinfo() can
be quite slow for system with many interfaces. We should
have some kernel sysctls to report IPv4/IPv6 status.
Spotted by: melifaro
MFC after: 1 week
Notes:
svn path=/head/; revision=267912
|
|
|
|
|
|
|
|
|
| |
It prevented DNS based load balancing.
MFC after: 1 week
Notes:
svn path=/head/; revision=267800
|
|
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=267640
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when looking for configured addresses.
This change is based upon the code from the submitter, and made
following changes:
- Exclude addresses assigned on interfaces which are down, like NetBSD
does.
- Exclude addresses assigned on interfaces which are ifdisabled.
PR: 190824
Submitted by: Justin McOmie
MFC after: 1 week
Notes:
svn path=/head/; revision=267616
|
|
|
|
|
|
|
|
|
|
|
| |
Tested with vlc and a test suite [1].
[1] http://www.erg.abdn.ac.uk/~gerrit/udp-lite/files/udplite_linux.tar.gz
Reviewed by: jhb, glebius, adrian
Notes:
svn path=/head/; revision=264212
|
|
|
|
|
|
|
|
|
|
| |
This change avoids undesirably passing some internal file descriptors to a
process created (fork+exec) by another thread.
Kernel support for SOCK_CLOEXEC was added in r248534, March 19, 2013.
Notes:
svn path=/head/; revision=255328
|
|
|
|
| |
Notes:
svn path=/head/; revision=254700
|
|
|
|
|
|
|
|
|
| |
policy is installed.
MFC after: 1 week
Notes:
svn path=/head/; revision=238599
|
|
|
|
| |
Notes:
svn path=/head/; revision=238504
|
|
|
|
|
|
|
|
|
|
| |
trigger with clang, when you either use -save-temps, or ccache.
Reported by: Sevan / Venture37 <venture37@gmail.com>
MFC after: 3 days
Notes:
svn path=/head/; revision=236695
|
|
|
|
|
|
|
|
|
|
|
| |
by the current code, and the results would get overwritten anyway
by subsequent memset().
Reviewed by: ume
MFC after: 1 month
Notes:
svn path=/head/; revision=233770
|
|
|
|
|
|
|
|
|
|
| |
stack for the node-local multicast address.
Spotted by: Rainer Bredehorn <Bredehorn__at__gmx.de>
MFC after: 1 week
Notes:
svn path=/head/; revision=229766
|
|
|
|
|
|
|
|
| |
Obtained from: KAME
MFC after: 2 weeks
Notes:
svn path=/head/; revision=190525
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now, getaddrinfo(3) returns two SOCK_STREAMs, IPPROTO_TCP and
IPPROTO_SCTP. It confuses some programs. If getaddrinfo(3) returns
IPPROTO_SCTP when SOCK_STREAM is specified by hints.ai_socktype, at
least Apache doesn't work. So, I made getaddrinfo(3) to return
IPPROTO_SCTP with SOCK_STREAM only when IPPROTO_SCTP is specified
explicitly by hints.ai_protocol.
PR: bin/128167
Submitted by: Bruce Cran <bruce__at__cran.org.uk> (partly)
MFC after: 2 week
Notes:
svn path=/head/; revision=190416
|
|
|
|
|
|
|
|
|
|
|
| |
specified in hint or hints is NULL.
PR: bin/51827
Submitted by: Mark Andrews <marka__at__isc.org>
MFC after: 1 week
Notes:
svn path=/head/; revision=190382
|
|
|
|
|
|
|
|
|
| |
PR: bin/127591
Submitted by: "Eugene M. Kim" <20080111.freebsd.org__at__ab.ote.we.lv>
MFC after: 1 week
Notes:
svn path=/head/; revision=188316
|
|
|
|
|
|
|
| |
Reported by: "Heiko Wundram (Beenic)" <wundram__at__beenic.net>
Notes:
svn path=/head/; revision=175955
|
|
|
|
|
|
|
|
|
|
|
|
| |
compliant with RFC3493.
PR: standards/114910
Approved by: ume (mentor)
Approved by: re
MFC after: 1 week
Notes:
svn path=/head/; revision=172052
|
|
|
|
|
|
|
|
|
|
| |
str2number(). this could result in an unexpected code path.
Obtained from: KAME
MFC after: 1 week
Notes:
svn path=/head/; revision=160593
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=160577
|
|
|
|
|
|
|
|
|
|
| |
GET_AI and GET_PORT. Commented on an impossible case.
Obtained from: KAME
MFC after: 1 week
Notes:
svn path=/head/; revision=160553
|
|
|
|
|
|
|
|
| |
Obtained from: KAME
MFC after: 1 week
Notes:
svn path=/head/; revision=160552
|
|
|
|
|
|
|
|
|
|
|
| |
we do not need it since we make (at most) a single addrinfo entry in these
cases.
Obtained from: KAME
MFC after: 1 week
Notes:
svn path=/head/; revision=160551
|
|
|
|
|
|
|
|
|
|
|
| |
databases.
- Make nsswitch support caching.
Submitted by: Michael Bushkov <bushman__at__rsu.ru>
Sponsored by: Google Summer of Code 2005
Notes:
svn path=/head/; revision=158115
|
|
|
|
| |
Notes:
svn path=/head/; revision=157371
|
|
|
|
|
|
|
| |
Obtained from: res_nquery() of BIND9.
Notes:
svn path=/head/; revision=157203
|
|
|
|
|
|
|
| |
- Remove trailing space.
Notes:
svn path=/head/; revision=157119
|
|
|
|
| |
Notes:
svn path=/head/; revision=157093
|
|
|
|
| |
Notes:
svn path=/head/; revision=157081
|