Lines Matching refs:sa
117 #define SIN(sa) ((struct sockaddr_in *)(size_t)(sa))
438 #define satosinaddr(sa) (((struct sockaddr_in *)sa)->sin_addr.s_addr)
775 struct sockaddr *sa;
782 sa = (struct sockaddr *)cp;
786 if ( (cp + sa->sa_len) > cplim ) {
797 if (sa->sa_len == 0) {
803 rtinfo->rti_info[i] = sa;
804 ADVANCE(cp, sa);
817 struct sockaddr *sa;
856 if ((sa = rtinfo->rti_info[i]) == NULL)
859 dlen = ROUNDUP(sa->sa_len);
860 m_copyback(m, len, dlen, (caddr_t)sa);
917 struct sockaddr *sa;
919 if ((sa = rtinfo->rti_info[i]) == 0)
922 dlen = ROUNDUP(sa->sa_len);
924 bcopy((caddr_t)sa, cp, (unsigned)dlen);
969 struct sockaddr *sa = rtinfo->rti_info[RTAX_DST];
982 route_proto.sp_protocol = sa ? sa->sa_family : 0;
1028 struct sockaddr *sa = 0;
1042 ifaaddr = sa = ifa->ifa_addr;
1061 dst = sa = rt_key(rt);
1071 route_proto.sp_protocol = sa ? sa->sa_family : 0;