1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 17:07:35 +00:00

Ports: Update dropbear port to 2022.82

This commit is contained in:
Patrick Meyer 2022-04-28 01:50:11 +00:00 committed by Brian Gianforcaro
parent f8c81b2f01
commit 03d38e3ab8
7 changed files with 64 additions and 56 deletions

View file

@ -1,15 +1,17 @@
--- b/netio.c.orig
diff --git a/netio.c b/netio.c
index 2ed9bb1..e0e9962 100644
--- a/netio.c
+++ b/netio.c
@@ -294,7 +294,7 @@
@@ -304,7 +304,7 @@ void packet_queue_to_iovec(const struct Queue *queue, struct iovec *iov, unsigne
buffer *writebuf;
#ifndef IOV_MAX
- #if defined(__CYGWIN__) && !defined(UIO_MAXIOV)
+ #if !defined(UIO_MAXIOV)
#ifndef IOV_MAX
- #if defined(__CYGWIN__) && !defined(UIO_MAXIOV)
+ #if !defined(UIO_MAXIOV)
#define IOV_MAX 1024
#else
#define IOV_MAX UIO_MAXIOV
@@ -334,11 +334,7 @@
#elif defined(__sgi)
#define IOV_MAX 512
@@ -346,11 +346,7 @@ void packet_queue_consume(struct Queue *queue, ssize_t written) {
}
void set_sock_nodelay(int sock) {
@ -22,15 +24,15 @@
}
#if DROPBEAR_SERVER_TCP_FAST_OPEN
@@ -448,7 +444,6 @@
@@ -469,7 +465,6 @@ int dropbear_listen(const char* address, const char* port,
struct addrinfo hints, *res = NULL, *res0 = NULL;
int err;
unsigned int nsock;
- struct linger linger;
int val;
int sock;
@@ -527,9 +522,6 @@
uint16_t *allocated_lport_p = NULL;
@@ -548,9 +543,6 @@ int dropbear_listen(const char* address, const char* port,
val = 1;
/* set to reuse, quick timeout */
setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void*) &val, sizeof(val));