Lines Matching refs:sax
805 struct full_sockaddr_ax25 *sax = (struct full_sockaddr_ax25 *)uaddr; in nr_getname() local
811 sax->fsa_ax25.sax25_family = AF_NETROM; in nr_getname()
812 sax->fsa_ax25.sax25_ndigis = 1; in nr_getname()
813 sax->fsa_ax25.sax25_call = sk->protinfo.nr->user_addr; in nr_getname()
814 memset(sax->fsa_digipeater, 0, sizeof(sax->fsa_digipeater)); in nr_getname()
815 sax->fsa_digipeater[0] = sk->protinfo.nr->dest_addr; in nr_getname()
818 sax->fsa_ax25.sax25_family = AF_NETROM; in nr_getname()
819 sax->fsa_ax25.sax25_ndigis = 0; in nr_getname()
820 sax->fsa_ax25.sax25_call = sk->protinfo.nr->source_addr; in nr_getname()
1010 struct sockaddr_ax25 sax; in nr_sendmsg() local
1030 if (msg->msg_namelen < sizeof(sax)) in nr_sendmsg()
1032 sax = *usax; in nr_sendmsg()
1033 if (ax25cmp(&sk->protinfo.nr->dest_addr, &sax.sax25_call) != 0) in nr_sendmsg()
1035 if (sax.sax25_family != AF_NETROM) in nr_sendmsg()
1040 sax.sax25_family = AF_NETROM; in nr_sendmsg()
1041 sax.sax25_call = sk->protinfo.nr->dest_addr; in nr_sendmsg()
1102 struct sockaddr_ax25 *sax = (struct sockaddr_ax25 *)msg->msg_name; in nr_recvmsg() local
1129 if (sax != NULL) { in nr_recvmsg()
1130 sax->sax25_family = AF_NETROM; in nr_recvmsg()
1131 memcpy(sax->sax25_call.ax25_call, skb->data + 7, AX25_ADDR_LEN); in nr_recvmsg()
1134 msg->msg_namelen = sizeof(*sax); in nr_recvmsg()