summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-07-19Replace two instances where ed is used for inplace editing of filesRobert Peichaer
with the new sed -i. "Nice" deraadt@ OK krw@ jasper@
2015-07-19Add missing LIST_INIT's.Renato Westphal
ok claudio@
2015-07-19Implement md5 authentication support.Renato Westphal
ok claudio@
2015-07-19Rework label mapping algorithms to be more in line with the RFC.Renato Westphal
This patch presents a thoroughly review of the label mapping algorithms. Most of the changes are minor bug fixes in the handling of received label messages. Additional improvements: * Add a few more references to the Appendix A of the RFC5036 ("LDP Label Distribution Procedures") into the code; * Add full multipath support; * Send label withdraws when appropriate; * Add label withdraw/release wildcard support. NOTE: As a result of implementing only the "Liberal Label Retention" and "Downstream Unsolicited" modes, we will never send a label request ("Request Never"). And that means that we can ignore the following notification messages: "Label Request Aborted", "No Label Resources", "No Route" and "Label Resources Available". The following algorithms mentioned in the RFC can also be ignored: "Timeout of Deferred Label Request", "Detect Local Label Resources Have Become Available" and "Receive Label Abort Request". Now, considering that we only support one combination of all modes of operation, we can say that we have an almost complete implementation of the protocol. ok claudio@
2015-07-19Remove incomplete support for unnecessary modes of operation.Renato Westphal
LDP has several modes of operation, it was designed in that way so it could run on legacy equipment like ATM/FR switches with very strict memory limitations. For modern hardware there's no point on using either the "Conservative Label Retention" or "Downstream On Demand" modes of operation since they save memory at cost of blackholing traffic when routing changes. Major vendors implement only the "Liberal Label Retention" and "Downstream Unsolicited" modes for non ATM/FR hardware. Let's do that too. As for using either "Independent Control" or "Ordered Control", let's stick with the first option mainly because it's easier to implement and because it doesn't really matter which control mode is used. For reference, Cisco implements only "Independent Control" and Juniper only "Ordered Control". Both modes are interoperable. The point of supporting only one combination of all modes of operation is that it will allow for the writing of a simpler code without removing useful functionality. ok claudio@
2015-07-19Add infrastructure for specifying a "version script" for the shared libraryPhilip Guenther
being built. ok kettenis@ zhuk@ millert@
2015-07-19Allow *_free() functions in libssl to handle NULL input.Doug Hogan
This mimics free()'s behavior which makes error handling simpler. ok bcook@ miod@
2015-07-19Test octet counting and non transparent framing.Alexander Bluhm
2015-07-19For incoming TCP message streams autodetect wether the method isAlexander Bluhm
octet counting or non transparent framing. OK benno@
2015-07-19Always source rc.subr to be able to use the rc.conf parsing routineRobert Peichaer
to get the network related vars from rc.conf. This is even necessary if netstart is run from within /etc/rc. Remove test of $INRC which unintentionally evaluated always to true. problem with previous change found by nigel@ OK sthen@ aja@ halex@
2015-07-19Use the %c (version or snapshots) and %a (package architecture) forRobert Peichaer
installpath in pkg.conf instead of hardcoding that information. This fixes the problem, that installpath has a path from an older release after updating from disk for a while. NOTE: This matches fw_update behaviour in that during a beta cycle, it will expand to 5.8 (for e.g.) instead of snapshots. requested by and OK ajacoutot@ OK halex@ krw@
2015-07-19show tame flagTheo de Raadt
2015-07-19stop doing etc regress by defaultTheo de Raadt
2015-07-19Make i386_send_ipi() return voidStefan Fritsch
Nobody uses its return value.
2015-07-19Make x86_send_ipi() return voidStefan Fritsch
Nobody uses its return value. This fixes it returning an undefined value since the previous commit.
2015-07-19Uninstall associated label bindings when a neighbor is down.Renato Westphal
ok claudio@
2015-07-19Drop stupid (int) casts for the arguments of malloc() and friends. This isMiod Vallat
not 16-bit MS-DOS anymore. ok bcook@ tedu@
2015-07-19Rework kroute.c to send only the best routes to lde.Renato Westphal
This is major rework of the kroute.c code. The idea is remove complexity from the lde process by making kroute.c advertise only the lowest priority routes of each prefix. kroute.c now keeps track of all routes using three different structures: kroute_prefix, kroute_priority and kroute_node. kroute_prefix represents a prefix and contains an ordered list of priorities (kroute_priority) and for each priority there is a list of nexthops (kroute_node). Arranging the routes using these three structures allows for the writing of a simpler code, easier to understand. Whenever a route is removed, if there's another route for the same prefix, but with a lower priority, this route is immediately sent to lde. Additional fixes: * On RTM_CHANGE, remove the old route before installing the new one; * On IMSG_CTL_KROUTE_ADDR, show all nexthops for multpath routes;
2015-07-19when using -D, do not use the mode set for the target file as the directory modeJasper Lievisse Adriaanse
ok millert@
2015-07-19unifdef -UCBC_HANDLES_TRUNCATED_IOMiod Vallat
ok bcook@ doug@
2015-07-19Verify ASN1 objects types before attempting to access them as a particularMiod Vallat
type. ok guenther@ doug@
2015-07-19Stop passing daddr_t parameters for lengths. Use long since that's the typeKenneth R Westerback
of the destination fields. ok jsing@
2015-07-19Enable GPT kernel support. Discussed with a few. OK miod@Brandon Mercer
2015-07-19Change some obviously incorrect usages of daddr_t (a DEV_BSIZEKenneth R Westerback
address) to 64 signed or unsigned ints. Add some paranoia checks during partition size calculations to account for the fact that partition sizes (DL_GETPSIZE()) are unsigned values. More daddr_t rectification to do. ok jsing@
2015-07-19remove unused compat files, ok florian@Stuart Henderson
b64_{ntop,pton} remain for now, they are in libc as __b64_{ntop,pton} but to use this we either need to pull in resolv.h (which does "#define b64_ntop __b64_ntop") or access the __ versions directly (as done in ssh).
2015-07-19Define new C99 macros:Martynas Venckus
- MATH_ERRNO, MATH_ERREXCEPTION and math_errhandling - Optional FP_FAST_FMA{,F,L} macros if fma() executes as fast or faster than (x * y) + z; which in practice is achievable if gcc implements __FP_FAST_FMA{,F,L} Reported by John Marino @ DragonFlyBSD.
2015-07-19Make exponents of x and y signed and fix esx and esyMartynas Venckus
comparisons. The offending input in gfortran's round_4.f90 was nextafterl(0.10000000000000000000135525271560688L, -INFINITY) which caused an ulp addition rather than subtraction. Reported by John Marino @ DragonFlyBSD.
2015-07-19remove code from unbound's rc script that generates control keys/certs ifStuart Henderson
control-enable is used, our standard configuration is using unix domain sockets without certs. existing setups with already-created certificates are ok, if somebody needs remote+certs they can generate keys themself. ok florian@
2015-07-19change default unbound config to enable the control socket, without usingStuart Henderson
keys/certificates for auth. ok florian@
2015-07-19figure out the linewidth at initialization, rather than lateTheo de Raadt
ok tedu miod
2015-07-19Oops. Missed a file from offset commit.Kenneth R Westerback
2015-07-19tweak previous; ok dougJason McIntyre
2015-07-19sort; ok deraadtJason McIntyre
2015-07-19Stop adding and subtracting data offset. Just keep to chunk relativeKenneth R Westerback
block offsets until actual i/o is constructed and needs the physical offset. Eliminate a number of <<DEV_BSIZE shifts as a bonus. No intentional functional change. Fixed and ok jsing@
2015-07-19Add proper kernel locking in the fpe_branch_emulate() function, tovisa
prevent race conditions that could corrupt amap entries, among other things. ok miod@ pirofti@
2015-07-19Add the documentation of -Wbounded and attribute(bounded) from gcc-local(1)Miod Vallat
to the gcc info documentation as well.
2015-07-19Register the IPI handler early enough for the correct idle_mask tovisa
propagate to all threads. Otherwise early-started kernel threads run IPIs disabled, which will lead to a deadlock soon after other cores have started. ok miod@ pirofti@
2012-07-09NSD v3.2.11, ok phessler@Stuart Henderson
2010-04-15NSD v3.2.5Jakob Schlyter
2010-01-15NSD v3.2.4Jakob Schlyter
2009-10-15import of gcc-4.2.1, the last gcc release under GPLv2Robert Nagy
2015-07-19Stop adding and subtracting data offset. Just keep to chunk relativeKenneth R Westerback
block offsets until actual i/o is constructed and needs the physical offset. Eliminate a number of <<DEV_BSIZE shifts as a bonus. No intentional functional change. Fixed and ok jsing@
2015-07-19whitespace;Jason McIntyre
2015-07-19spell out complete path to config file, okay tedu@Marc Espie
2015-07-19handle error returns from bufferevent_write()Bret Lambert
ok florian@
2015-07-19typo; ralf horstmannTheo de Raadt
2015-07-19Use two 2q caches for the buffer cache, moving previously warm buffers from theBob Beck
first queue to the second. Mark the first queue as DMA in preparation for being able to use more memory by flipping. Flipper code currently only sets and clears the flag. ok tedu@ guenther@
2015-07-19Use DEV_BSIZE instead of 512 where appropriate. Use DL_SECTOBLK()Kenneth R Westerback
where appropriate. Noop for disks with 512-byte sectors. i.e. the only kind currently allowed in softraid volumes. But starts laying the groundwork to allow disks with other sector sizes. ok jsing@
2015-07-19Don't emit values for 'width' thatKenneth R Westerback
/usr/xenocara/driver/xf86-input-synaptics/src/wsconscomm.c doesn't understand. 'Fixes' synaptics trackpad in Dell L400 laptop so the cursor can be moved in X. Problem noted and experimental Dell L400 donated by Paolo Aglialoro. Thanks! ok miod@ mpi@ jcs@
2015-07-19knock out "Ns Li" before colons - the Li was being ignored anyway, and iJason McIntyre
don;t think the colon needs marked up.