class returns a list of all classes for a given interface name.
It retrieves the list of links and then calls class_for_index
for the link with the matching name.
class_for_index returns a list of all classes for a given interface index.
The underlying implementation makes a netlink call with the RTM_GETCLASS command.