summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2021-07-28add format attribute to vaararg functions.Sebastian Benoit
millert@ thinks its useful.
2021-07-28bump rpki-client version to 7.2Sebastian Benoit
2021-07-28Add more checks for ROA maxLength valuesjob
* maxLength may not be zero or negative * maxLength can't be lower than the prefixlength of ip_addr * maxLength can't be higher than the maximum prefix length OK claudio@
2021-07-28Remove outdated informationjob
2021-07-27Restructure struct prefix a bit and move the rib pointer to the unionClaudio Jeker
that splits the normal RIB linkage vs the adjrib-out linkage. This is done to make a bit of space to put an extra add-path related id into the struct without blowing its size over 128 bytes. Long run this struct should be split up but the necessary changes are too large right now so this is the 2nd best option. OK benno@
2021-07-27Implemnt the RFC8050 in the MRT parser. With this MRT dumps containingClaudio Jeker
add-path information will be dumped properly. There is one bit where this implementation is not in line with the RFC. The encoding of DUMP_V2_RIB_GENERIC_ADDPATH for non IPv4 or IPv6 prefixes is implemented the way gobgp did it (which seems to be the only other BGP implementation that supports generic encoding). The RFC puts the path_id in the NLRI for generic encoding instead of adding it to RIB entry struct like in the IPv4 and IPv6 encoding. This is an open discussion point with the RFC author. OK benno@
2021-07-27Add the needed MRT dump defines for RFC8050 support. This will be usedClaudio Jeker
to dump add-path enabled systems because the NLRI format changes based on the add-path capability and there is no way to know which format is in use so new message types had to be added. Also extend the ctl_show_rib structure to include the path_id. OK benno@
2021-07-27Implement RFC9072: Extended Optional Parameters Length for BGP OPEN MessageClaudio Jeker
This allows to send more then 255 bytes of optional parameters. With this it is possible to send more capabilities. bgpd will switch automatically to the new extended lenght format if needed but by default the old 1 byte param length encoding is used to keep compatible with old systems. OK benno@
2021-07-26Implement possibility to send vendor class identifier (option 60) andFlorian Obser
client identifier (option 61). Some dhcp servers expect these options and refuse to hand out a lease without them. Need for vendor class identifier pointed out & tested by bket Need for client identifier pointed out by sthen Input & reads OK sthen (as part of a larger diff) OK kn (as part of a larger diff)
2021-07-25The output of server_root_strip() is a string. Use the correct formatSebastian Benoit
"%s". Same for the output of relay_expand_http(). with and ok claudio@ Found by Cedric Tessier, thanks!
2021-07-23Adjust HTTP/1.1 request stringjob
* "Connection: keep-alive" isn't needed, as the HTTP 1.1 default is to use persistent connections (RFC 7230, section 6.3). * "Host" is recommended to be in the front. * "Accept-Encoding: identity" makes it clear to the server compression encodings are not supported. Based on suggestions from Julian Reschke. OK benno@ claudio@
2021-07-20Add -p option to "prepare" (newfs) a filesystem that will be used forMark Kettenis
the bootloader. This is a no-op on architectures where such a filesystem isn't needed. ok krw@, deraadt@
2021-07-20Also add missing -V to usageClaudio Jeker
2021-07-20Add -V to usage. Reported by Pier Carlo Chiodi.Claudio Jeker
2021-07-18vmd(8): remove invalid errno values from config_setvmdv
Refactor config_setvm to directly return error code on failure instead of returning -1 and setting errno. It was setting unsupported values not defined in <errno.h>. OK mlarkin@
2021-07-18Document dhcpleased(8) and slaacd(8) besides dhclient(8) as DNS sourcekn
Zap the obsolete dhclient.conf(5) supersede quirk while here. Feedback OK florian
2021-07-16vmd(8): simplify vcpu logic, removing uart & vionet readsdv
Remove legacy state handling on the ns8250 and virtio network devices originally put in place before using libevent for async device events. The vcpu thread doesn't need to process device data as it is handled by the libevent thread. This has the benefit of simplifying some of the message passing between threads introduced to the ns8250 uart since both the vcpu and libevent threads were processing read events. No functional change intended. Tested by many, including abieber@, weerd@, Mischa Peters, and Matthias Schmidt. (Thanks.) OK mlarkin@
2021-07-16main proc doesn't speak with sockets during the main loop and setpriority plusRicardo Mestre
chroot (and privdrop) in the child procs at this point are all set and done so pledge("inet id") promises are not required anymore. analysis and OK @kn
2021-07-16/etc/ssl/cert.pem is loaded into mem with tls_load_file(3) on local functionRicardo Mestre
priv_constraint_child() which is called before we reach pledge(2), therefore we we don't need to unveil(2) that file nor having pledge("rpath") since it was only required to read that same file. OK kn@
2021-07-16Remove unneeded call to tls_init(3)kn
As per the manual and lib/libtls/tls.c revision 1.79 from 2018 "Automatically handle library initialisation for libtls." initialisation is handled automatically by other tls_*(3) functions. Remove the tls_init() call to not give the impression of it being needed. Feedback tb OK Tests mestre
2021-07-16recognise more pci capabilitiesJonathan Gray
from PCI Code and ID Assignment Specification
2021-07-14Remove unneeded calls to tls_init(3)kn
As per the manual and lib/libtls/tls.c revision 1.79 from 2018 "Automatically handle library initialisation for libtls." initialisation is handled automatically by other tls_*(3) functions. Remove explicit tls_init() calls from base to not give the impression of it being needed. Feedback tb OK Tests mestre
2021-07-13Add more checks for eContent 'version' fields.job
Input from deraadt@, tb@, claudio@ OK deraadt@ claudio@ tb@
2021-07-13Order the MRT table dump versions by preference also the text refersClaudio Jeker
to the latter two (table-mp and table) to be only available for compatibility. People should really only use table-v2 since it is the only method which will properly dump everything.
2021-07-12Change the error reporting pattern throughout the tree when unveilBob Beck
fails to report the path that the failure occured on. Suggested by deraadt@ after some tech discussion. Work done and verified by Ashton Fagg <ashton@fagg.id.au> ok deraadt@ semarie@ claudio@
2021-07-08typo: hibenate -> hibernateTheo Buehler
2021-07-01remove useless and confusing log message when client has no certificateEric Faurot
ok millert@
2021-06-30use @ to silently execute "exec make"Theo de Raadt
2021-06-29Flip the -r RRDP switch, which went through community testing for half a year.Theo de Raadt
Default is now to attempt RRDP first, then try RSYNC. If problems show up, return to rsync-only behaviour with -R, and file a report. ok claudio
2021-06-28Have tcpdump split the 802.11 sequence number field into its sequence numberStefan Sperling
and fragment number components instead of printing the whole field in decimal. ok sthen@ kn@ jca@
2021-06-28placeholder for laterMarc Espie
2021-06-28Garbage collect loop index i which is no longer used after usage tweak.Theo Buehler
2021-06-28remove old "paranoid" option, I'm pretty sure nobody uses it.Marc Espie
refactor the code into figuring out simple updates: if we don't have any @execs but just @tags, we can probably do something simpler wrt temporary files and temporary filenames, which should speed up texlive updates significantly. (the tempfile code is not there yet, just the check for safe updates)
2021-06-28Also show the time spent in userland when analyzing the kernel stackAlexander Bluhm
in flame graph. Only when both kernel and userland are displayed, the whole picture of system activity becomes clear. Fixes a parsing bug in the flame graph tool where userland time was interpreted as invalid kernel stack. OK kn@
2021-06-27reuse armv7 installboot for riscv64Jonathan Gray
ok deraadt@
2021-06-26make usage less chatty; ok mlarkinJason McIntyre
2021-06-26make SYNOPSIS match usage; ok ajacoutotJason McIntyre
2021-06-26delete extra explanations in the usage: messages which are describedTheo de Raadt
far better in the manual pages ok jmc
2021-06-25The network flush code only operates on peerself (like all the otherClaudio Jeker
network commands). Instead of passing the peer as argument to the tree walker just default to peerself in network_flush_upcall(). OK benno@
2021-06-25Do the multiprotocol check first for the IPv4 case. So it is the sameClaudio Jeker
everywhere. OK benno@
2021-06-24Simplify the multiprotocol handling by moving the while loops out of theClaudio Jeker
switch statement. This way common code is referenced only once. OK sthen@
2021-06-24aspath_deflate() did free the passed in data but since the way aspathsClaudio Jeker
are processed in the Adj-RIB-Out this is no longer needed since the passed in pointer is still referenced and is not allowed to be freed. Adjust the mrt code similar to how up_generate_attr() uses aspath_deflate(). OK sthen@
2021-06-24Fix add-path capability encoding, the length was not correctly calculatedClaudio Jeker
because it included two extra bytes (copy-paste error from graceful restart).
2021-06-23btrace(8): init and update timespec for BEGIN/END eventdv
BEGIN and END use a fake dt(4) event, so in order to use the nsecs var or time() it needs a timespec set. Init for BEGIN and update at END. ok mpi@
2021-06-22reduce verbosity in usage and make it match SYNOPSIS;Jason McIntyre
ok millert
2021-06-22reduce verbosity of usage(), making it match SYNOPSIS;Jason McIntyre
ok kettenis
2021-06-21under some circumstances, we end up with libexecinfo -> BaseSystem beingMarc Espie
recorded as a new dependency. Even though ForwardDependencies normally takes care of that, with tags, this is not enough. (this happens only because libexecinfo was a "tight" dependency, thus resulting in a large UpdateSet, and when some of the objects did require tags in the new package, and when the order of things meant that BaseSystem was considered a bit early). Since there's no handle at this point, a dirty but efficient test vs BaseSystem will do (which is not a valid normal package name anyhow) tested to fix the obnoxious warning landry@ saw, which I was able to reproduce on a box...
2021-06-21vmd(8): support variable length vionet rx descriptor chainsdv
The original implementation of the virtio network device assumed a driver would only provide a 2-descriptor chain for receiving packets. The virtio spec allows for variable length chains and drivers, in practice, construct them when they use a sufficiently large MTU. This change lets the device use variable length chains provided by the driver, thus allowing for drivers to set an MTU up to the underlying host-side tap(4)'s limit of TUNMRU (16384). Size limitations are now enforced on both tx and rx-side dropping anything violating the underlying tap(4) min and max limits. More work is needed to increase the read(2) buffer in use by vmd to prevent packet truncation. OK mlarkin@
2021-06-20Change default user auth to hmac-sha256 and enc to aes.Martijn van Duren
The old defaults are just not sane anymore. OK sthen@
2021-06-20Tighten default security for snmpd(8). This is done by doing severalMartijn van Duren
things: - Only allow SNMPv3 by default. SNMPv1 and SNMPv2c can be enabled by setting the new snmpv* flags on the "liston on" statements. - Remove the default community names. They're not secure to use. - Change the default seclevel to enc. Initial idea, help from and OK sthen@