Added ifNameToIndex (if_nametoindex).
Added tests for AF_CAN. Tests are disabled by default as CAN_AF is not
available on all platforms.