summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* just use crypto/rijndael, and nuke opencrypto/rindael.[ch].ume2005-03-116-1293/+12
| | | | | | the two became almost identical since latest KAME merge. Discussed with: sam
* When setting up a socket in socreate(), there's no need to lock therwatson2005-03-111-3/+1
| | | | | | | | | | socket lock around knlist_init(), so don't. Hard code the setting of the socket reference count to 1 rather than using soref() to avoid asserting the socket lock, since we've not yet exposed the socket to other threads. This removes two mutex operations from each socket allocation.
* Remove suggestive sx_init() comment in soalloc(). We will have somethingrwatson2005-03-111-1/+0
| | | | like this at some point, but for now it clutters the source.
* integrate rijndael-alg-fst.h into rijndael.h.ume2005-03-115-44/+14
|
* Adding missing module dependency. This should fix the undefined symbolavatar2005-03-111-0/+1
| | | | | | error(ath_hal_computetxtime) during module loading. Reviewed by: sam (mentor)
* stop including rijndael-api-fst.h from rijndael.h.ume2005-03-118-10/+7
| | | | this is required to integrate opencrypto into crypto.
* The SO_NOSIGPIPE socket option allows a user process to mark a socketrwatson2005-03-111-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so that the socket does not generate SIGPIPE, only EPIPE, when a write is attempted after socket shutdown. When the option was introduced in 2002, this required the logic for determining whether SIGPIPE was generated to be pushed down from dofilewrite() to the socket layer so that the socket options could be considered. However, the change in 2002 omitted modification to soo_write() required to add that logic, resulting in SIGPIPE not being generated even without SO_NOSIGPIPE when the socket was written to using write() or related generic system calls. This change adds the EPIPE logic to soo_write(), generating a SIGPIPE signal to the process associated with the passed uio in the event that the SO_NOSIGPIPE option is not set. Notes: - The are upsides and downsides to placing this logic in the socket layer as opposed to the file descriptor layer. This is really fd layer logic, but because we need so_options, we have a choice of layering violations and pick this one. - SIGPIPE possibly should be delivered to the thread performing the write, not the process performing the write. - uio->uio_td and the td argument to soo_write() might potentially differ; we use the thread in the uio argument. - The "sigpipe" regression test in src/tools/regression/sockets/sigpipe tests for the bug. Submitted by: Mikko Tyolajarvi <mbsd at pacbell dot net> Talked with: glebius, alfred PR: 78478 MFC after: 1 week
* Fix typos in comments.stefanf2005-03-111-3/+3
|
* Use socklen_t where appropriate.stefanf2005-03-115-12/+18
|
* Simplify the print routines by using LST_FOREACH instead of Lst_ForEachharti2005-03-113-64/+66
| | | | | | and inlining the small printing utility functions. Create a function that can be used to produce printable representations of flag words.
* Check the return value of shutdown().rwatson2005-03-111-4/+8
|
* Remove leading underscores from the pathname defines. All identifiersharti2005-03-113-25/+29
| | | | | with leading underscore followed by an uppercase letter are in the implementation namespace.
* Remove the leading underscore from structure tags. All identifiersharti2005-03-112-5/+5
| | | | with a leading underscore are in the implementation namespace.
* sys/crypto/md5.[ch] is used from nowhere. So, just nuke them.ume2005-03-112-382/+0
|
* Add sigpipe, a simple UNIX domain socket and TCP regression test that isrwatson2005-03-112-0/+327
| | | | | | | | | | | | | intended to verify that SIGPIPE is delivered to a process writing or sending on a socket that has been shut down for write. If available, SO_NOSIGPIPE is also tested. This regression test is currently passed by RELENG_4, but not by HEAD or RELENG_5, due to a bug in the write() code for sockets. SO_NOSIGPIPE is not present in RELENG_4, however, so is not tested there. Reported by: Mikko Tyolajarvi <mbsd at pacbell dot net> PR: 78478
* - use 1/2 space for rijndael context in ipsecume2005-03-113-25/+14
| | | | | | | | - rijndael_set_key() always sets up full context - rijndaelKeySetupDec() gets back original protoype Reviewed by: sam Obtained from: OpenBSD
* Style: Fix indentation.harti2005-03-111-1117/+1129
|
* refer opencrypto/cast.h directly.ume2005-03-113-19/+10
|
* Call ParseFinishLine() also for the last line in a file. Thisharti2005-03-111-0/+3
| | | | | | | | | | | | | | patch differs from the previous one in that it calls the function only when a real file hits EOF. The bodies of .for loops are also handled as files, but for these we don't want to end a dependency block on the 'EOF' as in: foo: do-this .for ... do-something .endfor do-more
* Fix getting stats from many links with index > 0.glebius2005-03-111-1/+1
| | | | | Submitted by: Richard Kojedzinszky MFC after: 3 days
* Move common credential save and restore code into a separate file.dds2005-03-115-29/+86
| | | | Improve credential handling in pt_file.c
* Back out the last commit. It turns out that this breaks more thanharti2005-03-111-3/+0
| | | | it fixes. This should fix the buildworld breakage.
* Ensure the configuration file is given with an absolute file path.dds2005-03-111-0/+6
|
* Add examples for tcplisten, data scattering, and file views.dds2005-03-111-4/+35
| | | | Improve formatting of existing examples.
* Make the pps interrupt register as MPSAFE and FAST. Use a spin lockimp2005-03-111-6/+15
| | | | | | | | to syncrhonize access to the data as a result. This makes the pps less likely to miss the 1ms pulse that I'm feeding it, but not entirely reliable yet on my 133MHz P5. Reviewed by: phk
* Fix minor grammar and punctuation nits in a few recently-addedbmah2005-03-112-44/+44
| | | | entries.
* Doh! silly typo precludes compilingimp2005-03-111-2/+2
|
* Revert changes of 1.49. Lots-a-people broke with it, for reasonsimp2005-03-111-5/+9
| | | | | | | | | unknown (since my sony vaio didn't :-(. Instead, fix the problem described by 1.49 in a different way: just add the two calls I'd hoped I'd avoid in 1.49 by doing the (wrong) gymnastics there. While 1.49 is a good direction to go in, each step of the way should work :-(.
* SampleRate rate control algorithm for the ath driversam2005-03-116-0/+795
| | | | Submitted by: John Bicket
* Kill trailing white spaceimp2005-03-101-3/+3
|
* Add a new pipe sub-namespace.dds2005-03-105-2/+252
| | | | | | | | | | | This allows us to: - perform scatter gather operations without using temporary files, - create non-linear pipelines, and - implement file views using symbolic links. File view idea by: Vassilios Karakoidas Portalfs pointer by: John Ioannidis MFC after: 1 month
* Document new pipe sub-namespace.dds2005-03-101-13/+45
| | | | | | | Alphabetically order the description of the sub-namespaces. Add usage examples for the net and pipe sub-namespaces. MFC after: 1 month
* Make some basic grammar and style fixes to ng_source.c and ng_source.h.bmilekic2005-03-102-25/+14
| | | | | The latter was particularly violated by someone's editor in the past, due to an effect I like to call "premature linewrapping."
* fix spelling of match in comment...jmg2005-03-101-1/+1
| | | | MFC after: 3 days
* Plug item leak in macro NG_RESPOND_MSG. Item was leaked when destinationglebius2005-03-101-0/+1
| | | | | | node couldn't be addressed. Submitted by: Roselyn Lee
* Plug item leak in case when NGI_FN is applied to invalid node.glebius2005-03-101-0/+1
| | | | | Submitted by: Roselyn Lee MFC after: 3 days
* One more bit of the major/minor patch to make ttyname happy as well.phk2005-03-101-2/+11
|
* Try to fix the mess I made of devname, with the minimal subset of thephk2005-03-103-40/+64
| | | | larger minor/major patch which was posted for testing.
* Fix a couple of problems with the probe code when used with pnpbiosimp2005-03-101-9/+23
| | | | | | | | | | | | | | | | | | resources. When allocating 6 ports for a 4 port range isa code returns an error. I'm not sure yet why this is the case, but suspect it is just a non-regularity in how the resource allocation code works which should be corrected. Use 1 as the ports size in this case. However, in the hints case, we have to specify the length, so use 6 in that case. I believe that this is also acpi friendly. Also, complain when we can't allocate FDOUT register space. Right now we silently fail when we can't. This failure is referred to above. When there's no resource for FDCTL, go ahead and allocate one by hand. Many PNPBIOS tables don't list this resource, and our hints mechanism also doesn't cover that range. If we can't allocate it, whine, but fake up something. Before, we were always bogusly faking it and no one noticed the sham (save the original author who has now fixed his private shame).
* Update comment to reflect default GENCAT value (changed in previous rev)phantom2005-03-101-1/+1
| | | | Reminded by: Joerg Sonnenberger
* Constify Var_Dump and simplify it by inlining VarPrintVar.harti2005-03-102-15/+9
|
* Call ParseFinishLine() for the last line of a file too.harti2005-03-101-0/+3
|
* Add antifootshooting workaround, which will make all routes "connected"glebius2005-03-101-0/+6
| | | | | to carp(4) interfaces host routes. This prevents a problem, when connected network is routed to carp(4) interface.
* Reorganize Suff_EndTransform to be called only for nodes forharti2005-03-103-44/+40
| | | | which it is needed (transforms).
* MFen 1.274 -> 1.275den2005-03-101-4/+4
|
* Marginally reformat my copyright statement to remove the spurious ','.rwatson2005-03-101-1/+1
|
* Add a Russian override of dev-auto.sgml (device entities only)den2005-03-1015-15/+266
| | | | | | | | and example script which can translate some repeated device entities. With -o <file> option it can be used to update translated list of entities (skip translated ones). Obtained from: The FreeBSD Russian Documentation Project
* Backout revision 1.20. I was a misunderstanding.nyan2005-03-101-9/+9
| | | | | Pointed out by: Watanabe Kazuhiro Pointy hat to: nyan
* Remove early-adopter translation from HEADden2005-03-103-561/+1
|
* use cast128 in opencrypto to nuke duplicate code.ume2005-03-104-812/+10
|
OpenPOWER on IntegriCloud