From fde0b606556b9deb1dd043cdd07d45145d33720b Mon Sep 17 00:00:00 2001 From: Jose Alonso Cardenas Marquez Date: Wed, 24 Apr 2024 17:29:33 -0500 Subject: security/gvm: update to 23.5.2 - databases/pg-gvm: update to 22.6.5 - security/gsa: update to 23.0.0 - security/gsad: update to 22.9.1 - security/gvm-libs: update to 22.9.1 - security/gvmd: update to 23.5.2 - security/openvas: update to 23.0.1 - security/py-gvm-tools: update to 24.3.0 - security/py-notus-scanner: update to 22.6.3 - security/py-ospd-openvas: update to 22.7.1 - security/py-python-gvm: update to 24.3.0 - security/py-greenbone-feed-sync: update to 24.3.0 --- security/gvm-libs/files/patch-boreas_ping.c | 50 +++++++++++++++++++---------- 1 file changed, 33 insertions(+), 17 deletions(-) (limited to 'security/gvm-libs/files') diff --git a/security/gvm-libs/files/patch-boreas_ping.c b/security/gvm-libs/files/patch-boreas_ping.c index 282c6b22e380..d27d50274efb 100644 --- a/security/gvm-libs/files/patch-boreas_ping.c +++ b/security/gvm-libs/files/patch-boreas_ping.c @@ -1,20 +1,20 @@ ---- boreas/ping.c 2022-07-18 03:40:56.000000000 -0500 -+++ boreas/ping.c 2022-07-31 17:59:55.449717000 -0500 -@@ -27,9 +27,13 @@ +--- boreas/ping.c 2024-04-22 03:55:15.000000000 -0500 ++++ boreas/ping.c 2024-04-24 02:34:16.020861000 -0500 +@@ -13,9 +13,13 @@ #include #include #include /* for getifaddrs() */ +#if defined __linux__ #include +#endif - #include +#include + #include #include +#include #include #include #include -@@ -37,7 +41,6 @@ +@@ -23,7 +27,6 @@ #include #include #include @@ -22,7 +22,7 @@ #include #undef G_LOG_DOMAIN -@@ -106,7 +109,11 @@ +@@ -102,7 +105,11 @@ int cur_so_sendbuf = -1; /* Get the current size of the output queue size */ @@ -34,7 +34,7 @@ { g_warning ("%s: ioctl error: %s", __func__, strerror (errno)); usleep (100000); -@@ -122,7 +129,11 @@ +@@ -118,7 +125,11 @@ while (cur_so_sendbuf >= so_sndbuf) { usleep (100000); @@ -46,16 +46,32 @@ { g_warning ("%s: ioctl error: %s", __func__, strerror (errno)); usleep (100000); -@@ -209,12 +220,22 @@ +@@ -198,21 +209,38 @@ + + int len; + int datalen = 56; ++#ifdef __FreeBSD__ ++ struct icmp *icmp; ++#else + struct icmphdr *icmp; ++#endif + + /* Throttling related variables */ + static int so_sndbuf = -1; // socket send buffer static int init = -1; - icmp = (struct icmphdr *) sendbuf; +#ifdef __FreeBSD__ ++ icmp = (struct icmp *) sendbuf; + icmp->icmp_type = ICMP_ECHO; + icmp->icmp_code = 0; ++ icmp->icmp_id = get_echo_id (); ++ icmp->icmp_seq = 0x0100; +#else + icmp = (struct icmphdr *) sendbuf; icmp->type = ICMP_ECHO; icmp->code = 0; + icmp->un.echo.id = get_echo_id (); + icmp->un.echo.sequence = 0x0100; +#endif len = 8 + datalen; @@ -69,32 +85,32 @@ memset (&soca, 0, sizeof (soca)); soca.sin_family = AF_INET; -@@ -287,7 +308,11 @@ +@@ -285,7 +313,11 @@ } else { -- dst4.s_addr = dst6_p->s6_addr32[3]; +#ifdef __FreeBSD__ -+ dst4.s_addr = dst6_p->s6_addr[12]; ++ dst4.s_addr = dst6_p->s6_addr[12]; +#else -+ dst4.s_addr = dst6_p->s6_addr32[3]; + dst4.s_addr = dst6_p->s6_addr32[3]; +#endif send_icmp_v4 (scanner->icmpv4soc, dst4_p); } if (grace_period > 0) -@@ -552,7 +577,11 @@ +@@ -550,7 +582,11 @@ } else { +- dst4.s_addr = dst6_p->s6_addr32[3]; +#ifdef __FreeBSD__ -+ dst4.s_addr = dst6_p->s6_addr[12]; ++ dst4.s_addr = dst6_p->s6_addr[12]; +#else - dst4.s_addr = dst6_p->s6_addr32[3]; ++ dst4.s_addr = dst6_p->s6_addr32[3]; +#endif send_tcp_v4 (scanner, dst4_p); } } -@@ -602,7 +631,11 @@ +@@ -600,7 +636,11 @@ /* Need to transform the IPv6 mapped IPv4 address back to an IPv4 string. * We can not just use the host_value_str as it might be an IPv4 mapped * IPv6 string. */ -- cgit v1.2.3