diff options
author | Arisotura <thetotalworm@gmail.com> | 2019-02-21 02:45:01 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2019-02-21 02:45:01 +0100 |
commit | 023a1ba200009eb9f462625597b508cd4fffa0da (patch) | |
tree | fdacee5eac6837968bbeb9ca4e85137763563bc6 /src/libui_sdl/LAN.cpp | |
parent | 616f2b494b311862f89b769151cec774fcbffc15 (diff) |
list adapters, display their info
Diffstat (limited to 'src/libui_sdl/LAN.cpp')
-rw-r--r-- | src/libui_sdl/LAN.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libui_sdl/LAN.cpp b/src/libui_sdl/LAN.cpp index a738656..2021b3d 100644 --- a/src/libui_sdl/LAN.cpp +++ b/src/libui_sdl/LAN.cpp @@ -98,6 +98,9 @@ bool TryLoadPCap(void* lib) bool Init() { + // TODO: how to deal with cases where an adapter is unplugged or changes config?? + if (PCapLib) return true; + PCapLib = NULL; PCapAdapter = NULL; PCapPacketLen = 0; |