linux-cp: check if lcp_itf_pair exists before creating tap 86/39486/3
authorStanislav Zaikin <stanislav.zaikin@46labs.com>
Tue, 5 Sep 2023 08:40:07 +0000 (10:40 +0200)
committerMatthew Smith <mgsmith@netgate.com>
Fri, 13 Oct 2023 20:45:57 +0000 (20:45 +0000)
commita16463610639a22d470c2c999ce2a8408a575834
tree4b3ed807748200d82ebd1752e0c94a1201160b6a
parent8a92b68bc8eaaec48d144fba62490a32f28eb422
linux-cp: check if lcp_itf_pair exists before creating tap

Now we create tun/tap and then check whether lcp_itf_pair was already
created. Move the check in the beginning.

Type: fix

Signed-off-by: Stanislav Zaikin <stanislav.zaikin@46labs.com>
Change-Id: I848685a9cfdbe92a5e38ecb8e5d5322262b4e384
src/plugins/linux-cp/lcp_interface.c