public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v3 0/3] Increase bind() coverage - GH#538
@ 2020-03-12 12:55 Martin Doucha
  2020-03-12 12:55 ` [LTP] [PATCH v3 1/3] Create separate .c file for include/tst_net.h Martin Doucha
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Martin Doucha @ 2020-03-12 12:55 UTC (permalink / raw)
  To: ltp

This patchset adds a test that bind() opens sockets for incoming connections.
The test is split into two programs, one for stream-oriented sockets and
the other for datagram-oriented sockets.

This is a v3 resubmission of a patchset from last year. I had more important
patches to write for a while but I've dusted this code off now because I'll
need some of the helper functions in an upcoming CVE test.

Martin Doucha (3):
  Create separate .c file for include/tst_net.h
  Add socket address initialization functions to tst_net library
  Add connection tests for bind()

 include/tst_net.h                         | 136 ++------------
 lib/tst_net.c                             | 217 ++++++++++++++++++++++
 runtest/syscalls                          |   2 +
 testcases/kernel/syscalls/bind/.gitignore |   2 +
 testcases/kernel/syscalls/bind/Makefile   |   2 +
 testcases/kernel/syscalls/bind/bind04.c   | 172 +++++++++++++++++
 testcases/kernel/syscalls/bind/bind05.c   | 186 +++++++++++++++++++
 testcases/kernel/syscalls/bind/libbind.h  |  29 +++
 testcases/lib/tst_net_iface_prefix.c      |   9 +-
 testcases/lib/tst_net_ip_prefix.c         |  10 +-
 testcases/lib/tst_net_vars.c              |  64 +++----
 11 files changed, 671 insertions(+), 158 deletions(-)
 create mode 100644 lib/tst_net.c
 create mode 100644 testcases/kernel/syscalls/bind/bind04.c
 create mode 100644 testcases/kernel/syscalls/bind/bind05.c
 create mode 100644 testcases/kernel/syscalls/bind/libbind.h

-- 
2.25.1


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

end of thread, other threads:[~2020-03-16 16:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-12 12:55 [LTP] [PATCH v3 0/3] Increase bind() coverage - GH#538 Martin Doucha
2020-03-12 12:55 ` [LTP] [PATCH v3 1/3] Create separate .c file for include/tst_net.h Martin Doucha
2020-03-13 12:57   ` Cyril Hrubis
2020-03-13 14:50     ` Martin Doucha
2020-03-16 14:18       ` Cyril Hrubis
2020-03-16 16:33         ` Petr Vorel
2020-03-12 12:55 ` [LTP] [PATCH v3 2/3] Add socket address initialization functions to tst_net library Martin Doucha
2020-03-12 12:55 ` [LTP] [PATCH v3 3/3] Add connection tests for bind() Martin Doucha

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