public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 1/1] sendto: Add PACKET_VNET_HDR to lapi and use it
@ 2020-09-23 15:29 Petr Vorel
  2020-09-24  4:51 ` Li Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Vorel @ 2020-09-23 15:29 UTC (permalink / raw)
  To: ltp

to fix build on CentOS 6

Fixme: b59c66210 ("Add test for CVE 2020-14386")

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
changes v1->v2:
* actually add lapi header

 include/lapi/if_packet.h                    | 4 ++++
 testcases/kernel/syscalls/sendto/sendto03.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/lapi/if_packet.h b/include/lapi/if_packet.h
index 81110217d..902489b57 100644
--- a/include/lapi/if_packet.h
+++ b/include/lapi/if_packet.h
@@ -25,6 +25,10 @@
 # define PACKET_RESERVE 12
 #endif
 
+#ifndef PACKET_VNET_HDR
+#define PACKET_VNET_HDR	15
+#endif
+
 #ifndef PACKET_FANOUT
 #define PACKET_FANOUT	18
 #endif
diff --git a/testcases/kernel/syscalls/sendto/sendto03.c b/testcases/kernel/syscalls/sendto/sendto03.c
index a6332ec52..3ecb574a1 100644
--- a/testcases/kernel/syscalls/sendto/sendto03.c
+++ b/testcases/kernel/syscalls/sendto/sendto03.c
@@ -23,13 +23,13 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
-#include <linux/if_packet.h>
 #include <net/if.h>
 #include <net/ethernet.h>
 #include <sched.h>
 
 #include "tst_test.h"
 #include "tst_net.h"
+#include "lapi/if_packet.h"
 
 #define BUFSIZE 1024
 
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [LTP] [PATCH v2 1/1] sendto: Add PACKET_VNET_HDR to lapi and use it
  2020-09-23 15:29 [LTP] [PATCH v2 1/1] sendto: Add PACKET_VNET_HDR to lapi and use it Petr Vorel
@ 2020-09-24  4:51 ` Li Wang
  2020-09-24  6:12   ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: Li Wang @ 2020-09-24  4:51 UTC (permalink / raw)
  To: ltp

On Wed, Sep 23, 2020 at 11:29 PM Petr Vorel <pvorel@suse.cz> wrote:

> to fix build on CentOS 6
>
> Fixme: b59c66210 ("Add test for CVE 2020-14386")
>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>


Reviewed-by: Li Wang <liwang@redhat.com>

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200924/2bd9a07c/attachment.htm>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [LTP] [PATCH v2 1/1] sendto: Add PACKET_VNET_HDR to lapi and use it
  2020-09-24  4:51 ` Li Wang
@ 2020-09-24  6:12   ` Petr Vorel
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2020-09-24  6:12 UTC (permalink / raw)
  To: ltp

Hi Li,

> On Wed, Sep 23, 2020 at 11:29 PM Petr Vorel <pvorel@suse.cz> wrote:

> > to fix build on CentOS 6

> > Fixme: b59c66210 ("Add test for CVE 2020-14386")

> > Signed-off-by: Petr Vorel <pvorel@suse.cz>


> Reviewed-by: Li Wang <liwang@redhat.com>
Thanks for you review! Merged.

Kind regards,
Petr

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-24  6:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-23 15:29 [LTP] [PATCH v2 1/1] sendto: Add PACKET_VNET_HDR to lapi and use it Petr Vorel
2020-09-24  4:51 ` Li Wang
2020-09-24  6:12   ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox