60
60
result = interfaces.tostring()
63
64
for index in range(0, byte_length, IF_STRUCT_SIZE):
64
65
ifreq_struct = result[index:index+IF_STRUCT_SIZE]
65
66
interface_name = ifreq_struct[:ifreq_struct.index("\0")]
69
72
def get_broadcast_address(sock, interface):