I have a program that has two separate sections: one of them should be executed when the network interface is wireless LAN and the other one when it\'s a wired LAN connectio
If you target NetworkManager then take a look at its API, C examples and NMDeviceType.