/net/appletalk/ |
D | aarp.c | 414 void aarp_proxy_remove(struct net_device *dev, struct atalk_addr *sa) in aarp_proxy_remove() argument 416 int hash = sa->s_node % (AARP_HASH_SIZE - 1); in aarp_proxy_remove() 421 a = __aarp_find_entry(proxies[hash], dev, sa); in aarp_proxy_remove() 430 struct atalk_addr *sa) in __aarp_proxy_find() argument 432 int hash = sa->s_node % (AARP_HASH_SIZE - 1); in __aarp_proxy_find() 433 struct aarp_entry *a = __aarp_find_entry(proxies[hash], dev, sa); in __aarp_proxy_find() 435 return a ? sa : NULL; in __aarp_proxy_find() 445 struct sockaddr_at *sa = (struct sockaddr_at *)&atreq.ifr_addr; in aarp_send_probe_phase1() local 448 sa->sat_addr.s_node = iface->address.s_node; in aarp_send_probe_phase1() 449 sa->sat_addr.s_net = ntohs(iface->address.s_net); in aarp_send_probe_phase1() [all …]
|
D | ddp.c | 228 struct atalk_addr *sa) in atif_add_device() argument 238 iface->address = *sa; in atif_add_device() 483 struct net_device *atrtr_get_dev(struct atalk_addr *sa) in atrtr_get_dev() argument 485 struct atalk_route *atr = atrtr_find(sa); in atrtr_get_dev() 668 struct sockaddr_at *sa; in atif_ioctl() local 683 sa = (struct sockaddr_at *)&atreq.ifr_addr; in atif_ioctl() 690 if (sa->sat_family != AF_APPLETALK) in atif_ioctl() 698 nr = (struct atalk_netrange *)&sa->sat_zero[0]; in atif_ioctl() 707 atalk_find_interface(sa->sat_addr.s_net, in atif_ioctl() 708 sa->sat_addr.s_node)) { in atif_ioctl() [all …]
|
/net/rxrpc/ |
D | ar-connevent.c | 332 struct sockaddr sa; in rxrpc_reject_packets() member 334 } sa; in rxrpc_reject_packets() local 355 msg.msg_name = &sa; in rxrpc_reject_packets() 360 memset(&sa, 0, sizeof(sa)); in rxrpc_reject_packets() 361 sa.sa.sa_family = local->srx.transport.family; in rxrpc_reject_packets() 362 switch (sa.sa.sa_family) { in rxrpc_reject_packets() 364 msg.msg_namelen = sizeof(sa.sin); in rxrpc_reject_packets() 376 switch (sa.sa.sa_family) { in rxrpc_reject_packets() 378 sa.sin.sin_port = udp_hdr(skb)->source; in rxrpc_reject_packets() 379 sa.sin.sin_addr.s_addr = ip_hdr(skb)->saddr; in rxrpc_reject_packets()
|
/net/key/ |
D | af_key.c | 631 int pfkey_sockaddr_extract(const struct sockaddr *sa, xfrm_address_t *xaddr) in pfkey_sockaddr_extract() argument 633 switch (sa->sa_family) { in pfkey_sockaddr_extract() 636 ((struct sockaddr_in *)sa)->sin_addr.s_addr; in pfkey_sockaddr_extract() 641 &((struct sockaddr_in6 *)sa)->sin6_addr, in pfkey_sockaddr_extract() 658 struct sadb_sa *sa; in pfkey_xfrm_state_lookup() local 664 sa = (struct sadb_sa *) ext_hdrs[SADB_EXT_SA-1]; in pfkey_xfrm_state_lookup() 665 if (sa == NULL) in pfkey_xfrm_state_lookup() 694 return xfrm_state_lookup(net, xaddr, sa->sadb_sa_spi, proto, family); in pfkey_xfrm_state_lookup() 735 struct sockaddr *sa, in pfkey_sockaddr_fill() argument 741 struct sockaddr_in *sin = (struct sockaddr_in *)sa; in pfkey_sockaddr_fill() [all …]
|
/net/sctp/ |
D | ipv6.c | 113 if (addr->a.sa.sa_family == AF_INET6 && in sctp_inet6addr_event() 338 (laddr->a.sa.sa_family == AF_INET6) && in sctp_v6_get_saddr() 429 if (addr->sa.sa_family == AF_INET && sctp_sk(sk)->v4mapped) { in sctp_v6_to_sk_saddr() 443 if (addr->sa.sa_family == AF_INET && sctp_sk(sk)->v4mapped) { in sctp_v6_to_sk_daddr() 485 addr->sa.sa_family = AF_INET6; in sctp_v6_dst_saddr() 496 if (addr1->sa.sa_family != addr2->sa.sa_family) { in sctp_v6_cmp_addr() 497 if (addr1->sa.sa_family == AF_INET && in sctp_v6_cmp_addr() 498 addr2->sa.sa_family == AF_INET6 && in sctp_v6_cmp_addr() 505 if (addr2->sa.sa_family == AF_INET && in sctp_v6_cmp_addr() 506 addr1->sa.sa_family == AF_INET6 && in sctp_v6_cmp_addr() [all …]
|
D | bind_addr.c | 396 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_bind_addr_state() 467 if ((((AF_INET == addr->sa.sa_family) && in sctp_copy_one_addr() 469 (((AF_INET6 == addr->sa.sa_family) && in sctp_copy_one_addr() 486 if (addr->sa.sa_family != AF_UNSPEC) in sctp_is_any() 487 fam = addr->sa.sa_family; in sctp_is_any() 529 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_scope()
|
D | protocol.c | 257 if ((((AF_INET == addr->a.sa.sa_family) && in sctp_copy_local_addr_list() 259 (((AF_INET6 == addr->a.sa.sa_family) && in sctp_copy_local_addr_list() 356 if (addr1->sa.sa_family != addr2->sa.sa_family) in sctp_v4_cmp_addr() 534 (AF_INET == laddr->a.sa.sa_family)) { in sctp_v4_get_dst() 695 if (addr->a.sa.sa_family == AF_INET && in sctp_inetaddr_event() 835 if (addr1->sa.sa_family != addr2->sa.sa_family) in sctp_inet_cmp_addr()
|
/net/llc/ |
D | llc_output.c | 34 const unsigned char *sa, const unsigned char *da) in llc_mac_hdr_init() argument 49 if (sa) in llc_mac_hdr_init() 50 memcpy(trh->saddr, sa, dev->addr_len); in llc_mac_hdr_init() 71 memcpy(eth->h_source, sa, ETH_ALEN); in llc_mac_hdr_init()
|
/net/mac80211/ |
D | michael.c | 33 u8 *da, *sa, tid; in michael_mic_hdr() local 36 sa = ieee80211_get_SA(hdr); in michael_mic_hdr() 51 (get_unaligned_le16(sa) << 16)); in michael_mic_hdr() 52 michael_block(mctx, get_unaligned_le32(&sa[2])); in michael_mic_hdr()
|
D | spectmgmt.c | 46 memcpy(msr_report->sa, sdata->dev->dev_addr, ETH_ALEN); in ieee80211_send_refuse_measurement_request() 84 mgmt->sa, mgmt->bssid, in ieee80211_process_measurement_req()
|
D | mesh.c | 168 int mesh_rmc_check(u8 *sa, struct ieee80211s_hdr *mesh_hdr, in mesh_rmc_check() argument 188 && (memcmp(sa, p->sa, ETH_ALEN) == 0)) in mesh_rmc_check() 199 memcpy(p->sa, sa, ETH_ALEN); in mesh_rmc_check() 510 mesh_neighbour_update(mgmt->sa, supp_rates, sdata, in ieee80211_mesh_rx_bcn_presp()
|
D | mlme.c | 157 memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); in ieee80211_send_probe_req() 220 memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); in ieee80211_send_auth() 295 memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); in ieee80211_send_assoc() 461 memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); in ieee80211_send_deauth_disassoc() 1067 memcmp(ifsta->bssid, mgmt->sa, ETH_ALEN) != 0) in ieee80211_rx_mgmt_auth() 1154 if (memcmp(ifsta->bssid, mgmt->sa, ETH_ALEN)) in ieee80211_rx_mgmt_deauth() 1186 if (memcmp(ifsta->bssid, mgmt->sa, ETH_ALEN)) in ieee80211_rx_mgmt_disassoc() 1233 if (memcmp(ifsta->bssid, mgmt->sa, ETH_ALEN) != 0) in ieee80211_rx_mgmt_assoc_resp() 1242 sdata->dev->name, reassoc ? "Rea" : "A", mgmt->sa, in ieee80211_rx_mgmt_assoc_resp() 1465 memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); in ieee80211_sta_join_ibss() [all …]
|
D | mesh_hwmp.c | 106 memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); in mesh_path_sel_frame_tx() 185 memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); in mesh_path_error_tx() 269 sta = sta_info_get(local, mgmt->sa); in hwmp_route_info_get() 358 ta = mgmt->sa; in hwmp_route_info_get() 455 cpu_to_le32(orig_dsn), mgmt->sa, 0, ttl, in hwmp_preq_frame_process() 556 ta = mgmt->sa; in hwmp_perr_frame_process()
|
D | mesh_plink.c | 170 memcpy(mgmt->sa, sdata->dev->dev_addr, ETH_ALEN); in mesh_plink_frame_tx() 451 sta = sta_info_get(local, mgmt->sa); in mesh_rx_plink_frame() 488 sta = mesh_plink_alloc(sdata, mgmt->sa, rates); in mesh_rx_plink_frame() 545 mgmt->sa, sta->plink_state, in mesh_rx_plink_frame()
|
/net/bluetooth/rfcomm/ |
D | sock.c | 349 struct sockaddr_rc *sa = (struct sockaddr_rc *) addr; in rfcomm_sock_bind() local 353 BT_DBG("sk %p %s", sk, batostr(&sa->rc_bdaddr)); in rfcomm_sock_bind() 372 if (sa->rc_channel && __rfcomm_get_sock_by_addr(sa->rc_channel, &sa->rc_bdaddr)) { in rfcomm_sock_bind() 376 bacpy(&bt_sk(sk)->src, &sa->rc_bdaddr); in rfcomm_sock_bind() 377 rfcomm_pi(sk)->channel = sa->rc_channel; in rfcomm_sock_bind() 390 struct sockaddr_rc *sa = (struct sockaddr_rc *) addr; in rfcomm_sock_connect() local 413 bacpy(&bt_sk(sk)->dst, &sa->rc_bdaddr); in rfcomm_sock_connect() 414 rfcomm_pi(sk)->channel = sa->rc_channel; in rfcomm_sock_connect() 419 err = rfcomm_dlc_open(d, &bt_sk(sk)->src, &sa->rc_bdaddr, sa->rc_channel); in rfcomm_sock_connect() 541 struct sockaddr_rc *sa = (struct sockaddr_rc *) addr; in rfcomm_sock_getname() local [all …]
|
/net/phonet/ |
D | datagram.c | 118 struct sockaddr_pn sa; in pn_recvmsg() local 126 *addr_len = sizeof(sa); in pn_recvmsg() 132 pn_skb_get_src_sockaddr(skb, &sa); in pn_recvmsg() 149 memcpy(msg->msg_name, &sa, sizeof(struct sockaddr_pn)); in pn_recvmsg()
|
D | socket.c | 160 struct sockaddr_pn sa; in pn_socket_autobind() local 163 memset(&sa, 0, sizeof(sa)); in pn_socket_autobind() 164 sa.spn_family = AF_PHONET; in pn_socket_autobind() 165 err = pn_socket_bind(sock, (struct sockaddr *)&sa, in pn_socket_autobind()
|
D | af_phonet.c | 349 struct sockaddr_pn sa; in phonet_rcv() local 366 pn_skb_get_dst_sockaddr(skb, &sa); in phonet_rcv() 367 if (pn_sockaddr_get_addr(&sa) == 0) in phonet_rcv() 370 sk = pn_find_sock_by_sa(dev_net(dev), &sa); in phonet_rcv()
|
/net/netrom/ |
D | nr_dev.c | 133 struct sockaddr *sa = addr; in nr_set_mac_address() local 136 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) in nr_set_mac_address() 140 err = ax25_listen_register((ax25_address *)sa->sa_data, NULL); in nr_set_mac_address() 147 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); in nr_set_mac_address()
|
/net/rose/ |
D | rose_dev.c | 95 struct sockaddr *sa = addr; in rose_set_mac_address() local 98 if (!memcpy(dev->dev_addr, sa->sa_data, dev->addr_len)) in rose_set_mac_address() 109 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); in rose_set_mac_address()
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_transport.c | 53 struct sockaddr *sa, int salen, 548 struct sockaddr *sa; in handle_connect_req() local 565 sa = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.dst_addr; in handle_connect_req() 566 svc_xprt_set_remote(&newxprt->sc_xprt, sa, svc_addr_len(sa)); in handle_connect_req() 567 sa = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.src_addr; in handle_connect_req() 568 svc_xprt_set_local(&newxprt->sc_xprt, sa, svc_addr_len(sa)); in handle_connect_req() 670 struct sockaddr *sa, int salen, in svc_rdma_create() argument 692 ret = rdma_bind_addr(listen_id, sa); in svc_rdma_create() 709 sa = (struct sockaddr *)&cma_xprt->sc_cm_id->route.addr.src_addr; in svc_rdma_create() 710 svc_xprt_set_local(&cma_xprt->sc_xprt, sa, salen); in svc_rdma_create()
|
/net/bluetooth/ |
D | sco.c | 461 struct sockaddr_sco *sa = (struct sockaddr_sco *) addr; in sco_sock_bind() local 463 bdaddr_t *src = &sa->sco_bdaddr; in sco_sock_bind() 466 BT_DBG("sk %p %s", sk, batostr(&sa->sco_bdaddr)); in sco_sock_bind() 484 bacpy(&bt_sk(sk)->src, &sa->sco_bdaddr); in sco_sock_bind() 497 struct sockaddr_sco *sa = (struct sockaddr_sco *) addr; in sco_sock_connect() local 516 bacpy(&bt_sk(sk)->dst, &sa->sco_bdaddr); in sco_sock_connect() 610 struct sockaddr_sco *sa = (struct sockaddr_sco *) addr; in sco_sock_getname() local 619 bacpy(&sa->sco_bdaddr, &bt_sk(sk)->dst); in sco_sock_getname() 621 bacpy(&sa->sco_bdaddr, &bt_sk(sk)->src); in sco_sock_getname()
|
/net/atm/ |
D | svc.c | 586 struct sockaddr_atmsvc sa; in svc_ioctl() local 593 if (copy_from_user(&sa, (void __user *) arg, sizeof(sa))) in svc_ioctl() 595 error = svc_addparty(sock, (struct sockaddr *) &sa, sizeof(sa), 0); in svc_ioctl()
|
/net/iucv/ |
D | af_iucv.c | 374 struct sockaddr_iucv *sa = (struct sockaddr_iucv *) addr; in iucv_sock_bind() local 392 if (__iucv_get_sock_by_name(sa->siucv_name)) { in iucv_sock_bind() 402 memcpy(iucv->src_name, sa->siucv_name, 8); in iucv_sock_bind() 451 struct sockaddr_iucv *sa = (struct sockaddr_iucv *) addr; in iucv_sock_connect() local 477 memcpy(iucv_sk(sk)->dst_user_id, sa->siucv_user_id, 8); in iucv_sock_connect() 478 memcpy(iucv_sk(sk)->dst_name, sa->siucv_name, 8); in iucv_sock_connect() 480 high_nmcpy(user_data, sa->siucv_name); in iucv_sock_connect() 493 sa->siucv_user_id, NULL, user_data, sk); in iucv_sock_connect()
|
/net/core/ |
D | rtnetlink.c | 813 struct sockaddr *sa; in do_setlink() local 827 sa = kmalloc(len, GFP_KERNEL); in do_setlink() 828 if (!sa) { in do_setlink() 832 sa->sa_family = dev->type; in do_setlink() 833 memcpy(sa->sa_data, nla_data(tb[IFLA_ADDRESS]), in do_setlink() 835 err = ops->ndo_set_mac_address(dev, sa); in do_setlink() 836 kfree(sa); in do_setlink()
|