summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6_pcb.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* in6_pcbconnect() returns EADDRNOTAVAIL whenvgross2015-10-151-3/+4
| | | | | | | all the ports in the range portfirst .. portlast are in use. ok millert@, mpi@
* Rename tame() to pledge(). This fairly interface has evolved to be morederaadt2015-10-091-4/+4
| | | | | | strict than anticipated. It allows a programmer to pledge/promise/covenant that their program will operate within an easily defined subset of the Unix environment, or it pays the price.
* Remove inpt_lastport from struct inpcbtable, use local variablesvgross2015-09-221-14/+14
| | | | | | in in_pcbbind() and in6_pcbsetport() ok claudio@, with input from David Hill
* Convert _TM_ flags to TAME_ flags, collapsing the entire mappingderaadt2015-09-111-2/+2
| | | | | | layer because the strings select the right options. Mechanical conversion. ok guenther
* Only include <sys/tame.h> in the .c files that need itguenther2015-09-111-1/+2
| | | | ok deraadt@ miod@
* in6_embedscope() needs to lose some weight. Remove the last argument.claudio2015-09-111-3/+3
| | | | | | | | | In all but two calls NULL is passed and in the other 2 cases the ifp is only used to maybe feed it to in6_selecthlim() to select the hoplimit for the link. Since in6_embedscope() only works on link-local addresses it does not matter what hop limit we select since the destination is directly reachable. OK florian@ mpi@
* It is time to put inet6 on a diet. Use the flensing knife and cut outclaudio2015-09-101-3/+3
| | | | | the 3rd argument of in6_recoverscope() and make it return void. OK dlg@ mikeb@
* Move to tame(int flags, char *paths[]) API/ABI.deraadt2015-08-221-2/+1
| | | | | | | | | | | | The pathlist is a whitelist of dirs and files; anything else returns ENOENT. Recommendation is to use a narrowly defined list. Also add TAME_FATTR, which permits explicit change operations against "struct stat" fields. Some other TAME_ flags are refined slightly. Not cranking libc now, since nothing commited in base uses this and the timing is uncomfortable for others. Discussed with many; thanks for a few bug fixes from semarie, doug, guenther. ok guenther
* tame(2) is a subsystem which restricts programs into a "reduced featurederaadt2015-07-191-1/+7
| | | | | | operating model". This is the kernel component; various changes should proceed in-tree for a while before userland programs start using it. ok miod, discussions and help from many
* More damned eye searing whitespace. No change to .o files.krw2015-06-081-10/+10
|
* Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.mpi2014-12-051-1/+2
| | | | ok mikeb@, krw@, bluhm@, tedu@
* move arc4random prototype to systm.h. more appropriate for most codetedu2014-11-181-3/+1
| | | | to include that than rdnvar.h. ok deraadt dlg
* Misleading comments about splnet().mpi2014-08-211-5/+1
|
* Fewer <netinet/in_systm.h> !mpi2014-07-221-2/+1
|
* Do not include <sys/malloc.h> where it is not needed.mpi2014-06-031-2/+1
|
* Invert the signature logic of in{,6}_selectsrc, make them return thejca2014-04-181-7/+4
| | | | | | | | error code and pass the resulting source address back to the caller through a pointer, as suggested by chrisz. This gives us more readable code, and eases the deletion of useless checks in the callers' error path. Add a bunch of "0 -> NULL" conversions, while here. ok chrisz@ mpi@
* Merge in_fixaddr() into in_selectsrc() in order to prepare formpi2014-04-161-2/+4
| | | | | | | IP_SENDSRCADDR support. This reduces the differences with the IPv6 version and kill some comments that are no longer true. ok jca@, chrisz@, mikeb@
* Remove redundant call to in{,6}_pcbbind() from tcp PRU_CONNECT.chrisz2014-04-061-1/+2
| | | | | | | Make sure that in_pcbbind() is called from in_pcbconnect() by KASSERTing that local port == 0 implies an unspecified local address. OK claudio@
* Name the local variables for struct ifaddr consistently "ifa".bluhm2014-01-081-5/+5
| | | | OK mikeb@
* Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQkrw2013-12-201-5/+2
| | | | | | | in the base. Ports fixes to follow shortly for the two ports (gkrellm and net-snmp) affected. ok zhuk@ millert@
* Put a large chunk of the IPv6 rdomain support in-tree.phessler2013-10-201-7/+9
| | | | | | Still some important missing pieces, and this is not yet enabled. OK bluhm@
* Remove a bunch of sockaddr_in6 pointer casts and replace othersbluhm2013-05-311-3/+3
| | | | | | with sin6tosa() or satosin6() inline functions. This allows the compiler to check the types more strictly. OK mpi@
* The function rip6_ctlinput() claims that sa6_src is constant tobluhm2013-05-311-12/+11
| | | | | | | | | | allow the assingment of &sa6_any. But rip6_ctlinput() could not guarantee that as it casted away the const attribute when it passes the pointer to in6_pcbnotify(). Replace sockaddr with const sockaddr_in6 in the in6_pcbnotify() parameters. This reduces the number of casts. Also adjust in6_pcbhashlookup() to handle the const attribute correctly. Input and OK claudio@
* Remove various external variable declaration from sources files andmpi2013-04-101-6/+2
| | | | | | | move them to the corresponding header with an appropriate comment if necessary. ok guenther@
* no need for a lot of code to include proc.htedu2013-03-281-2/+1
|
* Substitute the handcrafted list of IPv6 addresses by a proper TAILQ.mpi2013-03-251-4/+2
| | | | ok bluhm@, mikeb@
* Replace the cast to struct in6_ifaddr pointer with the ifatoia6() macro.bluhm2013-03-041-2/+2
| | | | | No binary change. OK claudio@
* rdomain support for IPv6sperreault2011-11-241-3/+3
| | | | ok mikeb
* Initial support for routing domains. This allows to bind interfaces toclaudio2009-06-051-7/+7
| | | | | | | | | alternate routing table and separate them from other interfaces in distinct routing tables. The same network can now be used in any doamin at the same time without causing conflicts. This diff is mostly mechanical and adds the necessary rdomain checks accross net and netinet. L2 and IPv4 are mostly covered still missing pf and IPv6. input and tested by jsg@, phessler@ and reyk@. "put it in" deraadt@
* When accessing cached routes make sure the route is actually still valid.claudio2008-11-231-2/+2
| | | | | | | | Before accessing a ro_rt make sure the route is either freshly allocated or RTF_UP is set. If not ro_rt should be freed and reallocated or at least no info from the ro_rt should be considered valid. This seems to solve the crashes seen by Felipe Alfaro Solana. some sort of OK dlg@
* ANSIfy to sync with KAME. From Karl Sjodahl <dunceor@gmail.com>.mcbride2008-06-111-26/+9
| | | | ok todd deraadt naddy bluhm
* Deal with the situation when TCP nfs mounts timeout and processesthib2008-05-231-4/+4
| | | | | | | | | | | | | get hung in nfs_reconnect() because they do not have the proper privilages to bind to a socket, by adding a struct proc * argument to sobind() (and the *_usrreq() routines, and finally in{6}_pcbbind) and do the sobind() with proc0 in nfs_connect. OK markus@, blambert@. "go ahead" deraadt@. Fixes an issue reported by bernd@ (Tested by bernd@). Fixes PR5135 too.
* SO_BINDANY for ipv6; ok djm@markus2008-05-191-3/+4
|
* use arc4random_uniform() for random number requests that are not adjm2008-04-181-3/+3
| | | | | | | | | power of two. use arc4random_bytes() when requesting more than a word of PRNG output. ok deraadt@
* simplify port allocation in pcb_bind(); based on freebsd; ok claudio henningmarkus2005-06-241-28/+8
|
* permit IPv6-only operation (permit AF_INET6 bind(2) without IPv4 address).itojun2004-02-061-3/+2
| | | | found by todd fries. markus ok
* remove never-to-be-used codepath (IPv4 mapped address). ok mcbrideitojun2004-02-051-49/+22
|
* change in*_pcbnotify to return numbers of matches; ok itojun, mcbride, henningmarkus2003-12-211-4/+4
|
* use CIRCLEQ* for pcb's; ok deraadt, henning, mcbride, with help from canacarmarkus2003-12-211-4/+4
|
* don't call in_pcbrehash twice; ok itojun@markus2003-11-041-4/+4
|
* use random number generator to generate IPv6 fragment ID/flowlabel.itojun2003-10-011-11/+9
| | | | cleanup IPv6 flowlabel handling. deraadt ok
* Correct off-by-ones with respect to PRC_NCMDS. Mostly from FreeBSD.cloder2003-09-281-2/+2
| | | | OK krw@, deraadt@
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-151-3/+3
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* specifed -> specifiedderaadt2003-03-151-2/+2
|
* KNF - return is not a function. sync w/kameitojun2002-09-111-9/+9
|
* pass struct proc * down to in6_pcbsetportitojun2002-09-041-4/+4
|
* more comment on bind(deprecated) handlingitojun2002-08-201-5/+12
|
* correct getpeername(2).itojun2002-06-091-1/+3
|
* First round of __P removal in sysmillert2002-03-141-2/+2
|