summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-11-06Hook up agentx-{Add,Remove}AgentCaps-PDU to appl_{add,remove}agentcaps.Martijn van Duren
OK tb@
2023-11-06Readd the sysORTable based on the new struct appl_agentcap.Martijn van Duren
OK tb@
2023-11-06Allow agent capabilities to be stored on a per appl_context basis.Martijn van Duren
This is needed for AgentX's {add,remove}agentcaps, and the sysORTable. OK tb@
2023-11-06Allow appl_internal_object's getnext to be called.Martijn van Duren
OK tb@
2023-11-06Mark a couple of tests as broken, now that the sysORTable is gone/empty.Martijn van Duren
Relying on the live snmpd(8) metrics is brittle and this regress test should probably move to a custom agent in a similar fashion to the custom manager from the snmpd(8) regress. Pointed out by anton@
2023-11-06avoid using MCS9 in iwm(4) Tx rate selection if 40 MHz is disabledStefan Sperling
MCS9 is not valid on 20HMz so we must not use it in 20MHz-only mode. Fixes firmware panic 0x00002078, which indicates the driver sets a rate with a bad number of antennas, bad number of Tx streams, or bad bandwidth. Observed by dlg@ with the miktrotik AP for which iwm(4) firmware requires our 20MHz-only workaround to interoperate in 11ac mode. ok dlg@
2023-11-06actually, I still need to exit() if infocmp can't be runMarc Espie
2023-11-06system + exit -> execMarc Espie
as noticed by afresh1@ (this should be all for now)
2023-11-06since we're always running info_cmp in the end, remove the wholeMarc Espie
"in case of emergency run info_cmp block" (more efficient: we only parse the entry we need). Keep the small part that creates a dumb terminal on VMS, even though we're not running that. Add an extra state check in the automaton to avoid skipping a tmp_term
2023-11-06simplify logic for $entry in the main termcap loopMarc Espie
2023-11-06always try to run info_cmp at the end if we haven't got what we wantedMarc Espie
This allows terminals with only terminfo capabilities to show up in Term::Cap (like kitty) !
2023-11-06simplify $ENV{TERMCAP} handling: don't bother setting anything ifMarc Espie
the variable doesn't exist
2023-11-06instead of a max number of iterations, record terms that have been seenMarc Espie
in a hash instead. Side effect: we no longer parse the same tc again and again, leading to a smaller result with the same capabilities but no duplicates. (instead of parsing 36 entries for xterm, we end up with 10 entries, as the "tc=" stuff is actually a tree instead of a list: xterm references several intermediate tc that all lead to the same basic list !)
2023-11-06use modern file open instead of GLOBSMarc Espie
2023-11-06get rid of useless evalMarc Espie
use \Q\E to quote stuff around tmp_term, instead of rolling our own in termpat (get rid of termpat)
2023-11-06remove upstream files we don't needMarc Espie
2023-11-06reapply max=64 for nowMarc Espie
2023-11-06update to Term::Cap 1.18, so that we can patch it furtherMarc Espie
as discussed with afresh1@
2023-11-05Provide simpler cpu_number, CPU_INFO_UNIT and CPU_IS_XXX macros in theMiod Vallat
non-MULTIPROCESSOR case, as done on all other platforms. ok deraadt@ kettenis@
2023-11-05Add cdXX.iso to MDEXT, for it to be included in SHA256; reported by `petcat30'Miod Vallat
on bugs@.
2023-11-05current code no longer uses Lst_Replace not Lst_RequeueMarc Espie
so don't bother compiling them.
2023-11-05fix bad path allocation in makeinfoOmar Polo
In one branch of the image handling, the wrong malloc() call was copied-pasted making the allocation possibly smaller than needed. Spotted while building the gcc11 port, libgccjit.info exercise that branch and the write out of bounds was discovered by malloc(). Convert the malloc + strlcpy/cat dance to an asprintf, and while here also fix the leak of the two paths. ok tb@
2023-11-04Use proper length in session_newmsg() for the RFC9072 case.Claudio Jeker
Right now OpenBGPD can not produce so many capabilities that this case is reached but still better to fix it now. OK tb@
2023-11-04KNF plus fixed a few signed vs unsigned compares (that we actuallyOtto Moerbeek
not real problems)
2023-11-04With the move of SNMPv2-SMI::snmpV2 into application_internal.c, it's noMartijn van Duren
longer possible to register objects underneath this region. This effectively made a few snmp(1) regress tests unusable, which essentially don't belong here. Simply remove these tests.
2023-11-04Move SNMPv2-MIB::system from mib.c into the new application_internal.c.Martijn van Duren
This was the last consumer of mib.c, so send it to the great bitbucket in the sky. This move removes the sysORTable, but it was basically non-functioning anyway and removal of previous entries from the table didn't caused any fallout that reached my ears. I hope to add proper sysORTable/agent-capabilities support, which is compatible with AgentX's {Add,Remove}AgentCaps, soon. OK tb@
2023-11-04Move SNMPv2-SMI::snmpV2 from mib.c into the new application_internal.cMartijn van Duren
OK tb@
2023-11-04Move SNMPv2-MIB::snmp from mib.c into the new application_internal.cMartijn van Duren
OK tb@
2023-11-04Introduce application_internal.c. This backend is meant to replaceMartijn van Duren
application_legacy.c, mps.c, and mib.c. This commit just introduces the backend. The existing MIBs inside mib.c will be copied over in subsequent commits. OK tb@
2023-11-03Check if a signal already has been received before entering a blockingAnton Lindqvist
read as opposed of only doing it afterwards. Issue uncovered by the mail regress tests. With claudio@ and ok millert@
2023-11-03timeout(1): align execvp(3) failure statuses with GNU timeoutScott Soule Cheloha
Align our exit statuses with those of GNU timeout in the execvp(3) failure case. Exit with 127 if the utility is not found. Exit with 126 if we cannot execute the utility for any other reason. While here, the child should _exit(2) instead of calling exit(3) via err(3). Update the manpage accordingly. With input from millert@ and deraadt@. Link: https://marc.info/?l=openbsd-tech&m=169739592322978&w=2 ok millert@
2023-11-03typo: ignorning -> ignoringTheo Buehler
From Laurie Tratt, ok florian
2023-11-03Make netcat tests less flaky by ensuring the server has terminated beforeAnton Lindqvist
examining the outcome. ok bluhm@
2023-11-03initialize `format' earlierOmar Polo
It's easier to see that it's never used un-initialized. ok tb@
2023-11-03cast tv_usec to long for *printfOmar Polo
mostly for -portable; on darwin suseconds_t is an int. ok tb@
2023-11-03Be explicit in saying what a shell pattern is.Marc Espie
I'm not a big fan of idiosyncratic lua patterns, especially in that context, but pointing towards them and not mentionning glob(7) is thoroughly confusing. Don't push lua patterns down people throats ! At least you know what the incredibly fuzzy "shell patterns" refers to now ! okay millert@, jmc@
2023-11-03vmd(8): fix block size calculation for vioscsi devices.Dave Voutila
During the multi-process rework, I changed the way disk sizes are calculated, switching to storing bytes and not 512-byte blocks. The size calculation from reading an iso did not receive the change in scaling, resulting in the virtio scsi emulation to think iso's are larger than reality. This fixes booting the latest Ubuntu amd64 iso's as apparently there's some program that tries to arbitrarily read the tail end of the iso into memory. ok mlarkin@
2023-11-03drm/dp_mst: Fix NULL deref in get_mst_branch_device_by_guid_helper()Jonathan Gray
From Lukasz Majczak 6c668e2f338bde76279aeaf4d4c035c4196a479b in linux-6.1.y/6.1.61 3d887d512494d678b17c57b835c32f4e48d34f26 in mainline linux
2023-11-03drm/amd: Disable ASPM for VI w/ all Intel systemsJonathan Gray
From Mario Limonciello 024251bab25daf97a3599c985dd04117b9c60d6b in linux-6.1.y/6.1.61 64ffd2f1d00c6235dabe9704bbb0d9ce3e28147f in mainline linux
2023-11-03drm/i915/pmu: Check if pmu is closed before stopping eventJonathan Gray
From Umesh Nerlige Ramappa eded5f5261b8ff14417f9441934a1865b379b7db in linux-6.1.y/6.1.61 4cbed7702eb775cca22fff6827a549092cb59f61 in mainline linux
2023-11-02Use pfctl_fopen (which checks to ensure the given file isn't a directory)Stuart Henderson
for pfctl -f /path/to/pf.conf. Otherwise, if you accidentally use a dir instead of a file (e.g. if you have an /etc/pf directory and don't notice the name when tab-completing), you successfully install an empty ruleset. ok sashan@
2023-11-02Fix a few bizarre line wraps in x509.hTheo Buehler
2023-11-02mention codeberg and kde templates on bsd.port.mk(5) DIST_TUPLEPaco Esteban
ok op@ +1 rsadowski
2023-11-02next-prompt can have 1 argument.Nicholas Marriott
2023-11-01Use X509_ALGOR_set0_by_nid() in X509_ALGOR_set_evp_md()Theo Buehler
ok jsing
2023-11-01Add X509_ALGOR_set0_by_nid()Theo Buehler
X509_ALGOR_set0() is annoyingly unergonomic since it takes an ASN1_OBJECT rather than a nid. This means that almost all callers call OBJ_obj2nid() and they often do this inline without error checking so that the resulting X509_ALGOR object is corrupted and may lead to incorrect encodings. Provide an internal alternative X509_ALGOR_set0_by_nid() that takes a nid instead of an ASN1_OBJECT and performs proper error checking. This will be used to convert callers of X509_ALGOR_set0() in the library. ok jsing
2023-11-01Explain the weird order of doing things in X509_ALGOR_set0()Theo Buehler
2023-11-01Rename ptype and pval to parameter_type and parameter_valueTheo Buehler
ok jsing
2023-11-01Unindent X509_ALGOR_set0_parameter()Theo Buehler
ok jsing
2023-11-01Split X509_ALGOR_set0_parameter() out of X509_ALGOR_set0()Theo Buehler
ok jsing