c8ae56e62d
Having a global variable which is set to "TUN" or "TAP" during probe is a potential bug if probing is ever done in different processes or contexts. Let's fix it now by using existing enum that has type of connection. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by Keith Wiles <keith.wiles@intel.com>