Michael Tuexen
c9c5805975
Add support for the SCTP_REMOTE_UDP_ENCAPS_PORT socket option.
...
Retire the the now unused sctp_udp_tunneling_for_client_enable
sysctl variable.
MFC after: 3 months.
2011-11-20 15:00:45 +00:00
Ed Schouten
3a28b8a49f
Fix whitespace inconsistencies found in homegrown Symbol.maps.
2011-10-07 15:05:24 +00:00
Hiroki Sato
3462b16f29
Fix a pathname (s,netinet/if_ether.h,net/ethernet.h,).
...
PR: docs/159341
Submitted by: Garrett Cooper
Approved by: re (kib)
2011-08-08 03:09:03 +00:00
Michael Tuexen
ca85e9482a
The result of a joint work between rrs@ and myself at the IETF:
...
* Decouple the path supervision using a separate HB timer per path.
* Add support for potentially failed state.
* Bring back RTO.min to 1 second.
* Accept packets on IP-addresses already announced via an ASCONF
* While there: do some cleanups.
Approved by: re@
MFC after: 2 months.
2011-08-03 20:21:00 +00:00
Michael Tuexen
bb3c45bf86
Document the latest changes to sctp_opt_info() in the code.
...
This makes sctp_opt_info() compiliant with the latest version
of the socket API ID.
2011-06-18 10:36:05 +00:00
Michael Tuexen
bb2c20c1a8
Add SCTP_MAX_BURST support to sctp_opt_info().
...
This only applies to 9.0 and higher, since the type
of the values has changed since we introduced it.
So it can't be MFCed.
2011-06-17 07:06:42 +00:00
Michael Tuexen
13aae0bf1d
Update the list of supported socket options for sctp_opt_info().
...
MFC after: 1 month.
2011-06-17 07:03:42 +00:00
Michael Tuexen
c67a03f99a
Fix two typos and remove redundant code.
...
MFC after: 1 month.
2011-06-16 17:30:50 +00:00
Michael Tuexen
0b064106dd
* Fix the handling of addresses in sctp_sendv().
...
* Add support for SCTP_SENDV_NOINFO.
* Improve the error handling of sctp_sendv() and sctp_recv().
MFC after: 1 month
2011-06-16 15:36:09 +00:00
Michael Tuexen
e2e7c62edc
Add support for the newly added SCTP API.
...
In particular add support for:
* SCTP_SNDINFO, SCTP_PRINFO, SCTP_AUTHINFO, SCTP_DSTADDRV4, and
SCTP_DSTADDRV6 cmsgs.
* SCTP_NXTINFO and SCTP_RCVINFO cmgs.
* SCTP_EVENT, SCTP_RECVRCVINFO, SCTP_RECVNXTINFO and SCTP_DEFAULT_SNDINFO
socket option.
* Special association ids (SCTP_FUTURE_ASSOC, ...)
* sctp_recvv() and sctp_sendv() functions.
MFC after: 1 month.
2011-06-15 23:50:27 +00:00
Michael Tuexen
48f65f00fa
* Update copyright notice.
...
* Cleanup usage of iov's.
* Add support for SCTP_TIMEOUTS socketoption.
* Fix a bug in sctp_recvmsg(): return the msg_flags in case of an error.
* Fix a bug in the error handling of sctp_peeloff(): return the -1.
2011-05-05 19:49:27 +00:00
Konstantin Belousov
af5407b895
Fix struct FILE * leak on error (in disabled by default hesiod support code).
...
Submitted by: henning petersen <henning.petersen t-online de>
PR: 153756
MFC after: 1 week
2011-01-08 10:56:58 +00:00
Rui Paulo
565424b2fd
Clang related fixes:
...
* When calling syslog(), pass a format string.
* Define YY_NO_INPUT on nslexer.l
Submitted by: Norberto Lopes <nlopes.ml at gmail.com>
2010-10-13 16:57:06 +00:00
Ulrich Spörlein
0d9deed52c
mdoc: drop redundant .Pp and .LP calls
...
They have no effect when coming in pairs, or before .Bl/.Bd
2010-10-08 12:40:16 +00:00
Hajimu UMEMOTO
c618a8562e
When no protocol entry is found, getproto*_r(3) should
...
return zero.
Spotted by: Kostik Belousov <kostikbel__at__gmail.com>
MFC after: 2 weeks
2010-10-05 15:40:59 +00:00
Hajimu UMEMOTO
f700faa590
Clear errno for each method dispatch.
...
Spotted by: Kostik Belousov <kostikbel__at__gmail.com>
MFC after: 2 weeks
2010-10-04 15:28:01 +00:00
Rebecca Cran
5512804bb8
Revert changes of 'assure' to 'ensure' made in r211936.
...
Approved by: rrs (mentor)
2010-09-11 10:49:56 +00:00
Rebecca Cran
e7f8dd75b3
Fix incorrect usage of 'assure' and 'insure'.
...
Approved by: rrs (mentor)
2010-08-28 16:32:01 +00:00
Joel Dahl
c2025a7660
Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while
...
translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
2010-08-16 15:18:30 +00:00
Hajimu UMEMOTO
2db99256b1
Correct the return code from _dns_gethostby*() to correspond
...
with h_errno.
Obtained from: NetBSD
MFC after: 2 weeks
2010-08-15 16:28:08 +00:00
Hajimu UMEMOTO
225edeac51
- When there is no room for returning the result, nss backend
...
have to return ERANGE and terminate with NS_RETURN.
- When gethostbyname_r(3) and the friends end with an error,
set errno to the value nss backend returns, and return errno
value.
PR: kern/131623
MFC after: 2 weeks
2010-08-13 06:39:54 +00:00
Joel Dahl
f6ac23919b
Fix typos and spelling mistakes.
2010-08-06 14:33:42 +00:00
Joel Dahl
edfa427cf1
Spelling fixes.
2010-08-02 16:01:45 +00:00
Randall Stewart
335a2d00c4
If a user calls sctp_sendx() with a NULL
...
sinfo we will crash. Instead we should provide
our own temp structure to use internally.
MFC after: 1 month
2010-07-07 11:19:06 +00:00
Rebecca Cran
45d35a30bd
Increment 'sa' at the end of the loop; otherwise, only the first
...
address ever gets checked.
Approved by: rrs (mentor)
MFC after: 1 month
2010-07-05 03:55:49 +00:00
Rebecca Cran
3d36ac9877
Use ISO C99 integer types instead of the BSD-specific u_int*_t.
...
Approved by: rrs (mentor)
2010-07-04 08:09:33 +00:00
Rebecca Cran
cefac273a4
sctp_recvmsg returns the number of bytes received, not sent.
...
Approved by: rrs (mentor)
MFC after: 1 month
2010-06-11 18:43:55 +00:00
Hajimu UMEMOTO
79bbdc60dc
Use the stored length value instead of calculating it by strlen().
2010-04-06 12:33:05 +00:00
Hajimu UMEMOTO
e622b47989
Add capability to use a db version of services. It is enabled by
...
specifying `db' as source of service in /etc/nsswitch.conf.
MFC after: 2 weeks
2010-04-04 08:31:03 +00:00
Hajimu UMEMOTO
dc6ab8ddb4
Reduce duplicate code.
...
MFC after: 2 weeks
2010-04-04 07:31:10 +00:00
Hajimu UMEMOTO
aea86367e8
Treat '+' as special only when in compat mode, and simplify
...
the logic bit.
MFC after: 2 weeks
2010-04-04 07:21:45 +00:00
Hajimu UMEMOTO
8390eaedcc
Stop adding trailing '\n'. The servent_unpack() doesn't expect
...
lines terminated with '\n'.
MFC after: 2 weeks
2010-04-04 07:02:10 +00:00
Rebecca Cran
ecf4b67af3
Remove extra semicolon.
...
Approved by: rrs (mentor)
2010-01-31 21:47:39 +00:00
Rebecca Cran
0add3200d1
Fix typo of ENOTCONN.
...
Add missing RETURN VALUES section in sctp_opt_info(3).
Approved by: rrs (mentor)
2010-01-31 21:45:14 +00:00
Christian Brueffer
a47698f8d6
Miscellaneous mdoc, spelling and inconsistency fixes.
...
PR: 142573, 142576 (mostly)
Submitted by: brucec
MFC after: 1 week
2010-01-12 21:45:03 +00:00
Daniel Gerzo
1743ff6a01
- correct xref sections
...
PR: docs/140940
Submitted by: Bruce Cran <bruce@cran.org.uk>
MFC after: 1 week
2009-11-28 11:27:37 +00:00
Hajimu UMEMOTO
823e5e0ebf
Add missing IEEE1394 support dropped during merge from NetBSD.
2009-11-12 11:54:12 +00:00
Hajimu UMEMOTO
a087c7295d
ANSIfy.
...
MFC after: 1 week
2009-11-11 15:21:06 +00:00
Hajimu UMEMOTO
0d384326cd
Add NLS catalogs support to gai_strerror(3).
...
Controlled by NLS define.
2009-11-09 12:46:59 +00:00
Poul-Henning Kamp
aa3e6183ce
Revert r196976, now that <machine/param.h> behaves predictably.
2009-09-09 10:31:20 +00:00
Poul-Henning Kamp
0901106030
Add necessary include
2009-09-08 15:18:25 +00:00
Xin LI
5512745e3a
Document how to enable strict RFC 1034 enforcements.
...
PR: kern/129477
2009-05-29 07:55:44 +00:00
Zachary Loafman
6d72217368
Fix an issue when nss fallback routines are used in a multithreaded application.
...
Reviewed by: bushman
Approved by: dfr (mentor)
2009-05-27 17:01:59 +00:00
Bruce M Simpson
6de9a4eb6b
Fix an obvious bug in getsourcefilter()'s use of struct __msfilterreq;
...
the kernel will return in msfr_nsrcs the number of source filters
in-mode for a given multicast group.
However, the filters themselves were never copied out, as the libc
function clobbers this field with zero, causing the kernel to assume
the provided vector of struct sockaddr_storage has zero length.
This bug would only affect users of SSM multicast, which is shimmed
in 7.x.
Picked up during mtest(8) refactoring.
MFC after: 1 day
2009-04-29 09:58:31 +00:00
Hajimu UMEMOTO
bc42149220
Query DNS only once per an address family.
...
Obtained from: KAME
MFC after: 2 weeks
2009-03-29 17:55:11 +00:00
Hajimu UMEMOTO
4d75630780
Add support for SCTP to getaddrinfo(3).
...
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
2009-03-25 16:23:43 +00:00
Hajimu UMEMOTO
d53978e3c0
getaddrinfo(3) should accept numeric when ai_socktype is not
...
specified in hint or hints is NULL.
PR: bin/51827
Submitted by: Mark Andrews <marka__at__isc.org>
MFC after: 1 week
2009-03-24 17:47:24 +00:00
Bruce M Simpson
1acf7fcc63
Considerably improve the wording of this man page.
2009-03-04 01:59:14 +00:00
Bruce M Simpson
0c0fdcfe15
Update copyright.
2009-03-04 01:58:48 +00:00
Xin LI
a8da143ab8
Add a missing .El.
2009-03-01 05:47:14 +00:00