Lines Matching refs:sa
411 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()
451 if (iface->address.s_net != htons(sa->sat_addr.s_net) || in aarp_send_probe_phase1()
452 iface->address.s_node != sa->sat_addr.s_node) in aarp_send_probe_phase1()
455 iface->address.s_net = htons(sa->sat_addr.s_net); in aarp_send_probe_phase1()
456 iface->address.s_node = sa->sat_addr.s_node; in aarp_send_probe_phase1()
481 int aarp_proxy_probe_network(struct atalk_iface *atif, struct atalk_addr *sa) in aarp_proxy_probe_network() argument
506 entry->target_addr.s_node = sa->s_node; in aarp_proxy_probe_network()
507 entry->target_addr.s_net = sa->s_net; in aarp_proxy_probe_network()
512 hash = sa->s_node % (AARP_HASH_SIZE - 1); in aarp_proxy_probe_network()
517 aarp_send_probe(atif->dev, sa); in aarp_proxy_probe_network()
543 struct atalk_addr *sa, void *hwaddr) in aarp_send_ddp() argument
583 skb->data[0] = sa->s_node; in aarp_send_ddp()
603 hash = sa->s_node % (AARP_HASH_SIZE - 1); in aarp_send_ddp()
606 if (sa->s_node == ATADDR_BCAST) { in aarp_send_ddp()
613 a = __aarp_find_entry(resolved[hash], dev, sa); in aarp_send_ddp()
623 a = __aarp_find_entry(unresolved[hash], dev, sa); in aarp_send_ddp()
642 a->target_addr = *sa; in aarp_send_ddp()
720 struct atalk_addr sa, *ma, da; in aarp_rcv() local
746 sa.s_node = ea->pa_src_node; in aarp_rcv()
747 sa.s_net = ea->pa_src_net; in aarp_rcv()
783 a = __aarp_find_entry(unresolved[hash], dev, &sa); in aarp_rcv()
810 sa.s_node = ea->pa_dst_node; in aarp_rcv()
811 sa.s_net = ea->pa_dst_net; in aarp_rcv()
814 ma = __aarp_proxy_find(dev, &sa); in aarp_rcv()
818 da.s_node = sa.s_node; in aarp_rcv()
819 da.s_net = sa.s_net; in aarp_rcv()
829 a = __aarp_find_entry(resolved[sa.s_node % in aarp_rcv()
831 skb->dev, &sa); in aarp_rcv()
846 if (sa.s_node != ma->s_node) in aarp_rcv()
849 if (sa.s_net && ma->s_net && sa.s_net != ma->s_net) in aarp_rcv()
852 sa.s_node = ea->pa_src_node; in aarp_rcv()
853 sa.s_net = ea->pa_src_net; in aarp_rcv()
857 aarp_send_reply(dev, ma, &sa, ea->hw_src); in aarp_rcv()