lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 6 May 2020 00:00:25 -0700 From: Martin KaFai Lau <kafai@...com> To: Stanislav Fomichev <sdf@...gle.com> CC: <netdev@...r.kernel.org>, <bpf@...r.kernel.org>, <davem@...emloft.net>, <ast@...nel.org>, <daniel@...earbox.net>, Andrey Ignatov <rdna@...com> Subject: Re: [PATCH bpf-next v2 1/5] selftests/bpf: generalize helpers to control background listener On Tue, May 05, 2020 at 01:27:26PM -0700, Stanislav Fomichev wrote: > Move the following routines that let us start a background listener > thread and connect to a server by fd to the test_prog: > * start_server_thread - start background INADDR_ANY thread > * stop_server_thread - stop the thread > * connect_to_fd - connect to the server identified by fd > > These will be used in the next commit. The refactoring itself looks fine. If I read it correctly, it is a simple connect() test. I am not sure a thread is even needed. accept() is also unnecessary. Can all be done in one thread?
Powered by blists - more mailing lists