Home
last modified time | relevance | path

Searched refs:ifr_hwaddr (Results 1 – 4 of 4) sorted by relevance

/linux-2.6.39/Documentation/networking/
Difenslave.c388 sa_family_t master_family = master_hwaddr.ifr_hwaddr.sa_family; in main()
390 (unsigned char *)master_hwaddr.ifr_hwaddr.sa_data; in main()
531 hwaddr = (unsigned char *)ifr.ifr_hwaddr.sa_data; in if_getconfig()
534 ifr.ifr_hwaddr.sa_family, hwaddr[0], hwaddr[1], in if_getconfig()
727 &(master_hwaddr.ifr_hwaddr)); in enslave()
772 &(slave_hwaddr.ifr_hwaddr)); in enslave()
817 set_master_hwaddr(master_ifname, &(master_hwaddr.ifr_hwaddr)); in enslave()
821 set_slave_hwaddr(slave_ifname, &(slave_hwaddr.ifr_hwaddr)); in enslave()
913 memcpy(&(ifr.ifr_hwaddr), hwaddr, sizeof(struct sockaddr)); in set_master_hwaddr()
937 memcpy(&(ifr.ifr_hwaddr), hwaddr, sizeof(struct sockaddr)); in set_slave_hwaddr()
/linux-2.6.39/include/linux/
Dif.h193 #define ifr_hwaddr ifr_ifru.ifru_hwaddr /* MAC address */ macro
/linux-2.6.39/net/core/
Ddev.c4745 memset(ifr->ifr_hwaddr.sa_data, 0, sizeof ifr->ifr_hwaddr.sa_data); in dev_ifsioc_locked()
4747 memcpy(ifr->ifr_hwaddr.sa_data, dev->dev_addr, in dev_ifsioc_locked()
4748 min(sizeof ifr->ifr_hwaddr.sa_data, (size_t) dev->addr_len)); in dev_ifsioc_locked()
4749 ifr->ifr_hwaddr.sa_family = dev->type; in dev_ifsioc_locked()
4811 return dev_set_mac_address(dev, &ifr->ifr_hwaddr); in dev_ifsioc()
4814 if (ifr->ifr_hwaddr.sa_family != dev->type) in dev_ifsioc()
4816 memcpy(dev->broadcast, ifr->ifr_hwaddr.sa_data, in dev_ifsioc()
4817 min(sizeof ifr->ifr_hwaddr.sa_data, (size_t) dev->addr_len)); in dev_ifsioc()
4831 ifr->ifr_hwaddr.sa_family != AF_UNSPEC) in dev_ifsioc()
4835 return dev_mc_add_global(dev, ifr->ifr_hwaddr.sa_data); in dev_ifsioc()
[all …]
/linux-2.6.39/drivers/net/
Dtun.c1332 memcpy(ifr.ifr_hwaddr.sa_data, tun->dev->dev_addr, ETH_ALEN); in __tun_chr_ioctl()
1333 ifr.ifr_hwaddr.sa_family = tun->dev->type; in __tun_chr_ioctl()
1341 ifr.ifr_hwaddr.sa_data); in __tun_chr_ioctl()
1343 ret = dev_set_mac_address(tun->dev, &ifr.ifr_hwaddr); in __tun_chr_ioctl()