summaryrefslogtreecommitdiff
path: root/security/gvm-libs/files/patch-boreas_util.c
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2021-02-18 21:00:12 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2021-02-18 21:00:12 +0000
commit2ff4121c61f4c84a2f9fc70fe64d20dc3f5bce1a (patch)
tree483b9935ac5cf73a9033728b932c62d49fe37543 /security/gvm-libs/files/patch-boreas_util.c
parent- Update to 20.8.2 (diff)
- Update gvm ports to 20.8.1
ChangeLog at: https://github.com/greenbone/gvmd/releases/tag/v20.8.1 https://github.com/greenbone/openvas-scanner/releases/tag/v20.8.1 https://github.com/greenbone/gsa/releases/tag/v20.8.1 https://github.com/greenbone/ospd-openvas/releases/tag/v20.8.1 https://github.com/greenbone/gvm-libs/releases/tag/v20.8.1
Diffstat (limited to 'security/gvm-libs/files/patch-boreas_util.c')
-rw-r--r--security/gvm-libs/files/patch-boreas_util.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/security/gvm-libs/files/patch-boreas_util.c b/security/gvm-libs/files/patch-boreas_util.c
index 1de3346db51b..afdb21e5bc32 100644
--- a/security/gvm-libs/files/patch-boreas_util.c
+++ b/security/gvm-libs/files/patch-boreas_util.c
@@ -1,6 +1,6 @@
---- boreas/util.c 2020-12-30 23:52:07.849996000 -0500
-+++ boreas/util.c 2020-12-31 01:36:37.600382000 -0500
-@@ -21,12 +21,20 @@
+--- boreas/util.c 2021-02-01 10:20:11.000000000 -0500
++++ boreas/util.c 2021-02-18 13:25:46.406205000 -0500
+@@ -21,13 +21,20 @@
#include "../base/networking.h" /* for range_t */
@@ -10,6 +10,7 @@
#include <errno.h>
#include <glib.h>
#include <ifaddrs.h> /* for getifaddrs() */
+-#include <linux/sockios.h>
#include <net/ethernet.h>
#include <net/if.h> /* for if_nametoindex() */
-#include <netpacket/packet.h> /* for sockaddr_ll */
@@ -21,8 +22,8 @@
+#endif
#include <stdlib.h>
#include <string.h>
- #include <sys/socket.h>
-@@ -109,22 +117,22 @@
+ #include <sys/ioctl.h>
+@@ -111,22 +118,22 @@
{
for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next)
{
@@ -51,7 +52,7 @@
}
}
}
-@@ -508,7 +516,7 @@
+@@ -516,7 +523,7 @@
break;
case ARPV4:
{
@@ -60,3 +61,12 @@
if (soc < 0)
{
g_warning ("%s: failed to open ARPV4 socket: %s", __func__,
+@@ -628,7 +635,7 @@
+ so_sndbuf_empty (int soc, int *err)
+ {
+ int cur_so_sendbuf = -1;
+- if (ioctl (soc, SIOCOUTQ, &cur_so_sendbuf) == -1)
++ if (ioctl (soc, TIOCOUTQ, &cur_so_sendbuf) == -1)
+ {
+ g_warning ("%s: ioctl error: %s", __func__, strerror (errno));
+ *err = -1;