Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 25 of 76) sorted by relevance

1234

/net/appletalk/
Daarp.c411 void aarp_proxy_remove(struct net_device *dev, struct atalk_addr *sa) in aarp_proxy_remove() argument
413 int hash = sa->s_node % (AARP_HASH_SIZE - 1); in aarp_proxy_remove()
418 a = __aarp_find_entry(proxies[hash], dev, sa); in aarp_proxy_remove()
427 struct atalk_addr *sa) in __aarp_proxy_find() argument
429 int hash = sa->s_node % (AARP_HASH_SIZE - 1); in __aarp_proxy_find()
430 struct aarp_entry *a = __aarp_find_entry(proxies[hash], dev, sa); in __aarp_proxy_find()
432 return a ? sa : NULL; in __aarp_proxy_find()
442 struct sockaddr_at *sa = (struct sockaddr_at *)&atreq.ifr_addr; in aarp_send_probe_phase1() local
445 sa->sat_addr.s_node = iface->address.s_node; in aarp_send_probe_phase1()
446 sa->sat_addr.s_net = ntohs(iface->address.s_net); in aarp_send_probe_phase1()
[all …]
Dddp.c221 struct atalk_addr *sa) in atif_add_device() argument
231 iface->address = *sa; in atif_add_device()
476 struct net_device *atrtr_get_dev(struct atalk_addr *sa) in atrtr_get_dev() argument
478 struct atalk_route *atr = atrtr_find(sa); in atrtr_get_dev()
661 struct sockaddr_at *sa; in atif_ioctl() local
676 sa = (struct sockaddr_at *)&atreq.ifr_addr; in atif_ioctl()
683 if (sa->sat_family != AF_APPLETALK) in atif_ioctl()
691 nr = (struct atalk_netrange *)&sa->sat_zero[0]; in atif_ioctl()
700 atalk_find_interface(sa->sat_addr.s_net, in atif_ioctl()
701 sa->sat_addr.s_node)) { in atif_ioctl()
[all …]
/net/can/j1939/
Daddress-claim.c66 if (skcb->addr.sa == J1939_NO_ADDR) { in j1939_ac_verify_outgoing()
97 if (ecu->addr != skcb->addr.sa) in j1939_ac_fixup()
110 skcb->addr.sa = addr; in j1939_ac_fixup()
145 if (!j1939_address_is_valid(skcb->addr.sa)) { in j1939_ac_process()
169 if (ecu && ecu->addr == skcb->addr.sa) { in j1939_ac_process()
208 if (!ecu && j1939_address_is_unicast(skcb->addr.sa)) in j1939_ac_process()
217 if (j1939_address_is_idle(skcb->addr.sa)) { in j1939_ac_process()
223 if (ecu->addr != skcb->addr.sa) in j1939_ac_process()
225 ecu->addr = skcb->addr.sa; in j1939_ac_process()
227 prev = j1939_ecu_get_by_addr_locked(priv, skcb->addr.sa); in j1939_ac_process()
[all …]
Dbus.c276 int j1939_local_ecu_get(struct j1939_priv *priv, name_t name, u8 sa) in j1939_local_ecu_get() argument
283 if (j1939_address_is_unicast(sa)) in j1939_local_ecu_get()
284 priv->ents[sa].nusers++; in j1939_local_ecu_get()
308 void j1939_local_ecu_put(struct j1939_priv *priv, name_t name, u8 sa) in j1939_local_ecu_put() argument
314 if (j1939_address_is_unicast(sa)) in j1939_local_ecu_put()
315 priv->ents[sa].nusers--; in j1939_local_ecu_put()
Dmain.c74 skcb->addr.sa = cf->can_id; in j1939_can_recv()
79 if (!j1939_address_is_valid(skcb->addr.sa)) { in j1939_can_recv()
97 if (j1939_address_is_unicast(skcb->addr.sa) && in j1939_can_recv()
98 priv->ents[skcb->addr.sa].nusers) in j1939_can_recv()
346 skcb->addr.sa; in j1939_send_one()
Dsocket.c229 if (jsk->addr.sa != skcb->addr.da) in j1939_sk_match_dst()
248 if (jsk->addr.da != skcb->addr.sa) in j1939_sk_match_dst()
280 if ((skcb->addr.sa & f->addr_mask) != f->addr) in j1939_sk_match_filter()
408 jsk->addr.sa = J1939_NO_ADDR; in j1939_sk_init()
473 j1939_local_ecu_put(priv, jsk->addr.src_name, jsk->addr.sa); in j1939_sk_bind()
517 jsk->addr.sa = addr->can_addr.j1939.addr; in j1939_sk_bind()
520 ret = j1939_local_ecu_get(priv, jsk->addr.src_name, jsk->addr.sa); in j1939_sk_bind()
597 addr->can_addr.j1939.addr = jsk->addr.sa; in j1939_sk_sock2sockaddr_can()
648 jsk->addr.sa); in j1939_sk_release()
857 paddr->can_addr.j1939.addr = skcb->addr.sa; in j1939_sk_recvmsg()
[all …]
Dtransport.c483 } else if (se_addr->sa != sk_addr->da) { in j1939_session_match()
490 } else if (se_addr->da != sk_addr->sa) { in j1939_session_match()
497 } else if (se_addr->sa != sk_addr->sa) { in j1939_session_match()
575 swap(skcb->addr.da, skcb->addr.sa); in j1939_skbcb_swap()
1521 __func__, session, skcb->addr.sa, skcb->addr.da); in j1939_session_new()
1668 __func__, session, skcb.addr.sa, skcb.addr.da); in j1939_xtp_rx_rts_session_new()
1694 __func__, session, skcb->addr.sa, skcb->addr.da, in j1939_xtp_rx_rts_session_active()
1705 if (session->skcb.addr.sa != skcb->addr.sa || in j1939_xtp_rx_rts_session_active()
1709 session->skcb.addr.sa, skcb->addr.sa, in j1939_xtp_rx_rts_session_active()
1715 session->skcb.addr.sa = skcb->addr.sa; in j1939_xtp_rx_rts_session_active()
[all …]
Dj1939-priv.h99 int j1939_local_ecu_get(struct j1939_priv *priv, name_t name, u8 sa);
100 void j1939_local_ecu_put(struct j1939_priv *priv, name_t name, u8 sa);
148 u8 sa; member
/net/key/
Daf_key.c65 static int parse_sockaddr_pair(struct sockaddr *sa, int ext_len,
627 int pfkey_sockaddr_extract(const struct sockaddr *sa, xfrm_address_t *xaddr) in pfkey_sockaddr_extract() argument
629 switch (sa->sa_family) { in pfkey_sockaddr_extract()
632 ((struct sockaddr_in *)sa)->sin_addr.s_addr; in pfkey_sockaddr_extract()
637 &((struct sockaddr_in6 *)sa)->sin6_addr, in pfkey_sockaddr_extract()
654 const struct sadb_sa *sa; in pfkey_xfrm_state_lookup() local
660 sa = ext_hdrs[SADB_EXT_SA - 1]; in pfkey_xfrm_state_lookup()
661 if (sa == NULL) in pfkey_xfrm_state_lookup()
690 return xfrm_state_lookup(net, DUMMY_MARK, xaddr, sa->sadb_sa_spi, proto, family); in pfkey_xfrm_state_lookup()
731 struct sockaddr *sa, in pfkey_sockaddr_fill() argument
[all …]
/net/bluetooth/rfcomm/
Dsock.c329 struct sockaddr_rc sa; in rfcomm_sock_bind() local
337 memset(&sa, 0, sizeof(sa)); in rfcomm_sock_bind()
338 len = min_t(unsigned int, sizeof(sa), addr_len); in rfcomm_sock_bind()
339 memcpy(&sa, addr, len); in rfcomm_sock_bind()
341 BT_DBG("sk %p %pMR", sk, &sa.rc_bdaddr); in rfcomm_sock_bind()
357 if (sa.rc_channel && in rfcomm_sock_bind()
358 __rfcomm_get_listen_sock_by_addr(sa.rc_channel, &sa.rc_bdaddr)) { in rfcomm_sock_bind()
362 bacpy(&rfcomm_pi(sk)->src, &sa.rc_bdaddr); in rfcomm_sock_bind()
363 rfcomm_pi(sk)->channel = sa.rc_channel; in rfcomm_sock_bind()
376 struct sockaddr_rc *sa = (struct sockaddr_rc *) addr; in rfcomm_sock_connect() local
[all …]
/net/sctp/
Dipv6.c102 if (addr->a.sa.sa_family == AF_INET6 && in sctp_inet6addr_event()
352 if ((laddr->a.sa.sa_family == AF_INET6) && in sctp_v6_get_dst()
378 laddr->a.sa.sa_family != AF_INET6 || in sctp_v6_get_dst()
530 struct sockaddr_in6 *sa = &addr->v6; in sctp_v6_from_skb() local
537 sa->sin6_port = sh->source; in sctp_v6_from_skb()
538 sa->sin6_addr = ipv6_hdr(skb)->saddr; in sctp_v6_from_skb()
540 sa->sin6_port = sh->dest; in sctp_v6_from_skb()
541 sa->sin6_addr = ipv6_hdr(skb)->daddr; in sctp_v6_from_skb()
556 if (addr->sa.sa_family == AF_INET) { in sctp_v6_to_sk_saddr()
570 if (addr->sa.sa_family == AF_INET) { in sctp_v6_to_sk_daddr()
[all …]
Dprotocol.c150 if (addr->a.sa.sa_family == AF_INET && in sctp_copy_local_addr_list()
154 if (addr->a.sa.sa_family == AF_INET6 && in sctp_copy_local_addr_list()
220 struct sockaddr_in *sa = &addr->v4; in sctp_v4_from_skb() local
225 sa->sin_port = sh->source; in sctp_v4_from_skb()
226 sa->sin_addr.s_addr = ip_hdr(skb)->saddr; in sctp_v4_from_skb()
228 sa->sin_port = sh->dest; in sctp_v4_from_skb()
229 sa->sin_addr.s_addr = ip_hdr(skb)->daddr; in sctp_v4_from_skb()
231 memset(sa->sin_zero, 0, sizeof(sa->sin_zero)); in sctp_v4_from_skb()
300 if (addr1->sa.sa_family != addr2->sa.sa_family) in sctp_v4_cmp_addr()
500 AF_INET != laddr->a.sa.sa_family) in sctp_v4_get_dst()
[all …]
Dbind_addr.c406 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_bind_addr_state()
472 if ((((AF_INET == addr->sa.sa_family) && in sctp_copy_one_addr()
475 (((AF_INET6 == addr->sa.sa_family) && in sctp_copy_one_addr()
492 if (addr->sa.sa_family != AF_UNSPEC) in sctp_is_any()
493 fam = addr->sa.sa_family; in sctp_is_any()
570 af = sctp_get_af_specific(addr->sa.sa_family); in sctp_scope()
/net/sunrpc/xprtrdma/
Dsvc_rdma_transport.c70 struct sockaddr *sa, int salen,
194 struct sockaddr *sa; in handle_connect_req() local
208 sa = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.dst_addr; in handle_connect_req()
209 newxprt->sc_xprt.xpt_remotelen = svc_addr_len(sa); in handle_connect_req()
210 memcpy(&newxprt->sc_xprt.xpt_remote, sa, in handle_connect_req()
213 sizeof(newxprt->sc_xprt.xpt_remotebuf) - 1, "%pISc", sa); in handle_connect_req()
221 sa = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.src_addr; in handle_connect_req()
222 svc_xprt_set_local(&newxprt->sc_xprt, sa, svc_addr_len(sa)); in handle_connect_req()
298 struct sockaddr *sa, int salen, in svc_rdma_create() argument
305 if (sa->sa_family != AF_INET && sa->sa_family != AF_INET6) in svc_rdma_create()
[all …]
/net/phonet/
Ddatagram.c115 struct sockaddr_pn sa; in pn_recvmsg() local
127 pn_skb_get_src_sockaddr(skb, &sa); in pn_recvmsg()
144 __sockaddr_check_size(sizeof(sa)); in pn_recvmsg()
145 memcpy(msg->msg_name, &sa, sizeof(sa)); in pn_recvmsg()
146 *addr_len = sizeof(sa); in pn_recvmsg()
Daf_phonet.c363 struct sockaddr_pn sa; in phonet_rcv() local
384 pn_skb_get_dst_sockaddr(skb, &sa); in phonet_rcv()
387 if (pn_sockaddr_get_addr(&sa) == PNADDR_BROADCAST) { in phonet_rcv()
393 if (pn_sockaddr_get_object(&sa) == 0) { in phonet_rcv()
394 struct sock *sk = pn_find_sock_by_res(net, sa.spn_resource); in phonet_rcv()
400 if (phonet_address_lookup(net, pn_sockaddr_get_addr(&sa)) == 0) { in phonet_rcv()
402 struct sock *sk = pn_find_sock_by_sa(net, &sa); in phonet_rcv()
417 out_dev = phonet_route_output(net, pn_sockaddr_get_addr(&sa)); in phonet_rcv()
420 pn_sockaddr_get_addr(&sa)); in phonet_rcv()
428 pn_sockaddr_get_addr(&sa), in phonet_rcv()
/net/mac80211/
Dmichael.c30 u8 *da, *sa, tid; in michael_mic_hdr() local
33 sa = ieee80211_get_SA(hdr); in michael_mic_hdr()
48 (get_unaligned_le16(sa) << 16)); in michael_mic_hdr()
49 michael_block(mctx, get_unaligned_le32(&sa[2])); in michael_mic_hdr()
Ds1g.c50 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_s1g_send_twt_setup()
82 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_s1g_send_twt_teardown()
120 ieee80211_s1g_send_twt_setup(sdata, mgmt->sa, sdata->vif.addr, twt); in ieee80211_s1g_rx_twt_setup()
145 ieee80211_s1g_send_twt_teardown(sdata, mgmt->sa, sdata->vif.addr, in ieee80211_s1g_tx_twt_setup_fail()
158 sta = sta_info_get_bss(sdata, mgmt->sa); in ieee80211_s1g_rx_twt_action()
Dfils_aead.c245 addr[0] = mgmt->sa; in fils_encrypt_assoc_req()
290 mgmt->sa); in fils_decrypt_assoc_resp()
299 addr[0] = mgmt->sa; in fils_decrypt_assoc_resp()
320 mgmt->sa); in fils_decrypt_assoc_resp()
328 mgmt->sa); in fils_decrypt_assoc_resp()
/net/bluetooth/
Diso.c820 struct sockaddr_iso *sa = (struct sockaddr_iso *)addr; in iso_sock_bind_bc() local
824 BT_DBG("sk %p bc_sid %u bc_num_bis %u", sk, sa->iso_bc->bc_sid, in iso_sock_bind_bc()
825 sa->iso_bc->bc_num_bis); in iso_sock_bind_bc()
827 if (addr_len > sizeof(*sa) + sizeof(*sa->iso_bc) || in iso_sock_bind_bc()
828 sa->iso_bc->bc_num_bis < 0x01 || sa->iso_bc->bc_num_bis > 0x1f) in iso_sock_bind_bc()
831 bacpy(&iso_pi(sk)->dst, &sa->iso_bc->bc_bdaddr); in iso_sock_bind_bc()
832 iso_pi(sk)->dst_type = sa->iso_bc->bc_bdaddr_type; in iso_sock_bind_bc()
834 iso_pi(sk)->bc_sid = sa->iso_bc->bc_sid; in iso_sock_bind_bc()
835 iso_pi(sk)->bc_num_bis = sa->iso_bc->bc_num_bis; in iso_sock_bind_bc()
838 if (sa->iso_bc->bc_bis[i] < 0x01 || in iso_sock_bind_bc()
[all …]
/net/rose/
Drose_dev.c58 struct sockaddr *sa = addr; in rose_set_mac_address() local
61 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) in rose_set_mac_address()
65 err = rose_add_loopback_node((rose_address *)sa->sa_data); in rose_set_mac_address()
72 dev_addr_set(dev, sa->sa_data); in rose_set_mac_address()
/net/mac802154/
Diface.c53 struct sockaddr_ieee802154 *sa = in mac802154_wpan_ioctl() local
75 sa->family = AF_IEEE802154; in mac802154_wpan_ioctl()
76 sa->addr.addr_type = IEEE802154_ADDR_SHORT; in mac802154_wpan_ioctl()
77 sa->addr.pan_id = pan_id; in mac802154_wpan_ioctl()
78 sa->addr.short_addr = short_addr; in mac802154_wpan_ioctl()
91 if (sa->family != AF_IEEE802154 || in mac802154_wpan_ioctl()
92 sa->addr.addr_type != IEEE802154_ADDR_SHORT || in mac802154_wpan_ioctl()
93 sa->addr.pan_id == IEEE802154_PANID_BROADCAST || in mac802154_wpan_ioctl()
94 sa->addr.short_addr == IEEE802154_ADDR_BROADCAST || in mac802154_wpan_ioctl()
95 sa->addr.short_addr == IEEE802154_ADDR_UNDEF) { in mac802154_wpan_ioctl()
[all …]
/net/netrom/
Dnr_dev.c100 struct sockaddr *sa = addr; in nr_set_mac_address() local
103 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) in nr_set_mac_address()
107 err = ax25_listen_register((ax25_address *)sa->sa_data, NULL); in nr_set_mac_address()
114 dev_addr_set(dev, sa->sa_data); in nr_set_mac_address()
/net/llc/
Dllc_output.c26 const unsigned char *sa, const unsigned char *da) in llc_mac_hdr_init() argument
33 rc = dev_hard_header(skb, skb->dev, ETH_P_802_2, da, sa, in llc_mac_hdr_init()
/net/tipc/
Dudp_media.c588 struct sockaddr_storage sa; in tipc_parse_udp_addr() local
590 nla_memcpy(&sa, nla, sizeof(sa)); in tipc_parse_udp_addr()
591 if (sa.ss_family == AF_INET) { in tipc_parse_udp_addr()
592 struct sockaddr_in *ip4 = (struct sockaddr_in *)&sa; in tipc_parse_udp_addr()
600 } else if (sa.ss_family == AF_INET6) { in tipc_parse_udp_addr()
601 struct sockaddr_in6 *ip6 = (struct sockaddr_in6 *)&sa; in tipc_parse_udp_addr()

1234