summaryrefslogtreecommitdiffstats
path: root/lib/libcxx/src/algorithm.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-09-11add the conflict info to what's stored in pkglocatedb, as it's meta-infoespie1-1/+13
that's not readily available otherwise.
2018-09-11Fix --exclude-libs option. Based on code already committed upstream.kettenis1-1/+1
tested by naddy@
2018-09-11Tighten validation tests on an obscure corner case ofkrw1-7/+16
trying to align partitions to size <= 0 or past the end of the disk. Emit error message in this case as in other align errors. Looks good to otto@.
2018-09-11Remove unused buffer from host()kn1-10/+5
Left-over from pre-host_ip() times. While here, use __func__. OK henning benno
2018-09-11add files for test 4benno3-0/+630
2018-09-11- moving state look up outside of PF_LOCK()sashan6-54/+255
this change adds a pf_state_lock rw-lock, which protects consistency of state table in PF. The code delivered in this change is guarded by 'WITH_PF_LOCK', which is still undefined. People, who are willing to experiment and want to run it must do two things: - compile kernel with -DWITH_PF_LOCK - bump NET_TASKQ from 1 to ... sky is the limit, (just select some sensible value for number of tasks your system is able to handle) OK bluhm@
2018-09-11Add defines for amd microcode msrs which appear to be present since k8jsg2-2/+6
though amd only provides public redistributable updates for >= family 10h.
2018-09-11Do not check for mouse events on pane borders when zoomed, based on anicm1-16/+23
fix from Avi Halachmi.
2018-09-11Fail fast when we are unable to determine disk format.ccardenas2-21/+34
While here, minor cleanup on logging.
2018-09-11Add ability to create qcow2 disk.ccardenas4-13/+144
vmctl create now takes an optional disk format parameter: raw or qcow2. If format is omitted, raw is used. Many thanks to Ori Bernstein.
2018-09-10Remove useless INPCBHASH() macros. Just expand them.bluhm1-31/+24
OK stsp@
2018-09-10Merge host_v{4,6}() into simpler host_ip()kn1-45/+28
Except for networks such as "10/8" host_ip() now handles addresses in an AF-agnostic way with more duplicate code removed/merged. OK sashan (as for earlier copy_satopfaddr() diff) henning
2018-09-10check orlonger option of trie_match()benno5-182/+194
2018-09-10logmsg(LOG_ERR) -> logerr(); ok tedu@anton1-2/+2
2018-09-10Prevent a panic in umb(4) when roaming is diabled.gerhard1-8/+11
Found by beck@, tested and ok by bluhm@
2018-09-10- if_cloners list populated at boot time only then becomes immutable,sashan4-28/+24
so we can let go if_cloners_lock. OK tb@, claudio@, bluhm@, kn@, henning@
2018-09-10Introduce copy_satopfaddr()kn1-50/+26
Move the same dance around v4/v6 for copying IP addresses from sockaddr into pf_addr to avoid duplicate code and improve readability. Feedback and OK bluhm
2018-09-10Instead of calculating the mbuf packet header length here and there,bluhm8-59/+34
put the algorithm into a new function m_calchdrlen(). Also set an uninitialized m_len to 0 in NFS code. OK claudio@
2018-09-10if_setrdomain could potentially call if_clone_create recursively in the createhenning1-32/+35
rdomain case leading to locking issues and lots of headscratching. turns out the only case where if_setrdomain could actually create an rdomain and thus end up with that pattern is the ioctl path. make if_setrdomain never create an rdomain, return error if it doesn't exist already, introduce if_createrdomain, and adjust the ioctl path to use it. ok sashan bluhm claudio
2018-09-10in pf_syncookie_validate, return early if we don't have syncookies inhenning1-2/+6
flight that can possibly match. there is a tiny but existing chance that a sequence number matches w/ our hash and we'd end up dropping traffic. unclear whether that has actually happened since the report chain is long :) report via haesbert via bluhm; ok bluhm
2018-09-10test all variations of network statementsbenno2-3/+35
2018-09-10add a test for network statements with prefix-setsbenno3-2/+31
2018-09-10tweak previous;jmc1-4/+4
2018-09-10Mirror bluhm's fixes for proc.c daemons to dup /dev/null for child processesakoshibe3-9/+20
in switchd(8). OK henning@ bluhm@
2018-09-10fix typosdenis1-7/+7
OK claudio@
2018-09-10Send many small fragments that exceed the pf reassembly queue limit.bluhm4-2/+154
2018-09-10During fragment reassembly, mbuf chains with packet headers werebluhm6-22/+57
created. Add a new function m_removehdr() do convert packet header mbufs within the chain to regular mbufs. Assert that the mbuf at the beginning of the chain has a packet header. found by Maxime Villard in NetBSD; from markus@; OK claudio@
2018-09-10tweak the table commands somewhat; ok gillesjmc1-7/+5
2018-09-10Limit the fragment entry queue length to 64 per bucket. So we havebluhm2-14/+42
a global limit of 1024 fragments, but it is fine grained to the region of the packet. Smaller packets may have less fragments. This costs another 16 bytes of memory per reassembly and devides the worst case for searching by 8. requestd by claudio@; OK sashan@ claudio@
2018-09-10use filterset_move() like all other network statements. It checks forbenno1-3/+2
source == NULL, avoiding a possible crash introduced yesterday. ok claudio@
2018-09-10do not immediately set the join'd network, the join command only updatesphessler1-3/+1
the list. makes /etc/netstart very fast when ran while the interface is up OK stsp@
2018-09-10update regression tests after previous commit. ok claudio@benno7-22/+2
2018-09-10remove some empty lines from printconf output. ok claudio@benno3-11/+11
2018-09-10vmd(8) clould close file descriptor 0 as not all fd fields werebluhm2-15/+17
properly initialized with -1. Also avoid closing -1. OK mlarkin@
2018-09-10During the fork+exec implementation, daemon(3) was moved afterbluhm3-9/+21
proc_init(). As a consequence vmd(8) child processes did not detach from the terminal anymore. Dup /dev/null to the stdio file descriptors in the children. OK mlarkin@ reyk@
2018-09-10fix typo in the length of the essid we want to switch tophessler1-2/+2
found with and OK stsp@
2018-09-10extract clearing WEP/WPA in ess into helper functionsphessler1-29/+29
2018-09-10Adjust the config to -current bgpd which makes it a lot more readable.claudio1-22/+38
OK phessler@
2018-09-10use the correct essid when switching during the ioctl pathphessler1-2/+2
pointed out by stsp@
2018-09-10give set_ess a len variable, so we can correctly match the essid we wantphessler2-11/+7
to switch to. pointed out by stsp@
2018-09-10Do not clear selection when searching.nicm1-2/+1
2018-09-10Fix previous commit. It mistakenly included a change for debug.yasuoka1-3/+3
2018-09-10put the port into autonegotiate mode on attach, since that's the defaultjmatthew1-1/+21
media setting. tested by and ok ccardenas@
2018-09-10if the adapter can't determine the phy type on a port, pretend it's baseCRjmatthew1-1/+2
so we get a usable list of media types to pick from. tested by and ok ccardenas@
2018-09-10bit rates over 2G won't fit in an int, so use uint64_ts insteadjmatthew1-2/+2
2018-09-09pmap_activate() should match cpu_switchto, so set up ci_{kern,user}_cr3guenther1-1/+9
if activating for the current thread and meltdown mitigations are in effect. Not clear if it's actually possible to hit the case where this matters, but it's the Right Thing. ok mlarkin@
2018-09-09Simplify pmap_is_curpmap(): %cr3 can never match pm_pdirpa_intel hereguenther1-3/+2
as this code isn't present in those page tables ok mlarkin@
2018-09-09Calculate automatically the padding necessary for lining up theguenther2-12/+31
iretq instruction used when Meltdown mitigation is effect. It got pushed off when an lfence was added in locore.S rev 1.107, resulting in two signals being sent instead of one when iretq faulted, and neither signal had the correct sigcontext info. Update the makefile rule for locore.o to verify that things are correct. ok mlarkin@
2018-09-09Teach binutils how to assemble INVPCID and how to disassembleguenther3-7/+26
INV{EPT,VPID,PCID} ok mlarkin@
2018-09-09merge in some missed bits from 1.7.0 to simplify update prep.sthen1-10/+3