From 3ce80037a09f15aa89bc686f5f3776d133df3dd7 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Sat, 31 May 2025 03:22:38 -0600 Subject: regen netcat.c patch --- patches/netcat.c.patch | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/patches/netcat.c.patch b/patches/netcat.c.patch index 319aca6..3faca6a 100644 --- a/patches/netcat.c.patch +++ b/patches/netcat.c.patch @@ -1,5 +1,5 @@ ---- apps/nc/netcat.c.orig Sat Aug 17 03:21:05 2024 -+++ apps/nc/netcat.c Sat Aug 17 03:28:50 2024 +--- apps/nc/netcat.c.orig Sat May 31 03:18:05 2025 ++++ apps/nc/netcat.c Sat May 31 03:18:17 2025 @@ -93,9 +93,13 @@ int zflag; /* Port Scan Flag */ int Dflag; /* sodebug */ int Iflag; /* TCP receive buffer size */ @@ -14,7 +14,7 @@ int usetls; /* use TLS */ const char *Cflag; /* Public cert file */ -@@ -268,12 +272,14 @@ main(int argc, char *argv[]) +@@ -270,12 +274,14 @@ main(int argc, char *argv[]) case 'u': uflag = 1; break; @@ -29,7 +29,7 @@ case 'v': vflag = 1; break; -@@ -320,9 +326,11 @@ main(int argc, char *argv[]) +@@ -322,9 +328,11 @@ main(int argc, char *argv[]) case 'o': oflag = optarg; break; @@ -41,7 +41,7 @@ case 'T': errstr = NULL; errno = 0; -@@ -346,9 +354,11 @@ main(int argc, char *argv[]) +@@ -348,9 +356,11 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; @@ -53,7 +53,7 @@ /* Cruft to make sure options are clean, and used properly. */ if (argc == 1 && family == AF_UNIX) { -@@ -923,7 +933,10 @@ remote_connect(const char *host, const char *port, str +@@ -925,7 +935,10 @@ remote_connect(const char *host, const char *port, str char *ipaddr) { struct addrinfo *res, *res0; @@ -65,7 +65,7 @@ if ((error = getaddrinfo(host, port, &hints, &res0))) errx(1, "getaddrinfo for host \"%s\" port %s: %s", host, -@@ -938,8 +951,10 @@ remote_connect(const char *host, const char *port, str +@@ -940,8 +953,10 @@ remote_connect(const char *host, const char *port, str if (sflag || pflag) { struct addrinfo ahints, *ares; @@ -76,7 +76,7 @@ memset(&ahints, 0, sizeof(struct addrinfo)); ahints.ai_family = res->ai_family; ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; -@@ -1031,7 +1046,10 @@ int +@@ -1033,7 +1048,10 @@ int local_listen(const char *host, const char *port, struct addrinfo hints) { struct addrinfo *res, *res0; @@ -88,7 +88,7 @@ int error; /* Allow nodename to be null. */ -@@ -1052,9 +1070,11 @@ local_listen(const char *host, const char *port, struc +@@ -1054,9 +1072,11 @@ local_listen(const char *host, const char *port, struc res->ai_protocol)) == -1) continue; @@ -100,7 +100,7 @@ set_common_sockopts(s, res->ai_family); -@@ -1559,11 +1579,13 @@ set_common_sockopts(int s, int af) +@@ -1561,11 +1581,13 @@ set_common_sockopts(int s, int af) { int x = 1; @@ -114,7 +114,7 @@ if (Dflag) { if (setsockopt(s, SOL_SOCKET, SO_DEBUG, &x, sizeof(x)) == -1) -@@ -1574,9 +1596,16 @@ set_common_sockopts(int s, int af) +@@ -1576,9 +1598,16 @@ set_common_sockopts(int s, int af) IP_TOS, &Tflag, sizeof(Tflag)) == -1) err(1, "set IP ToS"); @@ -131,7 +131,7 @@ } if (Iflag) { if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, -@@ -1600,13 +1629,17 @@ set_common_sockopts(int s, int af) +@@ -1602,13 +1631,17 @@ set_common_sockopts(int s, int af) } if (minttl != -1) { @@ -150,7 +150,7 @@ } } -@@ -1831,15 +1864,19 @@ help(void) +@@ -1835,15 +1868,19 @@ help(void) \t-P proxyuser\tUsername for proxy authentication\n\ \t-p port\t Specify local port for remote connects\n\ \t-R CAfile CA bundle\n\ @@ -175,4 +175,4 @@ + "\t-v Verbose\n\ \t-W recvlimit Terminate after receiving a number of packets\n\ \t-w timeout Timeout for connects and final net reads\n\ - \t-X proto Proxy protocol: \"4\", \"5\" (SOCKS) or \"connect\"\n\ + \t-X proto Proxy protocol: \"4\", \"4A\", \"5\" (SOCKS) or \"connect\"\n\ -- cgit v1.2.3-55-g6feb