Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/
Ddummy.c128 if (tb[IFLA_ADDRESS]) { in dummy_validate()
129 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in dummy_validate()
131 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.c87 if (tb[IFLA_ADDRESS]) in nlmon_validate()
Dnetkit.c317 struct nlattr *attr = tb[IFLA_ADDRESS]; in netkit_validate()
389 (tb[IFLA_ADDRESS] || tbp[IFLA_ADDRESS])) in netkit_new_link()
405 if (mode == NETKIT_L2 && !(ifmp && tbp[IFLA_ADDRESS])) in netkit_new_link()
428 if (mode == NETKIT_L2 && !tb[IFLA_ADDRESS]) in netkit_new_link()
Dveth.c1729 if (tb[IFLA_ADDRESS]) { in veth_validate()
1730 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in veth_validate()
1732 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in veth_validate()
1822 if (!ifmp || !tbp[IFLA_ADDRESS]) in veth_newlink()
1853 if (tb[IFLA_ADDRESS] == NULL) in veth_newlink()
Dgeneve.c1242 if (tb[IFLA_ADDRESS]) { in geneve_validate()
1243 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) { in geneve_validate()
1244 NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_ADDRESS], in geneve_validate()
1249 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) { in geneve_validate()
1250 NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_ADDRESS], in geneve_validate()
Dmacvlan.c1313 if (tb[IFLA_ADDRESS]) { in macvlan_validate()
1314 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in macvlan_validate()
1316 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in macvlan_validate()
1476 if (!tb[IFLA_ADDRESS]) in macvlan_common_newlink()
Dvrf.c1675 if (tb[IFLA_ADDRESS]) { in vrf_validate()
1676 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) { in vrf_validate()
1680 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) { in vrf_validate()
/linux-6.12.1/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.12.1/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.12.1/net/bridge/
Dbr_netlink.c490 nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || in br_fill_ifinfo()
1174 if (tb[IFLA_ADDRESS]) { in br_validate()
1175 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in br_validate()
1177 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in br_validate()
1567 if (tb[IFLA_ADDRESS]) { in br_dev_newlink()
1569 br_stp_change_bridge_id(br, nla_data(tb[IFLA_ADDRESS])); in br_dev_newlink()
/linux-6.12.1/drivers/net/bonding/
Dbond_netlink.c137 if (tb[IFLA_ADDRESS]) { in bond_validate()
138 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in bond_validate()
140 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in bond_validate()
/linux-6.12.1/net/ipv4/
Dip_gre.c1105 if (tb[IFLA_ADDRESS]) { in ipgre_tap_validate()
1106 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in ipgre_tap_validate()
1108 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in ipgre_tap_validate()
Dip_tunnel.c1243 if (dev->type == ARPHRD_ETHER && !tb[IFLA_ADDRESS]) in ip_tunnel_newlink()
/linux-6.12.1/tools/testing/selftests/net/
Dtap.c188 rtattr_add_any(nh, IFLA_ADDRESS, param_hwaddr_src, ETH_ALEN); in macvtap_fill_rtattr()
/linux-6.12.1/net/core/
Drtnetlink.c1924 if (nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr) || in rtnl_fill_ifinfo()
2008 [IFLA_ADDRESS] = { .type = NLA_BINARY, .len = MAX_ADDR_LEN },
2455 if (tb[IFLA_ADDRESS] && in validate_linkmsg()
2456 nla_len(tb[IFLA_ADDRESS]) < dev->addr_len) in validate_linkmsg()
2870 if (tb[IFLA_ADDRESS]) { in do_setlink()
2882 memcpy(sa->sa_data, nla_data(tb[IFLA_ADDRESS]), in do_setlink()
3431 if (tb[IFLA_ADDRESS]) { in rtnl_create_link()
3432 __dev_addr_set(dev, nla_data(tb[IFLA_ADDRESS]), in rtnl_create_link()
3433 nla_len(tb[IFLA_ADDRESS])); in rtnl_create_link()
4959 nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || in ndo_dflt_bridge_getlink()
/linux-6.12.1/net/ipv6/
Dip6_gre.c1684 if (tb[IFLA_ADDRESS]) { in ip6gre_tap_validate()
1685 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in ip6gre_tap_validate()
1687 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in ip6gre_tap_validate()
1991 if (dev->type == ARPHRD_ETHER && !tb[IFLA_ADDRESS]) in ip6gre_newlink_common()
Daddrconf.c6071 nla_put(skb, IFLA_ADDRESS, dev->addr_len, dev->dev_addr)) || in inet6_fill_ifinfo()
/linux-6.12.1/drivers/net/team/
Dteam_core.c2214 if (tb[IFLA_ADDRESS] == NULL) in team_newlink()
2223 if (tb[IFLA_ADDRESS]) { in team_validate()
2224 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) in team_validate()
2226 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) in team_validate()
/linux-6.12.1/tools/include/uapi/linux/
Dif_link.h298 IFLA_ADDRESS, enumerator
/linux-6.12.1/include/uapi/linux/
Dif_link.h298 IFLA_ADDRESS, enumerator
/linux-6.12.1/drivers/net/vxlan/
Dvxlan_core.c3410 if (tb[IFLA_ADDRESS]) { in vxlan_validate()
3411 if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) { in vxlan_validate()
3412 NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_ADDRESS], in vxlan_validate()
3417 if (!is_valid_ether_addr(nla_data(tb[IFLA_ADDRESS]))) { in vxlan_validate()
3418 NL_SET_ERR_MSG_ATTR(extack, tb[IFLA_ADDRESS], in vxlan_validate()