summaryrefslogtreecommitdiffstats
path: root/sys/sys/socket.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Add prototype for sockatmark().fenner2002-12-141-3/+1
|
* Fix a constant in the standard namespace not to depend on anothermike2002-11-131-2/+2
| | | | constant in the BSD namespace.
* o Add typedefs for size_t and ssize_t.mike2002-10-121-17/+100
| | | | | | | | | | | | | o Add typedefs for gid_t, off_t, pid_t, and uid_t in the non-standards case. o Add struct iovec (also defined in <sys/uio.h>). o Add visibility conditionals to avoid defining non-standard extentions in the standards case. o Change spelling of some types so they work without including <sys/types.h> (u_char -> unsigned char, u_short -> unsigned short, int64 -> __int64, caddr_t -> char *) o Add comments about missing restrict type-qualifiers and missing function.
* o Merge <machine/ansi.h> and <machine/types.h> into a new headermike2002-08-211-6/+6
| | | | | | | | | | | | | | | | | | | | | called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien
* Implement SO_NOSIGPIPE option for sockets. This allows one to request thatalfred2002-06-201-0/+1
| | | | | | | an EPIPE error return not generate SIGPIPE on sockets. Submitted by: lioux Inspired by: Darwin
* Reserve two constants for managing socket MAC labels via socket options.rwatson2002-06-141-0/+2
|
* Whitespaec consistency.rwatson2002-06-141-6/+6
|
* SO_PRIVSTATE has been commented out for long enough now....wollman2002-06-111-1/+0
|
* bde noticed that SOMAXCONN breaks pretty badly as an option for LINT.alfred2002-06-021-2/+0
| | | | so back it out.
* Add sa_family_t type to <sys/_types.h> and typedefs to <netinet/in.h>mike2002-04-201-2/+6
| | | | | and <sys/socket.h>. Previously, sa_family_t was only typedef'd in <sys/socket.h>.
* Remove __Palfred2002-03-191-19/+19
|
* Zero functional difference; make some integer constants unsigned, asmarkm2002-02-031-1/+1
| | | | | they are used in unsigned context. This shuts lint(1) up in a few significant ways with "signed/unsigned" arithmetic warnings.
* style(9) the structure definitions.obrien2001-09-051-2/+2
|
* FreeBSD already avoided namespace pollution (rev.1.45).ume2001-06-121-18/+10
| | | | Submitted by: bde
* Sync with recent KAME.ume2001-06-111-7/+19
| | | | | | | | | | | | | | | | | | This work was based on kame-20010528-freebsd43-snap.tgz and some critical problem after the snap was out were fixed. There are many many changes since last KAME merge. TODO: - The definitions of SADB_* in sys/net/pfkeyv2.h are still different from RFC2407/IANA assignment because of binary compatibility issue. It should be fixed under 5-CURRENT. - ip6po_m member of struct ip6_pktopts is no longer used. But, it is still there because of binary compatibility issue. It should be removed under 5-CURRENT. Reviewed by: itojun Obtained from: KAME MFC after: 3 weeks
* Add address families AF_SLOW and AF_SCLUSTER. These are used by thegrog2001-04-231-2/+7
| | | | | | Sitara QoSworks box. Obtained from: Sitara Networks Inc.
* Make SOMAXCONN a kernel option.alfred2001-04-131-0/+2
| | | | Submitted by: Terry Lambert <terry@lambert.org>
* Remove struct cmessage from sys/socket.h and reintroduce the privatealfred2001-03-221-5/+0
| | | | | | definitions. Requested by: wollman
* Hopefully fix some of the bugs in passing credentials over UNIX ↵alfred2001-03-221-0/+5
| | | | | | | | | | | | domain sockets. Make struct cmessage visible from socket.h (about 4 places were defining it for themselves which wasn't good) Make __rpc_get_local_uid() useable and give it prototype that's visible. Fix some issues with printing out usernames from rpcbind and keyserv.
* Fixed disordering in previous commit.bde2001-02-171-2/+1
|
* Correct 2nd argument of getnameinfo(3) to socklen_t.ume2001-02-151-1/+6
| | | | Reviewed by: itojun
* remove pfctlinputassar2000-12-191-2/+0
|
* Reduce number of #ifdef nestings.asmodai2000-11-221-4/+0
| | | | Submitted by: bde
* Fix CMSG and ALIGN macro usage.asmodai2000-11-081-6/+14
| | | | | | | | | | | | | | | | | | | Previously we had to include <machine/param.h> or <sys/param.h> bogusly due to the fact that <sys/socket.h> CMSG macros needed the ALIGN macro, which was defined in param.h. However, including param.h was a disaster for namespace pollution. This solution, as contributed by shin a while ago, fixes it elegantly by wrapping the definitions around some namespace pollution preventer definitions. This patch was long overdue. This should allow any network programmer to use <sys/socket.h> as before. PR: 19971, 20530 Submitted by: Martin Kaeske <MartinKaeske@lausitz.net> Mark Andrews <Mark.Andrews@nominum.com> Patch submitted by: shin Reviewed by: bde
* Document which RFC introduced CMSG_SPACE() and CMSG_LEN().asmodai2000-09-221-0/+2
|
* Fix comment about the bsd-api-new-02a draft. This has been supercededasmodai2000-09-221-1/+1
| | | | by RFC 2553.
* return of the accept filter part IIalfred2000-06-201-0/+6
| | | | | | | | | | | accept filters are now loadable as well as able to be compiled into the kernel. two accept filters are provided, one that returns sockets when data arrives the other when an http request is completed (doesn't work with 0.9 requests) Reviewed by: jmg
* backout accept optimizations.alfred2000-06-181-2/+0
| | | | Requested by: jmg, dcs, jdp, nate
* add socketoptions DELAYACCEPT and HTTPACCEPT which will not allow an accept()alfred2000-06-151-0/+2
| | | | | | | | | | | | until the incoming connection has either data waiting or what looks like a HTTP request header already in the socketbuffer. This ought to reduce the context switch time and overhead for processing requests. The initial idea and code for HTTPACCEPT came from Yahoo engineers and has been cleaned up and a more lightweight DELAYACCEPT for non-http servers has been added Reviewed by: silence on hackers.
* Fix sockaddr_storage related macro definition, as ss_family member type change.shin2000-03-111-2/+2
| | | | | | | | (Currently, no effect but for future portability) Approved by: jkh Reviewed by: bde
* CMSG_XXX macros alignment fixes to follow RFC2292.shin2000-03-031-12/+7
| | | | | | | Approved by: jkh Submitted by: Partly from tech@openbsd Reviewed by: itojun
* Change struct sockaddr_storage member name, because following changeshin2000-01-131-2/+2
| | | | | | | | | | | | is very likely to become consensus as recent ietf/ipng mailing list discussion. Also recent KAME repository and other KAME patched BSDs also applied it. s/__ss_family/ss_family/ s/__ss_len/ss_len/ Makeworld is confirmed, and no application should be affected by this change yet.
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-2/+2
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* IPSEC support in the kernel.shin1999-12-221-1/+1
| | | | | | | | pr_input() routines prototype is also changed to support IPSEC and IPV6 chained protocol headers. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* General clean-up of socket.h and associated sources to synchronise upphk1999-11-241-28/+33
| | | | | | | | | | | | with NetBSD and the Single Unix Specification v2. This updates some structures with other, almost equivalent types and effort is under way to get the whole more consistent. Also removes a double definition of INET6 and some other clean-ups. Reviewed by: green, bde, phk Some part obtained from: NetBSD, SUSv2 specification
* KAME related header files additions and merges.shin1999-11-051-1/+31
| | | | | | | (only those which don't affect c source files so much) Reviewed by: cvs-committers Obtained from: KAME project
* Add missing entries in a structure.julian1999-10-221-0/+2
|
* fix typojulian1999-10-211-2/+2
|
* Whistle's Netgraph link-layer (sometimes more) networking infrastructure.julian1999-10-211-0/+3
| | | | | | | | | | Been in production for 3 years now. Gives Instant Frame relay to if_sr and if_ar drivers, and PPPOE support soon. See: ftp://ftp.whistle.com/pub/archie/netgraph/index.html for on-line manual pages. Reviewed by: Doug Rabson (dfr@freebsd.org) Obtained from: Whistle CVS tree
* Implement pseudo_AF_HDRCMPLT, which controls the state of the 'headermsmith1999-10-151-1/+4
| | | | | | | | | | completion' flag. If set, the interface output routine will assume that the packet already has a valid link-level source address. This defaults to off (the address is overwritten) PR: kern/10680 Submitted by: "Christopher N . Harrell" <cnh@mindspring.net> Obtained from: NetBSD
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Implemented zero-copy TCP/IP extensions via sendfile(2) - send adg1998-11-051-1/+12
| | | | | | | | | | | file to a stream socket. sendfile(2) is similar to implementations in HP-UX, Linux, and other systems, but the API is more extensive and addresses many of the complaints that the Apache Group and others have had with those other implementations. Thanks to Marc Slemko of the Apache Group for helping me work out the best API for this. Anyway, this has the "net" result of speeding up sends of files over TCP/IP sockets by about 10X (that is to say, uses 1/10th of the CPU cycles) when compared to a traditional read/write loop.
* (this is an extract from src/share/examples/atm/README)phk1998-09-151-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | =================================== HARP | Host ATM Research Platform =================================== HARP 3 What is this stuff? ------------------- The Advanced Networking Group (ANG) at the Minnesota Supercomputer Center, Inc. (MSCI), as part of its work on the MAGIC Gigabit Testbed, developed the Host ATM Research Platform (HARP) software, which allows IP hosts to communicate over ATM networks using standard protocols. It is intended to be a high-quality platform for IP/ATM research. HARP provides a way for IP hosts to connect to ATM networks. It supports standard methods of communication using IP over ATM. A host's standard IP software sends and receives datagrams via a HARP ATM interface. HARP provides functionality similar to (and typically replaces) vendor-provided ATM device driver software. HARP includes full source code, making it possible for researchers to experiment with different approaches to running IP over ATM. HARP is self-contained; it requires no other licenses or commercial software packages. HARP implements support for the IETF Classical IP model for using IP over ATM networks, including: o IETF ATMARP address resolution client o IETF ATMARP address resolution server o IETF SCSP/ATMARP server o UNI 3.1 and 3.0 signalling protocols o Fore Systems's SPANS signalling protocol What's supported ---------------- The following are supported by HARP 3: o ATM Host Interfaces - FORE Systems, Inc. SBA-200 and SBA-200E ATM SBus Adapters - FORE Systems, Inc. PCA-200E ATM PCI Adapters - Efficient Networks, Inc. ENI-155p ATM PCI Adapters o ATM Signalling Protocols - The ATM Forum UNI 3.1 signalling protocol - The ATM Forum UNI 3.0 signalling protocol - The ATM Forum ILMI address registration - FORE Systems's proprietary SPANS signalling protocol - Permanent Virtual Channels (PVCs) o IETF "Classical IP and ARP over ATM" model - RFC 1483, "Multiprotocol Encapsulation over ATM Adaptation Layer 5" - RFC 1577, "Classical IP and ARP over ATM" - RFC 1626, "Default IP MTU for use over ATM AAL5" - RFC 1755, "ATM Signaling Support for IP over ATM" - RFC 2225, "Classical IP and ARP over ATM" - RFC 2334, "Server Cache Synchronization Protocol (SCSP)" - Internet Draft draft-ietf-ion-scsp-atmarp-00.txt, "A Distributed ATMARP Service Using SCSP" o ATM Sockets interface - The file atm-sockets.txt contains further information What's not supported -------------------- The following major features of the above list are not currently supported: o UNI point-to-multipoint support o Driver support for Traffic Control/Quality of Service o SPANS multicast and MPP support o SPANS signalling using Efficient adapters This software was developed under the sponsorship of the Defense Advanced Research Projects Agency (DARPA). Reviewed (lightly) by: phk Submitted by: Network Computing Services, Inc.
* Define the Posix.1g names for the howto argument to shutdown(2).wollman1998-09-121-1/+8
|
* Added inet6 to CTL_NET_NAMES.alex1998-02-011-1/+2
|
* Moved some declarations from <sys/socket.h> to the correct places, andbde1997-12-211-8/+2
| | | | fixed everything that depended on them being misplaced.
* Last major round (Unless Bruce thinks of somthing :-) of malloc changes.phk1997-10-121-1/+6
| | | | | | | | Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde
* Fix all areas of the system (or at least all those in LINT) to avoid storingwollman1997-08-161-1/+2
| | | | | | | | socket addresses in mbufs. (Socket buffers are the one exception.) A number of kernel APIs needed to get fixed in order to make this happen. Also, fix three protocol families which kept PCBs in mbufs to not malloc them instead. Delete some old compatibility cruft while we're at it, and add some new routines in the in_cksum family.
* merge ATM driverkjc1997-05-091-2/+5
|
* Remove SO_PRIVSTATE socket option; it is no longer necessary, nor implementedwollman1997-04-301-2/+2
| | | | | in the kernel. inetd should automatically notic that it has gone away once it is recompiled.
OpenPOWER on IntegriCloud