The first 4 commits moves the arp/ethtool/icmp link watchers to separate files, leaving the generic link watcher code in teamd_link_watch.c. The last commit adds support for the TIPC link watcher.
I've added a build-time check that checks if AF_TIPC/SIOCGETLINKNAME are available (kernel 3.15+), and only builds in TIPC support in that case.
The first 4 commits moves the arp/ethtool/icmp link watchers to separate files, leaving the generic link watcher code in teamd_link_watch.c. The last commit adds support for the TIPC link watcher. I've added a build-time check that checks if AF_TIPC/SIOCGETLINKNAME are available (kernel 3.15+), and only builds in TIPC support in that case.