summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* We should only call need_resched() if the priority is lower than thehaesbaert2012-07-101-2/+4
| | | | | | | | | | | | | | | priority of the current running process. In amd64 a call to need_resched() sends an IPI to the other cpu. This fixes aja@ problem where he would move the mouse and see 60000 IPIs being sent. Thanks to mikeb@ for bringing that subject up tuesday. Actually found this after inquiring guenther@ about some changes in mi_switch(). ok guenther@ aja@
* Add a subtest to the MTU ping that checks wether the ip length ofbluhm2012-07-103-13/+27
| | | | the original packet and the icmp quoted packet are the same.
* ouch, Rresolved and libsearchdirs no longer live in main, so make themespie2012-07-105-34/+59
| | | | | | part of $gp as they should be... Oh, and create an actual linker object for later.
* accept address literal for the recipient domain.chl2012-07-102-6/+27
| | | | | | | | while there, change valid_{local,domain}part() prototypes to use const char *. with input from gilles@ and eric@ ok gilles@ eric@
* simplify the code, improve error handling and plug a potential fd leak on erroreric2012-07-101-71/+101
|
* Ooops. A debug printf sneaked in. Sorry about that.pirofti2012-07-101-2/+1
|
* Place declarations for internal radix functions inside radix.c, stopblambert2012-07-102-7/+9
| | | | | | exporting them to the outside world via radix.h. ok claudio@ sthen@ henning@
* move some shit around to (more or less) where it belongsespie2012-07-103-8/+12
|
* More wraping and style.pirofti2012-07-101-11/+22
|
* Remove a hack that was intended for groff-1.15 bug compatibility:schwarze2012-07-103-15/+7
| | | | | | | When the width of a tag in .Bl -hang was exactly one character shorter than the maximum length that would fit, the following text would have a negative hang of one character (i.e., hang to the left). That bug is no longer present in groff-1.21, so relax mandoc, too.
* Wrappirofti2012-07-101-6/+11
|
* fix pexphalex2012-07-101-2/+2
| | | | ok robert@
* fix regexp in pexphalex2012-07-101-2/+2
| | | | ok robert@
* * implement -Tman .Bl -item -inset -diag -ohang -dash -hyphen -enum .Itschwarze2012-07-1015-26/+630
| | | | | | | | | | * fix -Tman .Bl -bullet .It * adjust the -Tascii .Bl -bullet -dash -hyphen .It default and minimum width to new groff standards, it changed from 4n (in groff 1.15) to 2n (in groff 1.21) * same for -Tascii -enum, it changed from 5n to 2n * use -hang formatting for -Tascii -enum -width 2n * for -Tascii -enum, the default is -width 3n
* since disklabel -W is no more, zap it from all the install.md'shalex2012-07-1020-40/+20
| | | | ok krw@
* Rename "life" to "lifetime" to match iked.lteo2012-07-109-49/+74
| | | | ok mikeb naddy sthen; procedures ok henning
* bye-bye Getopt::Longespie2012-07-104-82/+75
|
* Fix usage.nicm2012-07-101-2/+3
|
* disable lidsuspend on shutdownhalex2012-07-101-1/+18
| | | | ok phessler@ mpf@ pirofti@ mpi@
* make pkill -l print the proper processes also when the invert (-v)halex2012-07-101-7/+4
| | | | | | flag is passed ok lum@
* Add ~R command to start recording output to a file.nicm2012-07-104-4/+35
|
* Kill trailing whitespaces.bluhm2012-07-1018-19/+19
|
* Add a test suite to route ip packets through a box running pf. Youbluhm2012-07-103-0/+239
| | | | | | | | have to setup four machines manually as described in the makefile. The test uses netcat and scapy to send ping or udp echo packets or tcp streams along the routers. It analyzes the returned reply or icmp error packets. It tests the forward and net/rdr and net64 paths.
* use the value actually passed to the functioneric2012-07-101-2/+2
|
* clean-up shit, pull some of LT::Util into ltconfig objectespie2012-07-106-51/+82
| | | | make that a somewhat more "real" object...
* Use function to restore termios and add ~X to help.nicm2012-07-102-6/+5
|
* Trim some unused externs.nicm2012-07-101-3/+1
|
* xfree is not particularly helpful, remove it. From Thomas Adam.nicm2012-07-1073-433/+402
|
* Instead of <arpa/inet.h> pulling in <netinet/in.h>, just copy in theguenther2012-07-103-4/+31
| | | | | | | three things that it needed from there: INET_ADDRSTRLEN, INET6_ADDRSTRLEN, and struct in_addr. Add protecting #ifndefs to netinet6?/in6?.h for those. ok deraadt@
* Stop pulling in <sys/param.h>guenther2012-07-101-7/+2
| | | | ok deraadt@
* bsearch() doesn't belong here (it's in <stdlib.h>)guenther2012-07-101-4/+2
| | | | | | Add __restrict bits for tdelete() ok deraadt@
* For setsockopt(SO_{SND,RCV}TIMEO), convert the timeval to ticks usingguenther2012-07-101-6/+4
| | | | | | tvtohz() so that the rounding is correct and we don't time out a tick early ok claudio@
* Add builtin XMODEM send support with ~X, only tested with lrz -X so far.nicm2012-07-105-5/+205
|
* full support for -static -shared -prefer-pic -prefer-non-pic -fpie*espie2012-07-102-15/+42
| | | | in --mode=compile
* pass the option string along as a 4th parameter, in cases canonical isespie2012-07-101-12/+12
| | | | not all that matters (e.g., -fpie and friends)
* nitespie2012-07-101-2/+2
|
* dd all kinds of funky tests for compile modeespie2012-07-101-5/+93
|
* - simplify the scheduler loop logic further, it is ridiculously simple nowgilles2012-07-103-49/+32
| | | | | | | | | and I don't think we can do much better (at that level) :-p - always break out of the handler after processing an envelope, this will avoid a busy scheduler from not getting a chance to handle SIGTERM/SIGINT YES we can now ctrl-c a maaaaad scheduler ! ok eric@, ok chl@
* +limits.h.nicm2012-07-101-1/+2
|
* Once we've set up termios, lines need to be \r\n terminated, and we neednicm2012-07-106-28/+117
| | | | | to reset termios before exiting. So add custom versions of err(), errx(), warn(), warnx() to handle this.
* more config, sort stuff for easier spottingespie2012-07-102-5/+8
|
* move set prio/tos into OPTIONS; ok henningjmc2012-07-101-48/+47
|
* Try to cleanup the macro magic because of socket spliceing. Since structclaudio2012-07-102-28/+17
| | | | | socket is no longer affected by option SOCKET_SPLICE we can simplyfy the code. OK bluhm@
* use PFSTATE_SCRUBMASKhenning2012-07-101-4/+2
| | | | | whenever you see (flags >= ONE_OF_THE_FLAGS), run. that must break sooner or later.
* define a PFSTATE_SCRUBMASK. relying on numeric order of flags is stupidhenning2012-07-101-1/+2
| | | | and bound to break sooner or later.
* closefrom(STDERR_FILENO + 1) not STDOUT_FILENO so that output actually appears ;-).nicm2012-07-101-3/+3
|
* Allow an implicit address family for af-to rules. If the addressbluhm2012-07-101-14/+6
| | | | | | | family can be determined by the "from" or "to" parameter in the matching part, it is no longer necessary to specify "inet" or "inet6" there. OK henning@ mikeb@
* intermediate hack^Wugly "fix" to prevent spurious "scrub ()" printshenning2012-07-101-2/+4
| | | | + XXX comment as reminder to clean this up for good
* Better handling of servname in getaddrinfo_async. Do not necessarilyeric2012-07-101-11/+16
| | | | | fail if there is no entry for a given protocol. Fix issue reported by early testers.
* set { ... } -> set ( ... )henning2012-07-102-5/+5
| | | | brought up by ryan, discussed with him and theo and they convinced me