/net/llc/ |
D | llc_c_ac.c | 210 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_disc_cmd_p_set_x() 237 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_dm_rsp_f_set_p() 261 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_dm_rsp_f_set_1() 295 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_frmr_rsp_f_set_x() 322 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_frmr_rsp_f_set_0() 352 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_frmr_rsp_f_set_p() 373 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_i_cmd_p_set_1() 391 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_i_cmd_p_set_0() 409 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_i_xxx_x_set_0() 442 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr() [all …]
|
D | llc_station.c | 61 rc = llc_mac_hdr_init(nskb, skb->dev->dev_addr, mac_da); in llc_station_ac_send_xid_r() 92 rc = llc_mac_hdr_init(nskb, skb->dev->dev_addr, mac_da); in llc_station_ac_send_test_r()
|
/net/netrom/ |
D | nr_dev.c | 71 memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); in nr_header() 103 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) in nr_set_mac_address() 111 ax25_listen_release((const ax25_address *)dev->dev_addr, NULL); in nr_set_mac_address() 123 err = ax25_listen_register((const ax25_address *)dev->dev_addr, NULL); in nr_open() 134 ax25_listen_release((const ax25_address *)dev->dev_addr, NULL); in nr_close()
|
/net/8021q/ |
D | vlan_dev.c | 79 saddr = dev->dev_addr; in vlan_dev_hard_header() 254 eth_hw_addr_set(dev, real_dev->dev_addr); in vlan_dev_inherit_address() 269 if (!ether_addr_equal(dev->dev_addr, real_dev->dev_addr) && in vlan_dev_open() 271 err = dev_uc_add(real_dev, dev->dev_addr); in vlan_dev_open() 287 ether_addr_copy(vlan->real_dev_addr, real_dev->dev_addr); in vlan_dev_open() 304 if (!ether_addr_equal(dev->dev_addr, real_dev->dev_addr)) in vlan_dev_open() 305 dev_uc_del(real_dev, dev->dev_addr); in vlan_dev_open() 323 if (!ether_addr_equal(dev->dev_addr, real_dev->dev_addr)) in vlan_dev_stop() 324 dev_uc_del(real_dev, dev->dev_addr); in vlan_dev_stop() 343 if (!ether_addr_equal(addr->sa_data, real_dev->dev_addr)) { in vlan_dev_set_mac_address() [all …]
|
D | vlan.c | 294 if (ether_addr_equal(vlan->real_dev_addr, dev->dev_addr)) in vlan_sync_address() 303 if (!ether_addr_equal(vlandev->dev_addr, vlan->real_dev_addr) && in vlan_sync_address() 304 ether_addr_equal(vlandev->dev_addr, dev->dev_addr)) in vlan_sync_address() 305 dev_uc_del(dev, vlandev->dev_addr); in vlan_sync_address() 309 if (ether_addr_equal(vlandev->dev_addr, vlan->real_dev_addr) && in vlan_sync_address() 310 !ether_addr_equal(vlandev->dev_addr, dev->dev_addr)) in vlan_sync_address() 311 dev_uc_add(dev, vlandev->dev_addr); in vlan_sync_address() 314 ether_addr_copy(vlan->real_dev_addr, dev->dev_addr); in vlan_sync_address()
|
/net/rose/ |
D | rose_dev.c | 61 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) in rose_set_mac_address() 69 rose_del_loopback_node((const rose_address *)dev->dev_addr); in rose_set_mac_address() 81 err = rose_add_loopback_node((const rose_address *)dev->dev_addr); in rose_open() 93 rose_del_loopback_node((const rose_address *)dev->dev_addr); in rose_close()
|
D | rose_link.c | 101 rose_call = (const ax25_address *)neigh->dev->dev_addr; in rose_send_frame() 124 rose_call = (const ax25_address *)neigh->dev->dev_addr; in rose_link_up()
|
/net/hsr/ |
D | hsr_main.c | 78 eth_hw_addr_set(master->dev, dev->dev_addr); in hsr_netdev_notify() 86 master->dev->dev_addr, in hsr_netdev_notify() 88 port->dev->dev_addr : in hsr_netdev_notify() 89 master->dev->dev_addr); in hsr_netdev_notify()
|
D | hsr_device.c | 258 skb->dev->dev_addr, skb->len) <= 0) in hsr_init_skb() 316 ether_addr_copy(hsr_sp->macaddress_A, master->dev->dev_addr); in send_hsr_supervision_frame() 356 ether_addr_copy(hsr_sp->macaddress_A, master->dev->dev_addr); in send_prp_supervision_frame() 492 eth_hw_addr_set(hsr_dev, slave[0]->dev_addr); in hsr_dev_finalize() 506 res = hsr_create_self_node(hsr, hsr_dev->dev_addr, in hsr_dev_finalize() 507 slave[1]->dev_addr); in hsr_dev_finalize()
|
/net/batman-adv/ |
D | bridge_loop_avoidance.c | 370 primary_if->net_dev->dev_addr, in batadv_bla_send_claim() 572 primary_if->net_dev->dev_addr, in batadv_bla_update_own_backbone_gw() 605 primary_if->net_dev->dev_addr, in batadv_bla_answer_request() 907 if (!batadv_compare_eth(ethhdr->h_dest, primary_if->net_dev->dev_addr)) in batadv_handle_request() 937 primary_if->net_dev->dev_addr)) in batadv_handle_unclaim() 983 if (batadv_compare_eth(backbone_addr, primary_if->net_dev->dev_addr)) in batadv_handle_claim() 1039 if (batadv_compare_eth(backbone_addr, primary_if->net_dev->dev_addr)) in batadv_check_claim_group() 1296 primary_if->net_dev->dev_addr)) in batadv_bla_purge_claims() 1339 group = htons(crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN)); in batadv_bla_update_orig_address() 1363 oldif->net_dev->dev_addr)) in batadv_bla_update_orig_address() [all …]
|
D | soft-interface.c | 135 ether_addr_copy(old_addr, dev->dev_addr); in batadv_interface_set_mac_addr() 350 primary_if->net_dev->dev_addr); in batadv_interface_tx() 588 bat_priv->soft_iface->dev_addr, vid, in batadv_softif_create_vlan() 608 batadv_tt_local_remove(bat_priv, bat_priv->soft_iface->dev_addr, in batadv_softif_destroy_vlan() 654 bat_priv->soft_iface->dev_addr, vid, in batadv_interface_add_vid()
|
D | tp_meter.c | 634 const unsigned char *dev_addr; in batadv_tp_recv_ack() local 686 batadv_tp_send_msg(tp_vars, primary_if->net_dev->dev_addr, in batadv_tp_recv_ack() 724 dev_addr = primary_if->net_dev->dev_addr; in batadv_tp_recv_ack() 725 batadv_tp_send_msg(tp_vars, dev_addr, in batadv_tp_recv_ack() 860 err = batadv_tp_send_msg(tp_vars, primary_if->net_dev->dev_addr, in batadv_tp_send() 1189 ether_addr_copy(icmp->orig, primary_if->net_dev->dev_addr); in batadv_tp_send_ack()
|
/net/mac802154/ |
D | llsec.c | 430 __le64 dev_addr, in mac802154_llsec_devkey_add() argument 436 dev = llsec_dev_find_long(sec, dev_addr); in mac802154_llsec_devkey_add() 454 __le64 dev_addr, in mac802154_llsec_devkey_del() argument 460 dev = llsec_dev_find_long(sec, dev_addr); in mac802154_llsec_devkey_del() 840 struct mac802154_llsec_key *key, __le64 dev_addr) in llsec_do_decrypt_unauth() argument 849 llsec_geniv(iv, dev_addr, &hdr->sec); in llsec_do_decrypt_unauth() 867 struct mac802154_llsec_key *key, __le64 dev_addr) in llsec_do_decrypt_auth() argument 876 llsec_geniv(iv, dev_addr, &hdr->sec); in llsec_do_decrypt_auth() 909 struct mac802154_llsec_key *key, __le64 dev_addr) in llsec_do_decrypt() argument 912 return llsec_do_decrypt_unauth(skb, sec, hdr, key, dev_addr); in llsec_do_decrypt() [all …]
|
D | llsec.h | 85 __le64 dev_addr, 88 __le64 dev_addr,
|
D | mib.c | 117 int mac802154_del_dev(struct net_device *dev, __le64 dev_addr) in mac802154_del_dev() argument 125 res = mac802154_llsec_dev_del(&sdata->sec, dev_addr); in mac802154_del_dev()
|
/net/bridge/netfilter/ |
D | ebt_redirect.c | 30 br_port_get_rcu(xt_in(par))->br->dev->dev_addr); in ebt_redirect_tg() 32 ether_addr_copy(eth_hdr(skb)->h_dest, xt_in(par)->dev_addr); in ebt_redirect_tg()
|
D | ebtable_broute.c | 79 !ether_addr_equal(skb->dev->dev_addr, dest) && in ebt_broute() 80 ether_addr_equal(p->br->dev->dev_addr, dest)) in ebt_broute()
|
/net/core/ |
D | dev_addr_lists_test.c | 70 KUNIT_EXPECT_TRUE(test, !!netdev->dev_addr); in dev_addr_test_basic() 74 KUNIT_EXPECT_MEMEQ(test, netdev->dev_addr, addr, sizeof(addr)); in dev_addr_test_basic() 78 KUNIT_EXPECT_MEMEQ(test, netdev->dev_addr, addr, sizeof(addr)); in dev_addr_test_basic()
|
D | dev_addr_lists.c | 513 if (!memcmp(dev->dev_addr, dev->dev_addr_shadow, MAX_ADDR_LEN)) in dev_addr_check() 516 netdev_warn(dev, "Current addr: %*ph\n", MAX_ADDR_LEN, dev->dev_addr); in dev_addr_check() 536 dev->dev_addr = NULL; in dev_addr_flush() 567 dev->dev_addr = ha->addr; in dev_addr_init() 579 ha = container_of(dev->dev_addr, struct netdev_hw_addr, addr[0]); in dev_addr_mod()
|
D | selftests.c | 317 attr.dst = ndev->dev_addr; in net_test_phy_loopback_udp() 325 attr.dst = ndev->dev_addr; in net_test_phy_loopback_udp_mtu() 334 attr.dst = ndev->dev_addr; in net_test_phy_loopback_tcp()
|
/net/802/ |
D | fddi.c | 75 memcpy(fddi->saddr, dev->dev_addr, dev->addr_len); in fddi_header() 129 if (memcmp(fddi->daddr, dev->dev_addr, FDDI_K_ALEN)) in fddi_type_trans()
|
/net/ax25/ |
D | ax25_in.c | 184 const ax25_address *dev_addr, struct packet_type *ptype) in ax25_rcv() argument 221 if (ax25cmp(&dest, dev_addr) == 0 && dp.lastrepeat + 1 == dp.ndigi) in ax25_rcv() 450 return ax25_rcv(skb, dev, (const ax25_address *)dev->dev_addr, ptype); in ax25_kiss_rcv()
|
/net/ethernet/ |
D | eth.c | 95 saddr = dev->dev_addr; in eth_header() 231 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN); in eth_header_cache() 326 if (!is_valid_ether_addr(dev->dev_addr)) in eth_validate_addr()
|
/net/wireless/ |
D | mlme.c | 117 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_deauth() 136 bool from_ap = !ether_addr_equal(mgmt->sa, wdev->netdev->dev_addr); in cfg80211_process_disassoc() 286 if (ether_addr_equal(req->bss->bssid, dev->dev_addr) || in cfg80211_mlme_auth() 288 ether_addr_equal(req->ap_mld_addr, dev->dev_addr))) in cfg80211_mlme_auth() 346 if (ether_addr_equal(req->links[i].bss->bssid, dev->dev_addr)) in cfg80211_mlme_assoc() 355 if ((req->bss && ether_addr_equal(req->bss->bssid, dev->dev_addr)) || in cfg80211_mlme_assoc() 357 ether_addr_equal(req->ap_mld_addr, dev->dev_addr))) in cfg80211_mlme_assoc()
|
/net/ipv4/ |
D | ipconfig.c | 564 if (memcmp(tha, dev->dev_addr, dev->addr_len)) in ic_rarp_recv() 597 dev->dev_addr, dev->dev_addr); in ic_rarp_send_if() 872 memcpy(b->hw_addr, dev->dev_addr, dev->addr_len); in ic_bootp_send_if() 888 dev->broadcast, dev->dev_addr, skb->len) < 0) { in ic_bootp_send_if() 1129 if (memcmp(dev->dev_addr, b->hw_addr, dev->addr_len) != 0) in ic_bootp_recv() 1608 ic_dev->dev->name, ic_dev->dev->addr_len, ic_dev->dev->dev_addr, in ip_auto_config()
|