Lines Matching defs:sa
150 static int key_preferred_oldsa = 0; /* preferred old sa rather than new sa.*/
922 /* prefered new sa rather than old sa */
1197 /* get sa for incoming */
1292 /* prefered new sa rather than old sa */
2118 struct sockaddr *sa;
2119 sa = (struct sockaddr *)(src0 + 1);
2120 if (sa->sa_family != newsp->req->saidx.src.ss_family) {
2122 || sa->sa_family != AF_INET6 || newsp->req->saidx.src.ss_family != AF_INET) {
2129 struct sockaddr *sa;
2130 sa = (struct sockaddr *)(dst0 + 1);
2131 if (sa->sa_family != newsp->req->saidx.dst.ss_family) {
2133 || sa->sa_family != AF_INET6 || newsp->req->saidx.dst.ss_family != AF_INET) {
3016 /* give up to delete this sa */
4251 key_ismyaddr(sa)
4252 struct sockaddr *sa;
4260 if (sa == NULL)
4263 switch (sa->sa_family) {
4267 sin = (struct sockaddr_in *)sa;
4284 return key_ismyaddr6((struct sockaddr_in6 *)sa);
7968 struct sockaddr *sa;
7971 const int sal = offsetof(struct sockaddr, sa_len) + sizeof(sa->sa_len);
8011 sa = (struct sockaddr *)((caddr_t)ext + baselen);
8014 if (baselen + PFKEY_ALIGN8(sa->sa_len) != len)