summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-19add a test for misc.c:argv_split(), currently failsdjm3-2/+144
2021-03-19splitdjm5-151/+235
2021-03-19return non-zero exit status when killed by signal; bz#3281djm1-2/+2
ok dtucker@
2021-03-19increase maximum SSH2_FXP_READ to match the maximum packet size.djm1-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@
2021-03-18Update go-module docs for recent changes, from Josh Rickmar, small tweaksthen1-6/+4
from me
2021-03-18From Joachim Wiberg's version of mg.lum1-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"
2021-03-18Do not include ':' in the port number.tb1-2/+2
ok claudio
2021-03-18When changing the link local address send a RTM_IFINFO message out.claudio1-2/+4
Also prefer if (error == 0) over if (!error). OK florian@ bluhm@
2021-03-18Do not call rtm_ifchg() if IFF_UP changed. The code in if_up() and if_down()claudio1-3/+6
already call rtm_ifchg() and so this would just result in a duplicate message. Noticed by deraadt@. OK florian@ bluhm@
2021-03-18Like in the sysctl case include the ifp_sadl as RTA_IFP address in RTM_IFINFOclaudio1-3/+6
messages. This way userland can detect if the lladdr of an interface was changed. OK florian@ bluhm@
2021-03-18Fail in rsync_base_uri() if the strdup calls fail. Do not bubble thisclaudio1-3/+8
error upwards since a NULL return represents a bad-URI. Diff originally from tb@
2021-03-18Avoid NULL access in http_parse_uri()tb1-3/+6
A malformed URI such as "https://[::1/index.html" causes a NULL access in the hosttail[1] == ":" check. ok claudio
2021-03-18Fix SIOCDELLABEL/"ifconfig mpe0 -mplslabel" to unset label completelykn1-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
2021-03-18Document SIOCDELLABEL, link among MPLS driverskn3-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
2021-03-18Document "-tunneldomain" and "-mplslabel", complete MPLS synopsiskn1-5/+9
OK claudio
2021-03-18Do not assign the return value from asprintf (int) to a size_t and thenclaudio1-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@
2021-03-18Initialize rsyncpid and httppid in the noop case. It seem gcc is not ableclaudio1-3/+7
to realize that the pids are initialized if !noop and not accessed if noop. OK job@ tb@
2021-03-18Since the entity queues are per repo there is no need to store the repo idclaudio1-2/+1
anymore. OK job@ tb@
2021-03-18Remove duplicate prototype.bluhm1-2/+1
2021-03-18Type-cast getpagesize() from int to size_t for the comparison with d.claudio1-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@
2021-03-18The ntpd client code corrects both T1 and T4 with the current offsetbluhm1-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@
2021-03-18In revision 1.91 of uhidev.c, jcs@ made sure to only detach devicesanton3-22/+3
claiming multiple report ids once. This allows uhidpp to piggy back on the same functionality making uhidev_unset_report_dev() redundant.
2021-03-18regenmvs4-9/+9
2021-03-18Unlock sendsyslog(2). Console output still requires kernel lock to bemvs2-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@
2021-03-18Fix previous (1.258). It breaks if localX itself is an object reference.yasuoka1-2/+5
found and test by Rafael Avila de Espindola ok kettenis
2021-03-17When devices have claimed multiple report ids, only detach and sendjcs1-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.
2021-03-17Make "ifconfig mpw0 -mplslabel" workkn1-1/+4
Code is there, noone ever used it, I guess. This makes ifconfig(8) documentation actually hold true. OK claudio
2021-03-17Read ahead is now enforced for DTLS - remove workarounds.jsing2-20/+2
ok inoguchi@ tb@
2021-03-17Use consistent s_server_opt_ prefix.jsing1-9/+9
2021-03-17Add DTLSv1.2 support to openssl(1) s_client/s_server.jsing4-34/+129
ok inoguchi@ tb@
2021-03-17fix whitespace nit in previoustb1-2/+2
2021-03-17Update for DTLSv1.2 being enabled.jsing1-4/+4
2021-03-17Enable DTLSv1.2.jsing1-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@
2021-03-17Update for DTLSv1.2 version handling.jsing1-6/+90
2021-03-17Add support for DTLSv1.2 version handling.jsing1-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@
2021-03-17List the Qu-c0-hr-b0-48 firmware image in the iwx(4) man page.stsp1-2/+3
2021-03-17Make iwx(4) attach to AX201 devices with PCI ID 0x34f0.stsp1-1/+14
Requires Qu-c0-hr-b0-48 firmware which is available via fw_update(1). Patch by Fredrik Engberg
2021-03-17regenstsp2-2/+7
2021-03-17Add another iwx(4) PCI device ID.stsp1-1/+2
Based on a patch by Fredrik Engberg
2021-03-17Make iwn(4) send block ack request frames with the firmware nodestsp1-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@
2021-03-17Split off init_ifaces from update_iface. init_ifaces discovers theflorian1-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.
2021-03-17Use correct rdomain when adding/deleting routeskn2-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
2021-03-17Fix bit position of ORPHAN in PS_BITS.visa1-2/+2
2021-03-17Add missing memory clobbers to "data" barriers.kettenis3-11/+11
2021-03-17Hide kernel internals from userland by wrapping more bits in _KERNEL blocks.claudio1-1/+6
Especially the includes of net/rtable.h and sys/queue.h are problematic. OK florian@
2021-03-17Netstat wants to access kernel internal structures for the kvm walker ofclaudio1-1/+3
the routing table. Define _KERNEL around the net/route.h include. OK florian@
2021-03-17Always use an allocated buffer for {Read,Write}Blocks() to makeyasuoka2-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
2021-03-16Add 'grp31' alias for curve25519 as documented in iked.conf(5).tobhe1-1/+2
2021-03-16Node without a "status" property should be considered enabled as well.kettenis1-3/+3
Same change made to arm64 a week ago.
2021-03-16Make sure that switching the console from serial to framebuffer workskettenis2-22/+25
for framebuffer nodes under / and /chosen. Same change made to arm64 last month.