summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-09-02Bring over 1.117 from ping:Florian Obser
---------------------------------------------------------------- Only read time information from the received packet if it is big enough. OK deraadt@ ---------------------------------------------------------------- And with this summary() is in sync between ping and ping6.
2016-09-02timinginfo is a flag to track if the received icmp packet is bigFlorian Obser
enough to carry timing information. Do not treat it as a counter as it could overflow.
2016-09-02Reduce ping/ping6 difference in summary().Florian Obser
No functional change.
2016-09-02work on making log.c similar in all daemons:Sebastian Benoit
move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok claudio@, feedback from henning@, deraadt@, reyk@
2016-09-02work on making log.c similar in all daemons:Sebastian Benoit
move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok claudio@, feedback from henning@, deraadt@, reyk@
2016-09-02work on making log.c similar in all daemons:Sebastian Benoit
move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok claudio@, feedback from henning@, deraadt@, reyk@
2016-09-02When "makewhatis -d" tries to add to a database that doesn't (yet) exist,Ingo Schwarze
silently create it from scratch instead of printing a warning. The annoying warning message was reported by ajacoutot@, and espie@ convincingly argues that a non-existing database can be considered equivalent to an empty one.
2016-09-02work on making log.c similar in all daemons:Sebastian Benoit
move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok claudio@, feedback from henning@, deraadt@, reyk@
2016-09-02work on making log.c similar in all daemons:Sebastian Benoit
move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok claudio@, feedback from henning@, deraadt@, reyk@
2016-09-02Remove unused argument in aml_showvalue().Paul Irofti
The second argument of aml_showvalue() was probably supposed to set the verbosity level through dnprintf() but in fact it does nothing. OK deraadt@
2016-09-02in6_selectroute should never get a valid struct route * filled with somethingVincent Gross
else than AF_INET6. Ok florian@
2016-09-02use imsg_read_nofd() implementation from bgpd.Eric Faurot
let the caller handle EAGAIN. ok gilles@
2016-09-02Remove old pod docs that are not used or installedBob Beck
2016-09-02use imsg_read_nofd() implementation from bgpd.Eric Faurot
let the caller handle EAGAIN. ok reyk@ gilles@
2016-09-02After allocating a single 64 KB mbuf cluster in sosend(), the sendingAlexander Bluhm
socket buffer had no space anymore. The default mbuf space limit was only 32 KB. So no more data from user-land was accepted. As tcp_output() keeps the mbuf cluster for retransmits, it will be freed only after all ACKs have been received. That has killed our TCP send performance totally. To allow cycling through the mbufs periodically, we need space for at least 3 of them. Reported by Andreas Bartelt; testing with mikeb@; OK mikeb@ claudio@
2016-09-02As done in httpd, (re-)initialize ps_what in all processes. This isReyk Floeter
no functional change at this point.
2016-09-02Fix misleading 'No valid MBR or GPT' message when no OpenBSD area is found.Paul Irofti
The current code is too strict and checks for an OpenBSD area inside an MBR or GPT and if it fails to find one reports that there's no valid MBR or GPT (which is misleading because the MBR/GPT is valid). Instead, do two checks (similar to i386): first see if there's an MBR or GPT present on the disk and if there is then check for the OpenBSD area. OK krw@, halex@.
2016-09-02move links from http to https://www.openbsd.org/Theo Buehler
ok beck
2016-09-02style nit as done in httpdReyk Floeter
2016-09-02As done in httpd, remove ps_ninstances and p_instance.Reyk Floeter
OK benno@ rzalamena@
2016-09-02backout accidental commitTheo de Raadt
2016-09-02Make build deterministic by not randomizing the datfiles themselves,Theo Buehler
random lines are selected on output and that's enough. From daniel, ok tb
2016-09-02Terminate relayd using the socket status instead of watching SIGCHLDReyk Floeter
or killing child processes. - Based on rzalamena@'s diff for httpd. OK deraadt@ rzalamena@
2016-09-02Consider when a prefix expires when sending solicitations instead ofFlorian Obser
blindly always sending one every 60 seconds. repeated prodding & input naddy input & OK vgross
2016-09-02Make build deterministic by removing a line that records the date ofTheo Buehler
generation. From daniel, ok tb
2016-09-02syncStuart Henderson
2016-09-02provide a pool_setipl so tcpdump can compile this fileDavid Gwynne
spotted by deraadt@
2016-09-02proc.c tweaks: Rename proc_listento() to proc_accept() as it is theReyk Floeter
receiving side of proc_connect(). Move some code from main into proc_init(), the function is now called by parent and children, not just the parent and it is less copy + paste for other daemons. OK florian@
2016-09-02Pull in Chacha20 and Poly1305 source code as xform.o dependenciesMike Belopuhov
2016-09-02Pull in Chacha20 and Poly1305 source code as xform.o dependenciesMike Belopuhov
2016-09-02provide an implementation of red black trees using functionsDavid Gwynne
the main goal of this change is to reduce the amount of code that is generated as a result of using the macro implementation (RB_FOO) of red black trees. on amd64 we should get a few dozen kilobytes of code space back, and make red black trees more icache friendly at the same time. the new (RBT_FOO) implementation is modelled on the existing one, but has some minor api variations. generally you can replace RB_ with RBT_ and get most of the way to converting code. internally the red black tree functions all take an rb_type struct that describes the layout of the object wired into a tree (ie, the offset of the RBT_ENTRY inside a node), the comparison function, and an optional augment function. because the functions are supposed to be used for all types, they end up taking void * for the node pointers instead of specific types. the tree is operated on as pointers between the RBT_ENTRY structs instead of the nodes, which gave me some type safety when implementing the code (cos casts to/from void * dont ever fail, and continually calculating the offset of the rb entry is annoying). RBT_ENTRYs are turned into node pointers by prepending the offset stored in the rb_type struct before theyre given to the comparison function or returned to the caller. to provide type safety on top of this, RBT_PROTOTYPE generates static inline function wrappers that only take arguments of the right type, and implicitly provide the rb_type struct argument to the actual RBT functions. therefore the actual functions should never be called directly, all calls should go through the RBT_ wrappers. RBT_GENERATE is responsible for creating the rb_type struct used by these wrappers. notably it also generates a wrapper around the compare function so the user provided one must take the right types instead of void *. in terms of speed, this code is comparable to the macro implementation. eg, insertion is very slightly slower in microbenchmarks, but deletion appears to be significantly faster. this is possibly because of the aggressive inlining ive done inside the delete codepaths. the code is not yet wired into the kernel build. it also needs to be said that there have been several attempts before this to provide functions for at least some parts of the kernels red black trees. that work made this a lot easier. ok deraadt@ jung@ tedu@
2016-09-02Pass M_ZERO when allocating memory for "struct usbd_endpoint".Martin Pieuchot
These descriptors are filled with value parsed from untrusted USB descriptors and we don't want to left memory unitialized if an error occurs during the parsing.
2016-09-02Treat backoff_cutoff as a hard cutoff, not the midpoint in a rangeKenneth R Westerback
from .5 to 1.5 ofthe value. This is how the man page describes it and nobody can remember why it was not being used as a hard limit. ok benno@
2016-09-02for reporting changes, hex and decimal were swappedTheo de Raadt
noticed by pirofti
2016-09-02Adjust for the new default MODP groupMike Belopuhov
2016-09-02Cleanup usbd_fill_iface_data() to make it easier to check for badMartin Pieuchot
descriptors. No functionnal change.
2016-09-02Allow editing cpg in expert mode and align the cpg field properlyOtto Moerbeek
ok krw@
2016-09-02Remove obsolete DES-CBC testsMike Belopuhov
2016-09-02krb5 bits should rest in peaceGleydson Soares
OK deraadt
2016-09-01remove sparc supportTed Unangst
2016-08-31Crank minor due to API additionBob Beck
2016-08-31Avoid undefined-behavior right-shifting by a word-size # of bits.Brent Cook
Found with STACK, originally from OpenSSL, ok @beck
2016-08-31Bring in functions used by stunnel and exim from BoringSSL - this bringsBob Beck
in X509_check_host, X509_check_email, X509_check_ip, and X509_check_ip_asc, with some cleanup on the way in by myself and jsing@ ok bcook@
2016-08-31Fix some very unnecessary convoultion.Bob Beck
ok krw@
2016-08-27Be more strict when parsing TLS extensions.Joel Sing
Based on a diff from Kinichiro Inoguchi. ok beck@
2016-08-07Update the link for the getentropy(2) manual to man.openbsd.org/Theo Buehler
ok deraadt@
2016-08-05Do not *printf %s NULLTheo de Raadt
ok bcook
2016-07-31bump for LibreSSL 2.5.xBrent Cook
2016-07-18don't mix code and decls, ok tedu@Brent Cook
2016-07-17use memset to initialize the unionBrent Cook