2 #include <types/types.h>
3 #include <talloc/talloc.h>
4 #include <sys/socket.h>
11 uint8_t hwaddr[HWADDR_SIZE];
15 IFSTATE_UP_WAITING_LINK,
20 struct list_item list;
21 struct process *udhcpc_process;
22 struct discover_device *dev;
25 static struct interface test = {
27 .hwaddr = {1,2,3,4,5,6},
30 static struct interface *find_interface_by_name(struct network *network,
35 if (!strcmp(test.name, name))
41 uint8_t *find_mac_by_name(void *ctx, struct network *network,
44 struct interface *interface;
47 interface = find_interface_by_name(network, name);
51 return talloc_memdup(ctx, &interface->hwaddr,
52 sizeof(uint8_t) * HWADDR_SIZE);