Lines Matching refs:sax
841 struct full_sockaddr_ax25 *sax = (struct full_sockaddr_ax25 *)uaddr; in nr_getname() local
846 memset(&sax->fsa_ax25, 0, sizeof(struct sockaddr_ax25)); in nr_getname()
854 sax->fsa_ax25.sax25_family = AF_NETROM; in nr_getname()
855 sax->fsa_ax25.sax25_ndigis = 1; in nr_getname()
856 sax->fsa_ax25.sax25_call = nr->user_addr; in nr_getname()
857 memset(sax->fsa_digipeater, 0, sizeof(sax->fsa_digipeater)); in nr_getname()
858 sax->fsa_digipeater[0] = nr->dest_addr; in nr_getname()
861 sax->fsa_ax25.sax25_family = AF_NETROM; in nr_getname()
862 sax->fsa_ax25.sax25_ndigis = 0; in nr_getname()
863 sax->fsa_ax25.sax25_call = nr->source_addr; in nr_getname()
1048 struct sockaddr_ax25 sax; in nr_sendmsg() local
1074 if (msg->msg_namelen < sizeof(sax)) { in nr_sendmsg()
1078 sax = *usax; in nr_sendmsg()
1079 if (ax25cmp(&nr->dest_addr, &sax.sax25_call) != 0) { in nr_sendmsg()
1083 if (sax.sax25_family != AF_NETROM) { in nr_sendmsg()
1092 sax.sax25_family = AF_NETROM; in nr_sendmsg()
1093 sax.sax25_call = nr->dest_addr; in nr_sendmsg()
1155 DECLARE_SOCKADDR(struct sockaddr_ax25 *, sax, msg->msg_name); in nr_recvmsg()
1193 if (sax != NULL) { in nr_recvmsg()
1194 memset(sax, 0, sizeof(*sax)); in nr_recvmsg()
1195 sax->sax25_family = AF_NETROM; in nr_recvmsg()
1196 skb_copy_from_linear_data_offset(skb, 7, sax->sax25_call.ax25_call, in nr_recvmsg()
1198 msg->msg_namelen = sizeof(*sax); in nr_recvmsg()