Package: perftest / 4.4+0.5-1

Do-not-hard-code-location-of-netinet-ip.h.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
From 0f37c34f6f4d09e3ea75e9a3fad45821ba1dc8f8 Mon Sep 17 00:00:00 2001
From: Helmut Grohne <helmut@subdivi.de>
Date: Thu, 31 Jan 2019 22:25:17 +0100
Subject: [PATCH] Do not hard code location of netinet/ip.h

perftest hard codes the location of netinet/ip.h in a number of files.
Therefore it will fail to build against non-glibc libcs on Debian and
against a glibc that fixes Debian bug #798955. This commit removes the
unnecessary path.

Bug-Debian: https://bugs.debian.org/911489
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Forwarded: https://github.com/linux-rdma/perftest/pull/48
---
 src/raw_ethernet_fs_rate.c        | 3 +--
 src/raw_ethernet_send_burst_lat.c | 3 +--
 src/raw_ethernet_send_bw.c        | 3 +--
 src/raw_ethernet_send_lat.c       | 3 +--
 4 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/raw_ethernet_fs_rate.c b/src/raw_ethernet_fs_rate.c
index f20c4ed..787e07d 100755
--- a/src/raw_ethernet_fs_rate.c
+++ b/src/raw_ethernet_fs_rate.c
@@ -37,7 +37,6 @@
 #if defined(__FreeBSD__)
 #include <sys/types.h>
 #include <netinet/in.h>
-#include <netinet/ip.h>
 #endif
 
 #include <stdio.h>
@@ -45,7 +44,7 @@
 #include <string.h>
 #include <signal.h>
 #include <getopt.h>
-#include </usr/include/netinet/ip.h>
+#include <netinet/ip.h>
 #include <poll.h>
 #include "perftest_parameters.h"
 #include "perftest_resources.h"
diff --git a/src/raw_ethernet_send_burst_lat.c b/src/raw_ethernet_send_burst_lat.c
index ccc077c..4c7e28b 100755
--- a/src/raw_ethernet_send_burst_lat.c
+++ b/src/raw_ethernet_send_burst_lat.c
@@ -37,7 +37,6 @@
 #if defined(__FreeBSD__)
 #include <sys/types.h>
 #include <netinet/in.h>
-#include <netinet/ip.h>
 #endif
 
 #include <stdio.h>
@@ -45,7 +44,7 @@
 #include <string.h>
 #include <signal.h>
 #include <getopt.h>
-#include </usr/include/netinet/ip.h>
+#include <netinet/ip.h>
 #include <poll.h>
 #include "perftest_parameters.h"
 #include "perftest_resources.h"
diff --git a/src/raw_ethernet_send_bw.c b/src/raw_ethernet_send_bw.c
index e3ec1b0..92df63f 100755
--- a/src/raw_ethernet_send_bw.c
+++ b/src/raw_ethernet_send_bw.c
@@ -37,7 +37,6 @@
 #if defined(__FreeBSD__)
 #include <sys/types.h>
 #include <netinet/in.h>
-#include <netinet/ip.h>
 #endif
 
 #include <stdio.h>
@@ -45,7 +44,7 @@
 #include <string.h>
 #include <signal.h>
 #include <getopt.h>
-#include </usr/include/netinet/ip.h>
+#include <netinet/ip.h>
 #include <poll.h>
 #include "perftest_parameters.h"
 #include "perftest_resources.h"
diff --git a/src/raw_ethernet_send_lat.c b/src/raw_ethernet_send_lat.c
index a9e3715..4650b4f 100755
--- a/src/raw_ethernet_send_lat.c
+++ b/src/raw_ethernet_send_lat.c
@@ -37,7 +37,6 @@
 #if defined(__FreeBSD__)
 #include <sys/types.h>
 #include <netinet/in.h>
-#include <netinet/ip.h>
 #endif
 
 #include <stdio.h>
@@ -45,7 +44,7 @@
 #include <string.h>
 #include <signal.h>
 #include <getopt.h>
-#include </usr/include/netinet/ip.h>
+#include <netinet/ip.h>
 #include <poll.h>
 #include "perftest_parameters.h"
 #include "perftest_resources.h"
-- 
2.17.1