summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-19Keep db_write_cmd() in the only place where it is used, just like we didMartin Pieuchot
with db_show_regs().
2016-04-19Instead of freeing a cached RTF_MPATH route after using it, free itMartin Pieuchot
when the next packet needs to be forwarded, just like if the route was invalid. ok mikeb@, claudio@
2016-04-19In pod2man(1), enable UTF-8 output by default and provide a --no-utf8Ingo Schwarze
command line option to disable it. The new default improves the formatting of Perl manuals using UTF-8 characters (for example perlunicook(1)) with man(1) and mandoc(1) no matter which locale the user has set. Issue discovered by and fix OK by afresh1@. Trying to push this change upstream would make no sense. It's the right thing to do only because we decided to not support any other locales except ASCII and UTF-8. A system trying to provide arbitrary locales simply cannot handle manuals containing UTF-8 characters at build time, so the change would produce wrong results.
2016-04-19Switch from fgetln() to getline() to simplify error handling.Philip Guenther
Use syswarn() in more places which set errno and regularize the error messages. Skip empty lines in the input read for tar -T, cpio -E, and cpio stdin. based on diff from mmcc@ ok millert@
2013-03-25import perl 5.16.3 from CPAN - worked on by Andrew Fresh and myselfStuart Henderson
2016-04-18syncTheo de Raadt
2016-04-18Make the aesni crypto implementation mpsafe. In order to do so this movesMark Kettenis
the working buffer from the softc into session struct. The list of sessions is protected by a mutex. There has been some discussion about what IPL should be used for the mutex. Initially my code used IPL_HIGH since that is the default to be used for subsystems that can be called from any other subsystem. But since the crypto code may call malloc/free, I settled on IPL_VM. Calling it from an interrupt handler that runs at a higher level is unsafe. Sorry, can't encrypt audio! ok mikeb@
2016-04-18add -T to SYNOPSIS;Jason McIntyre
2016-04-18Add a mechanism for dispatching mpsafe crypto operations. This adds a newMark Kettenis
CRYPTOCAP_F_MPSAFE flag that crypto implementations can set to indicate that their cc_process() implementation can safely run without holding the kernel lock. ok mikeb@
2016-04-18Delete redundant, empty callbacks;Ingo Schwarze
no functional change, minus hundred lines of code. OK martijn@; also proof-read by Christian Heckendorf <mbie at ulmus dot me>.
2016-04-18Update to tzdata2016d from from ftp.iana.org.Todd C. Miller
2016-04-18document the -T flagJoerg Jung
original diff from Bernard Spil ok millert
2016-04-18Bump the default of cachepercent to 90 to see if we can find problems beforeBob Beck
we try to remove it entirely ok deraadt@
2016-04-18Remove the hack that prevents changing pppoe params at runtime.Mike Belopuhov
The EBUSY hack imposes an order on the ifconfig commands issued against the pppoe interface used to configure the sppp layer below. To counter this we use the ENETRESET trick that other drivers use to tell the pppoe layer that sppp has requested a stop/init reset sequence to proceed which we oblige with in case pppoe is UP and RUNNING. Tested by semarie@ and Jan Schreiber <jes@posteo.de>, thanks!
2016-04-18Revert previous commit.Renato Westphal
When a process receives an EOF on a socketpair, it removes the event handler for that fd and then calls event_loopexit(). Once the process leaves the main loop, it calls its shutdown function. With that said, revert the previous patch because it was unnecessary. Pointed out and ok by deraadt@
2016-04-18Unbreak RAMDISK, found by deraadt@Martin Pieuchot
2016-04-18Put a KERNEL_LOCK/UNLOCK dance around sections that still need someMartin Pieuchot
work in the forwarding path. Tested by Hrvoje Popovski, ok dlg@
2016-04-18Print interface index after priority.Martin Pieuchot
Suggestion from claudio@, ok benno@, sthen@
2016-04-18allocate an array of entries, not pointers for the queuesDavid Gwynne
this solves my memory corruption problem with a samsung sm951 in a particular slot on a dell 2950. hilariously, i had picked values which masked this problem on sparc64. i randomly picked 128 as the number of entries on the queues, and dmamem allocs get rounded up to PAGE_SIZE. on amd64 and sparc64 this meant i was asking for 128 * 8 (sizeof pointer), or 1024 bytes, which got rounded up to 4096 and 8192 on each arch respectively. 128 * 64 (the size of a submission queue entry) is 8192, so it worked fine on sparc64 for that reason, but randomly blows up on amd64. the 2950 above allocated mbufs out of the page after the submission queue, which i ended over overwriting. anyway. let's move on.
2016-04-17all archs support shared libs; from bob nw8lJason McIntyre
ok sthen
2016-04-17fix typo, it is supposed to be smtpctl trace "filters" not "filter"Joerg Jung
from Boudewijn Dijkstra
2016-04-17document text editors and use some Ar; from rob pierceJason McIntyre
2016-04-17document pledge(2); from rob pierceJason McIntyre
2016-04-17tweak previous;Jason McIntyre
2016-04-17pool_setipl for the aesniplDavid Gwynne
it's set to IPL_VM to be conservative wrt its interaction with the crypto subsystem.
2016-04-17add pool_setipl after pool_init.David Gwynne
ok mlarkin@ stefan@
2016-04-16Replace bcopy() from struct bpf_timeval to struct timeval; thoseMartin Natano
structures are not exchangeable. This should unbreak connection timeouts in rbootd, although I can't verify due to lack of rboot-able hardware. ok guenther millert
2016-04-16Remove am_maxslot from amap.Stefan Kempf
am_maxslot represents the total number of slots an amap can be extended to. Since we do not extend amaps, this field as well as rounding the number of slots to the next malloc bucket is not useful. This also removes the corresponding output from procmap(1). ok kettenis@
2016-04-16Change last non-/gnu/ fcntl(x, F_GETFL, 0) strays to fcntl(x, F_GETFL).Kenneth R Westerback
No functional change. ok millert@
2016-04-16Make the gmbus code work on valleyview.Mark Kettenis
ok jsg@
2016-04-16fallback to _pfetch after _pkgfetch until sysmerge is run automaticallyMarc Espie
2016-04-15don't allow removal of /. more robust approach involving stat this time.Ted Unangst
posix uses the language "resolves to the root directory" in this case. ok millert
2016-04-15Rename five static functions to make the classification of functionsIngo Schwarze
as parsers, page generators, and result generators more obvious. No functional change.
2016-04-15Document PROTO_NORMAL requires matching DEF_{,NON}STDPhilip Guenther
2016-04-15PROTO_NORMAL(pthread_cond_signal) requires DEF_STD(pthread_cond_signal)Philip Guenther
2016-04-15make pthread_barrier_wait behave more like it does on other platforms.Ted Unangst
from Kari Tristan Helgason
2016-04-15prefer warn[x](3) over fprintf(3) where appropriateIngo Schwarze
2016-04-15Fix parsing of PATH_INFO if both a section directory and anIngo Schwarze
architecture subdirectory are specified. Issue reported by tb@.
2016-04-15Check for subnet overlap between the configured summary-addresses.Renato Westphal
2016-04-15Kill the child processes if their parent dies unexpectedly.Renato Westphal
There's no point on keeping eigrpd running if any of its processes dies unexpectedly.
2016-04-15Fix segfault on reloading the config multiple times.Renato Westphal
2016-04-15Properly implement the clear_config() function.Renato Westphal
We need to free the internal pointers of the eigrpd_conf struct, not only the main struct. This avoids memory leaks when a config reload happens to fail (e.g. due to a syntax error).
2016-04-15Move several other variables out of eigrpd_conf.Renato Westphal
Now eigrpd_conf contains only variables that can be modified via a config reload. The other variables were moved to a new struct called eigrpd_global, which is now a central point for storing global variables.
2016-04-15Move the command line options out of struct eigrpd_configRenato Westphal
into an own flag field since these can't be modified via a config reload. Pulled from bgpd. Original author: claudio@
2016-04-15Fix corner case in Feasible Condition check.Renato Westphal
From the EIGRP draft: "The Feasibility Condition is met when a neighbor's advertised cost, (RD) to a destination is less than the Feasible Distance for that destination". So, according to the draf, when the Reported Distance is EQUAL to the Feasible Distance, the Feasible Condition is NOT met.
2016-04-15Minor fixes and code cleanup.Renato Westphal
* whitespace cleanup; * copy in_addr structs directly; * add more malloc return value checks; * fix some log messages; * turn ifacecnt into a static variable; * use eigrp_addrcmp() on if_deladdr() to avoid code duplication; * s/route_print_origin/log_route_origin/ * more smaller issues.
2016-04-15Kill in_rtaddr() and use rtalloc(9) directly in ip_dooptions().Martin Pieuchot
This brings ip_dooptions() closer to mp-safeness by ensuring that ``ifa'' is dereferenced before calling rtfree(9). ok mikeb@
2016-04-15enable nvme(4)Jonathan Gray
ok dlg@
2016-04-15remove ml_filter, mq_filter, niq_filter.David Gwynne
theyre currently unused, so no functional change.
2016-04-15rename ifv_p to ifv_ifp0David Gwynne
this makes it more clear to the casual reader that it refers to the parent interface, which is consistently referred to as ifp0 in the rest of the vlan (and carp) code. this is a good idea from mpi@