summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* another unfortunate action to cope with relentless kernel growthderaadt2021-03-191-2/+2
|
* add a test for misc.c:argv_split(), currently failsdjm2021-03-193-2/+144
|
* splitdjm2021-03-195-151/+235
|
* return non-zero exit status when killed by signal; bz#3281djm2021-03-191-2/+2
| | | | ok dtucker@
* increase maximum SSH2_FXP_READ to match the maximum packet size.djm2021-03-191-24/+38
| | | | | | Also handle zero-length reads that are borderline nonsensical but not explicitly banned by the spec. Based on patch from Mike Frysinger, feedback deraadt@ ok dtucker@
* Update go-module docs for recent changes, from Josh Rickmar, small tweaksthen2021-03-181-6/+4
| | | | from me
* From Joachim Wiberg's version of mg.lum2021-03-181-3/+11
| | | | | "This patch makes sure to clear the status/echo line after killing and switching buffers by name. Otherwise the kill/switch prompt lingers"
* Do not include ':' in the port number.tb2021-03-181-2/+2
| | | | ok claudio
* When changing the link local address send a RTM_IFINFO message out.claudio2021-03-181-2/+4
| | | | | Also prefer if (error == 0) over if (!error). OK florian@ bluhm@
* Do not call rtm_ifchg() if IFF_UP changed. The code in if_up() and if_down()claudio2021-03-181-3/+6
| | | | | already call rtm_ifchg() and so this would just result in a duplicate message. Noticed by deraadt@. OK florian@ bluhm@
* Like in the sysctl case include the ifp_sadl as RTA_IFP address in RTM_IFINFOclaudio2021-03-181-3/+6
| | | | | | messages. This way userland can detect if the lladdr of an interface was changed. OK florian@ bluhm@
* Fail in rsync_base_uri() if the strdup calls fail. Do not bubble thisclaudio2021-03-181-3/+8
| | | | | error upwards since a NULL return represents a bad-URI. Diff originally from tb@
* Avoid NULL access in http_parse_uri()tb2021-03-181-3/+6
| | | | | | | A malformed URI such as "https://[::1/index.html" causes a NULL access in the hosttail[1] == ":" check. ok claudio
* Fix SIOCDELLABEL/"ifconfig mpe0 -mplslabel" to unset label completelykn2021-03-181-2/+2
| | | | | | | | While the corresponding route gets removed properly, the driver's softc kept the old label, i.e. "ifconfig mpe0" would show "mpls: label 42" instead of "mpls: label (unset)" even though it was unset. OK claudio
* Document SIOCDELLABEL, link among MPLS driverskn2021-03-183-9/+23
| | | | | | | | | | Use of the IOCTL section losely adopted from bridge(4), the list of ioctls however is still incomplete. mpw(4) and mpip(4) could use a reference to mpe(4) IOCTL or so, but this is good enough for starters. Feedback OK claudio
* Document "-tunneldomain" and "-mplslabel", complete MPLS synopsiskn2021-03-181-5/+9
| | | | OK claudio
* Do not assign the return value from asprintf (int) to a size_t and thenclaudio2021-03-181-3/+6
| | | | | | | compare it to -1. Instead use a temp variable and assign to bufsz after the -1 check. Also add errx() calls after the switch statements in the FSM functions. OK job@ tb@
* Initialize rsyncpid and httppid in the noop case. It seem gcc is not ableclaudio2021-03-181-3/+7
| | | | | to realize that the pids are initialized if !noop and not accessed if noop. OK job@ tb@
* Since the entity queues are per repo there is no need to store the repo idclaudio2021-03-181-2/+1
| | | | | anymore. OK job@ tb@
* Remove duplicate prototype.bluhm2021-03-181-2/+1
|
* Type-cast getpagesize() from int to size_t for the comparison with d.claudio2021-03-181-2/+2
| | | | | | | getpagesize() will only return positive numbers (there is no negative page size system) and it can not fail. Should fix some compiler warnings seen in -portable projects. OK otto@
* The ntpd client code corrects both T1 and T4 with the current offsetbluhm2021-03-181-5/+6
| | | | | | | | | | | | | | returned by adjtime(2) from the kernel. T1 is local time when the NTP packet is sent and T4 when the response is received. If between these events a NTP reply from another server is received, it may change the kernel offset with adjtime(2). Then the calulation of the client offset was done with different bases, the result was wrong and the system time started moving around. So instead of correcting T1 and T4 individually at different events, correct their sum once. Error handling was missing if there is no timestamp in the response. As this should not happen in our kernel, fatal() is appropriate. tested by weerd@; OK claudio@
* In revision 1.91 of uhidev.c, jcs@ made sure to only detach devicesanton2021-03-183-22/+3
| | | | | claiming multiple report ids once. This allows uhidpp to piggy back on the same functionality making uhidev_unset_report_dev() redundant.
* regenmvs2021-03-184-9/+9
|
* Unlock sendsyslog(2). Console output still requires kernel lock to bemvs2021-03-182-41/+58
| | | | | | | | held but this path is only followed while `syslogf' socket is not set. New `syslogf_rwlock' used to protect `syslogf' access. ok bluhm@
* Fix previous (1.258). It breaks if localX itself is an object reference.yasuoka2021-03-181-2/+5
| | | | | | found and test by Rafael Avila de Espindola ok kettenis
* When devices have claimed multiple report ids, only detach and sendjcs2021-03-171-17/+34
| | | | | | | | DVACT_DEACTIVATE to them once when walking sc_subdevs. Fixes a regression reported and tested by Edd Barrett. Input from and previous version ok anton.
* Make "ifconfig mpw0 -mplslabel" workkn2021-03-171-1/+4
| | | | | | | Code is there, noone ever used it, I guess. This makes ifconfig(8) documentation actually hold true. OK claudio
* Read ahead is now enforced for DTLS - remove workarounds.jsing2021-03-172-20/+2
| | | | ok inoguchi@ tb@
* Use consistent s_server_opt_ prefix.jsing2021-03-171-9/+9
|
* Add DTLSv1.2 support to openssl(1) s_client/s_server.jsing2021-03-174-34/+129
| | | | ok inoguchi@ tb@
* fix whitespace nit in previoustb2021-03-171-2/+2
|
* Update for DTLSv1.2 being enabled.jsing2021-03-171-4/+4
|
* Enable DTLSv1.2.jsing2021-03-171-1/+5
| | | | | | | | This means that the DTLS_method() will now use DTLSv1.2 rather than DTLSv1. Additional DTLSv1.2 related symbols and defines will be made publicly visible in the near future. ok inoguchi@ tb@
* Update for DTLSv1.2 version handling.jsing2021-03-171-6/+90
|
* Add support for DTLSv1.2 version handling.jsing2021-03-171-45/+117
| | | | | | | | This teaches the version functions that handle protocol versions about DTLSv1.2 and the SSL_OP_NO_DTLS* options. We effectively convert between TLS and TLS protocol versions where necessary. ok inoguchi@ tb@
* List the Qu-c0-hr-b0-48 firmware image in the iwx(4) man page.stsp2021-03-171-2/+3
|
* Make iwx(4) attach to AX201 devices with PCI ID 0x34f0.stsp2021-03-171-1/+14
| | | | | | Requires Qu-c0-hr-b0-48 firmware which is available via fw_update(1). Patch by Fredrik Engberg
* regenstsp2021-03-172-2/+7
|
* Add another iwx(4) PCI device ID.stsp2021-03-171-1/+2
| | | | Based on a patch by Fredrik Engberg
* Make iwn(4) send block ack request frames with the firmware nodestsp2021-03-171-2/+5
| | | | | | | | | | | which represents the AP, rather than the firmware's broadcast node. Fixes a problem where firmware would generate bogus block ack requests with a wrong starting sequence number, shifting the receiver's block ack window out of sync with that of the firmware. Traffic would stall until enough frames were sent to wrap sequence numbers of the block ack window. ok chris@ kmos@
* Split off init_ifaces from update_iface. init_ifaces discovers theflorian2021-03-171-76/+152
| | | | | | | | | | | | | | | | | | | | | | state of the machine on startup using ioctl(2) and getifaddrs(3). We can then update this state with information provided by route messages. We still need getifaddrs(3) to check if the layer 2 address has changed. This simplifies error handling (what should we do if ioctl(2) fails?), reduces kernel round trips (no need to ask the kernel again for information RTM_IFINFO provided already) and prevents a theoretical race between RTM_IFINFO and getaddrinfo(3). In a fast link state UP -> DOWN -> UP transition RTM_IFINFO informs us that the link went down but we were not using this information but rather looked at getifaddrs(3) information which might see the link as already up again. We would then do nothing while we should try to get a new lease. By storing all interface information in the frontend process we can skip imsgs to the engine process if we get an RTM_IFINFO without relevant changes for us.
* Use correct rdomain when adding/deleting routeskn2021-03-172-7/+7
| | | | | | | | | | | | | | | | mpip(4) always adds and deletes routes in rdomain 0 regardless of the `tunneldomain', i.e. the `sc_rdomain' value. mpw(4) adds routes with the specified rdomain but always deletes them in rdomain 0. mpe(4) consistently uses the softc's rdomain which is tracked consistently across the various ioctls -- no fix needed. Found while reading the code and testing ifconfig(8)'s "tunneldomain" in order to document MPLS ioctls. OK claudio
* Fix bit position of ORPHAN in PS_BITS.visa2021-03-171-2/+2
|
* Add missing memory clobbers to "data" barriers.kettenis2021-03-173-11/+11
|
* Hide kernel internals from userland by wrapping more bits in _KERNEL blocks.claudio2021-03-171-1/+6
| | | | | Especially the includes of net/rtable.h and sys/queue.h are problematic. OK florian@
* Netstat wants to access kernel internal structures for the kvm walker ofclaudio2021-03-171-1/+3
| | | | | the routing table. Define _KERNEL around the net/route.h include. OK florian@
* Always use an allocated buffer for {Read,Write}Blocks() to makeyasuoka2021-03-172-80/+34
| | | | | | | | | efid_io() simpler. Also fixes the problem on some machines when boot from CD-ROM. It happened because the previous version passed unaligned pointers to the functions even if it is restricted by the IoAlign property of the media. idea from kettenis, work with asou ok kettenis
* Add 'grp31' alias for curve25519 as documented in iked.conf(5).tobhe2021-03-161-1/+2
|
* Node without a "status" property should be considered enabled as well.kettenis2021-03-161-3/+3
| | | | Same change made to arm64 a week ago.