603
603
raise AvahiGroupError("State changed: %s", str(error))
606
606
"""Call the C function if_nametoindex(), or equivalent"""
610
609
if "ctypes.util" not in sys.modules:
621
613
except (OSError, AttributeError):
622
614
if "struct" not in sys.modules:
624
616
if "fcntl" not in sys.modules:
627
619
"Get an interface index the hard way, i.e. using fcntl()"
628
620
SIOCGIFINDEX = 0x8933 # From /usr/include/linux/sockios.h