Home
last modified time | relevance | path

Searched refs:IFLA_ADDRESS (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/drivers/net/
Ddummy.c141 if (tb[IFLA_ADDRESS]) { in dummy_validate()
142 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in dummy_validate()
144 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in dummy_validate()
Difb.c378 if (tb[IFLA_ADDRESS]) { in ifb_validate()
379 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in ifb_validate()
381 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in ifb_validate()
Dnlmon.c107 if (tb[IFLA_ADDRESS]) in nlmon_validate()
Dveth.c1661 if (tb[IFLA_ADDRESS]) { in veth_validate()
1662 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in veth_validate()
1664 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in veth_validate()
1757 if (!ifmp || !tbp[IFLA_ADDRESS]) in veth_newlink()
1788 if (tb[IFLA_ADDRESS] == NULL) in veth_newlink()
Dmacvlan.c1293 if (tb[IFLA_ADDRESS]) { in macvlan_validate()
1294 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in macvlan_validate()
1296 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in macvlan_validate()
1456 if (!tb[IFLA_ADDRESS]) in macvlan_common_newlink()
Dgeneve.c1292 if (tb[IFLA_ADDRESS]) { in geneve_validate()
1293 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) { in geneve_validate()
1294 NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_ADDRESS], in geneve_validate()
1299 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) { in geneve_validate()
1300 NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_ADDRESS], in geneve_validate()
Dvrf.c1714 if (tb[IFLA_ADDRESS]) { in vrf_validate()
1715 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) { in vrf_validate()
1719 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) { in vrf_validate()
/linux-6.1.9/net/8021q/
Dvlan_netlink.c46 if (tb[IFLA_ADDRESS]) { in vlan_validate()
47 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) { in vlan_validate()
51 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) { in vlan_validate()
/linux-6.1.9/net/ieee802154/6lowpan/
Dcore.c125 if (tb[IFLA_ADDRESS]) { in lowpan_validate()
126 if (nla_len(tb[IFLA_ADDRESS]) != IEEE802154_ADDR_LEN) in lowpan_validate()
/linux-6.1.9/net/bridge/
Dbr_netlink.c473 nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || in br_fill_ifinfo()
1119 if (tb[IFLA_ADDRESS]) { in br_validate()
1120 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in br_validate()
1122 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in br_validate()
1502 if (tb[IFLA_ADDRESS]) { in br_dev_newlink()
1504 br_stp_change_bridge_id(br, nla_data(tb[IFLA_ADDRESS])); in br_dev_newlink()
/linux-6.1.9/drivers/net/bonding/
Dbond_netlink.c130 if (tb[IFLA_ADDRESS]) { in bond_validate()
131 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in bond_validate()
133 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in bond_validate()
/linux-6.1.9/net/core/
Drtnetlink.c1805 if (nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr) || in rtnl_fill_ifinfo()
1880 [IFLA_ADDRESS] = { .type = NLA_BINARY, .len = MAX_ADDR_LEN },
2333 if (tb[IFLA_ADDRESS] && in validate_linkmsg()
2334 nla_len(tb[IFLA_ADDRESS]) < dev->addr_len) in validate_linkmsg()
2722 if (tb[IFLA_ADDRESS]) { in do_setlink()
2734 memcpy(sa->sa_data, nla_data(tb[IFLA_ADDRESS]), in do_setlink()
3265 if (tb[IFLA_ADDRESS]) { in rtnl_create_link()
3266 __dev_addr_set(dev, nla_data(tb[IFLA_ADDRESS]), in rtnl_create_link()
3267 nla_len(tb[IFLA_ADDRESS])); in rtnl_create_link()
4761 nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || in ndo_dflt_bridge_getlink()
/linux-6.1.9/tools/testing/selftests/net/
Dtap.c188 rtattr_add_any(nh, IFLA_ADDRESS, param_hwaddr_src, ETH_ALEN); in macvtap_fill_rtattr()
/linux-6.1.9/net/ipv4/
Dip_gre.c1064 if (tb[IFLA_ADDRESS]) { in ipgre_tap_validate()
1065 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in ipgre_tap_validate()
1067 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in ipgre_tap_validate()
Dip_tunnel.c1158 if (dev->type == ARPHRD_ETHER && !tb[IFLA_ADDRESS]) in ip_tunnel_newlink()
/linux-6.1.9/tools/include/uapi/linux/
Dif_link.h278 IFLA_ADDRESS, enumerator
/linux-6.1.9/net/ipv6/
Dip6_gre.c1697 if (tb[IFLA_ADDRESS]) { in ip6gre_tap_validate()
1698 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in ip6gre_tap_validate()
1700 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in ip6gre_tap_validate()
2011 if (dev->type == ARPHRD_ETHER && !tb[IFLA_ADDRESS]) in ip6gre_newlink_common()
Daddrconf.c5944 nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || in inet6_fill_ifinfo()
/linux-6.1.9/include/uapi/linux/
Dif_link.h298 IFLA_ADDRESS, enumerator
/linux-6.1.9/drivers/net/team/
Dteam.c2204 if (tb[IFLA_ADDRESS] == NULL) in team_newlink()
2213 if (tb[IFLA_ADDRESS]) { in team_validate()
2214 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in team_validate()
2216 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in team_validate()
/linux-6.1.9/drivers/net/vxlan/
Dvxlan_core.c3253 if (tb[IFLA_ADDRESS]) { in vxlan_validate()
3254 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) { in vxlan_validate()
3255 NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_ADDRESS], in vxlan_validate()
3260 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) { in vxlan_validate()
3261 NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_ADDRESS], in vxlan_validate()