add code for getting the primary interface
-rw-r--r-- 75 .gitignore
-rw-r--r-- 588 CMakeLists.txt
-rw-r--r-- 5231 convert-modeswitch.pl
-rw-r--r-- 6161 main.c
-rw-r--r-- 2411 switch.c
-rw-r--r-- 463 switch.h