Searched defs:sockaddr (Results 1 - 2 of 2) sorted by relevance

/lxc/src/lxc/
H A Dnetwork.c982 int lxc_convert_mac(char *macaddr, struct sockaddr *sockaddr) argument
989 sockaddr->sa_family = ARPHRD_ETHER;
990 data = (unsigned char *)sockaddr->sa_data;
H A Dconf.c2257 struct sockaddr sockaddr; local
2261 ret = lxc_convert_mac(hwaddr, &sockaddr);
2270 memcpy((char *) &ifr.ifr_hwaddr, (char *) &sockaddr, sizeof(sockaddr));

Completed in 23 milliseconds