summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_domain.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add the kernel side of net.link.ifrxq.pressure_return and pressure_dropdlg2019-07-031-1/+35
| | | | | | | | these values are used as the backpressure thresholds in the interface rx q processing code. theyre being exposed as tunables to userland while we are figuring out what the best values for them are. ok visa@ deraadt@
* Replace value with a constantdenis2018-06-231-3/+3
| | | | OK bluhm@, jca@
* Constify protocol tables and remove an assert now that ip_deliver() ismpi2017-11-231-11/+11
| | | | | | mp-safe. ok bluhm@, visa@
* Move NET_{,UN}LOCK into individual slowtimo functions.florian2017-10-291-5/+1
| | | | | | Direction suggested by mpi OK mpi, visa
* Reduces the scope of the NET_LOCK() in sysctl(2) path.mpi2017-10-091-3/+1
| | | | | | Exposes per-CPU counters to real parrallelism. ok visa@, bluhm@, jca@
* Remove NET_LOCK()'s argument.mpi2017-08-111-10/+10
| | | | Tested by Hrvoje Popovski, ok bluhm@
* Kill option KEY, it is a useless knob, nobody uses pfkeyv2 without IPSEC orclaudio2017-05-271-2/+2
| | | | tcp md5. OK mpi@
* Convert a splsoftnet()/splx() dance to NET_ASSERT_LOCKED().mpi2017-05-091-4/+4
| | | | | | pfctlinput() is only called in the input path with the NET_LOCK() held. ok bluhm@
* Retire the AF_MPLS protosw struct. Nothing is using it and the code was superclaudio2017-02-271-12/+6
| | | | | | | basic anyway. Simplifies the code a lot also by calling the mpls sysctl no longer via the protosw but instead directly. OK mpi@ on a previous diff. Also tested by renato@ who actually found a bug which is now fixed.
* Grab the NET_LOCK() in so{s,g}etopt(), pffasttimo() and pfslowtimo().mpi2016-12-201-7/+7
| | | | ok rzalamena@, bluhm@
* A NET_LOCK() was is missing in tcp_sysctl() which shows up as splbluhm2016-12-201-8/+16
| | | | | | | | | | softnet assert failures. It is better to place the lock into net_sysctl() where all the protocol sysctls are called via pr_sysctl. As calling sysctl(2) is in the slow path, doing fine grained locking has no benefit. Many sysctl cases copy out a struct. Having a lock around that keeps the struct consistent. Put assertions in the protocol sysctls that need it. OK mpi@
* Enforce that pr_ctlinput, pr_slowtimo and pr_fasttimo are calledmpi2016-11-221-4/+10
| | | | | | | | | at IPL_SOFTNET. This will allow us to keep locking simple as soon as we trade splsoftnet() for a rwlock. ok bluhm@
* replace the XXX next to setting link_maxhdr with an explanationdlg2016-03-031-2/+9
| | | | | | | | the XXX has been there since 1.1, even back in netbsd, and im too lazy to go back further to try and see why it is there. either way it is meaningless. suggested by mikeb@ and mpi@
* bump link_maxhdr up from 16 to 64dlg2016-03-031-3/+3
| | | | | | | | | | | | | | | | | | | | link_maxhdr is best explained as the space reserved before an ip packet payload for link headers, the most common of which is ethernet. 16 was a good choice when the only traffic we really did was ip over ethernet, but now there are commonly used transports that are bigger, specifically 802.11 traffic and vlan/vlan encapsulations, that justify bumping it up. i chose 64 because it would also allow enough space for encapsulations like etherip or gif. this reduces the size of the smallest packet that can fit into an mbuf before more storage needs to be suffixed, but because most traffic is either full sized (ie, already bigger than a single mbuf) or tiny packets (think tcp ACKS, keystrokes over ssh, or dns requests) the impact is negligible. ok stsp@ mpi@ sthen@ mikeb@
* Make every subsystem using a radix tree call rn_init() and pass thempi2015-09-041-3/+3
| | | | | | | | | | | | | | | length of the key as argument. This way every consumer of the radix tree has a chance to explicitly initialize the shared data structures and no longer rely on another subsystem to do the initialization. As a bonus ``dom_maxrtkey'' is no longer used an die. ART kernels should now be fully usable because pf(4) and IPSEC properly initialized the radix tree. ok chris@, reyk@
* Use a global table for domains instead of building a list at run time.mpi2015-08-301-31/+37
| | | | | | | As a side effect there's no need to run if_attachdomain() after the list of domains has been built. ok claudio@, reyk@
* manage spd entries by using the radix api directly instead ofblambert2015-07-171-13/+4
| | | | | | | | reaching around through the routing table original diff by myself, much improved by mikeb@ and mpi@ ok and testing mikeb@ mpi@
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* unifdef INETtedu2014-12-231-3/+1
|
* remove uneeded proc.h includesjsg2014-09-141-2/+1
| | | | ok mpi@ kspillner@
* "It's not the years, honey; it's the mileage."tedu2014-07-111-5/+1
| | | | | | bluetooth support doesn't work and isn't going anywhere. the current design is a dead end, and should not be the basis for any future support. general consensus says to whack it so as to not mislead the unwary.
* decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hderaadt2014-07-081-2/+1
| | | | | don't need to be married. ok guenther miod beck jsing kettenis
* lint is gone, and the 'lint' conditional was never in the implementationguenther2014-03-111-3/+1
| | | | | | namespace, so stop changing behavior when it's #defined ok beck@ krw@
* Remove max_datalen. It is only used once an can be replaced easily withclaudio2014-01-191-2/+1
| | | | MHLEN - max_hdr in that place. OK mikeb@
* tedu netnatm and ueagle(4).mpi2013-08-201-4/+1
| | | | ok mikeb@, sthen@, tedu@ (implied), doc bits ok jmc@
* begone, fucking rotten appletalk shit. ok roomhenning2011-07-091-4/+1
|
* Include PIPEX in kernel by default. And add new sysctl variableyasuoka2011-07-081-1/+6
| | | | | | | | `net.pipex.enable' to enable PIPEX. By default, pipex is disabled and it will not process packets from wire. Update man pages and update HOWTO_PIPEX_NPPPD.txt for testers. discussed with dlg@, ok deraadt@ mcbride@ claudio@
* timeout_add -> timeout_add_msecblambert2010-07-021-3/+3
| | | | ok claudio@ krw@
* Extend the protosw pr_ctlinput function to include the rdomain. This isclaudio2009-11-131-2/+2
| | | | | | | | needed so that the route and inp lookups done in TCP and UDP know where to look. Additionally in_pcbnotifyall() and tcp_respond() got a rdomain argument as well for similar reasons. With this tcp seems to be now fully rdomain save and no longer leaks single packets into the main domain. Looks good markus@, henning@
* netstat statistics for pflow(4) via pseudo familygollo2008-09-161-1/+7
| | | | ok cluadio@ henning@
* Import MPLS (Multi Protocol Label Switching)norby2008-04-231-1/+11
| | | | | | | | | | | | | MPLS support partly based on the (abandoned?) AYAME project. Basic LSR (Label Switch Router) functionality is present, but not fully functional yet. It is currently possible to insert entries in the LIB (Label Information Base) with route(8), but setting the operation type is not supported yet. Imported to allow more people to work on this in the coming weeks. ok claudio@ laurent@ dlg@
* remove remaining IPX hooks. all inside #ifdef IPX, so no actual changehenning2007-06-061-4/+1
|
* allow kernels with TCP_SIGNATURE (aka tcp md5sig), but without IPSEC tohenning2007-01-181-4/+4
| | | | | | compile and work. need to register pfkey whenever tcp md5 or ipsec is defined, and the various ipsec encapsulations only if ipsec is defined. ok theo
* nuke code that has been dead for so long that it stinks. claudio okhenning2006-06-151-7/+1
|
* bye bye netnshenning2005-06-081-4/+1
|
* remove CCITT handlinghenning2005-06-071-4/+1
|
* First step in Bluetooth protocol stack support.grange2005-01-141-1/+5
| | | | | | | | | | The code is adopted from the FreeBSD netgraph-based Bluetooth implementation by Maksim Yevmenkin <m_evmenkin@yahoo.com> but all netgraph glue was replaced with usual BSD network stack hooks. This is a work in progress. Only HCI layer works for now, L2CAP and RFCOMM are on the way. Help in testing from many, ok markus@.
* introduce pffinddomain(), to find a domain by family.pat2004-11-271-48/+47
| | | | | | | | while here, fix some spacing, ansi, de-register, etc. mostly from netbsd tested & ok otto millert
* remove special handling of PF_KEY in net_sysctl; ok deraadtmarkus2004-11-251-18/+2
|
* Kill more netiso ghosts.grange2004-09-151-4/+1
| | | | ok millert@
* use NULL for ptrs. parts from Joris Vinktedu2004-04-011-6/+6
|
* sysctl knob for bpf tunables. some tips from canacar@tedu2004-02-241-1/+8
| | | | ok canacar@ deraadt@ mcbride@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Nuke a whole bunch of commons; ok tedu (still more to come *sigh*)jason2003-05-121-1/+3
|
* First round of __P removal in sysmillert2002-03-141-4/+4
|
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-2/+2
| | | | (Look ma, I might have broken the tree)
* NATM domain; stoklund@taxidriver.dkderaadt2000-09-121-1/+4
|
* Use new timeouts for pfslowtimo and pffasttimo.art2000-03-231-11/+18
|
* bring in KAME IPv6 code, dated 19991208.itojun1999-12-081-7/+34
| | | | | | | | | replaces NRL IPv6 layer. reuses NRL pcb layer. no IPsec-on-v6 support. see sys/netinet6/{TODO,IMPLEMENTATION} for more details. GENERIC configuration should work fine as before. GENERIC.v6 works fine as well, but you'll need KAME userland tools to play with IPv6 (will be bringed into soon).
* make option IPSEC imply option KEYniklas1999-03-301-5/+5
|