diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-08-02 13:15:42 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-08-04 01:18:11 +0200 |
commit | 0cf7bf31f6ef6aa301542445208c973e620bb8cd (patch) | |
tree | 7bb19011d18a3370952b3bcd4b531d93d8a66353 /tcp_conn.h | |
parent | 7bc9b66fc2fae6b81ce497a34a5692f63691c810 (diff) | |
download | passt-0cf7bf31f6ef6aa301542445208c973e620bb8cd.tar passt-0cf7bf31f6ef6aa301542445208c973e620bb8cd.tar.gz passt-0cf7bf31f6ef6aa301542445208c973e620bb8cd.tar.bz2 passt-0cf7bf31f6ef6aa301542445208c973e620bb8cd.tar.lz passt-0cf7bf31f6ef6aa301542445208c973e620bb8cd.tar.xz passt-0cf7bf31f6ef6aa301542445208c973e620bb8cd.tar.zst passt-0cf7bf31f6ef6aa301542445208c973e620bb8cd.zip |
tap: Remove unnecessary global tun_ns_fd
tap_ns_tun(), which runs in an ephemeral thread puts the fd it opens into
the global variable tun_ns_fd to communicate it back to the main thread
in tap_sock_tun_init().
However, the only thing tap_sock_tun_init() does with it is copies it to
c->fd_tap and everything else uses it from there. tap_ns_tun() already
has access to the context structure, so we might as well store the value
directly in there rather than having a global as an intermediate.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_conn.h')
0 files changed, 0 insertions, 0 deletions