Lines Matching refs:sin
516 struct sockaddr_in6 *sin = (struct sockaddr_in6 *)uaddr; in inet6_getname() local
521 sin->sin6_family = AF_INET6; in inet6_getname()
522 sin->sin6_flowinfo = 0; in inet6_getname()
523 sin->sin6_scope_id = 0; in inet6_getname()
532 sin->sin6_port = inet->inet_dport; in inet6_getname()
533 sin->sin6_addr = sk->sk_v6_daddr; in inet6_getname()
535 sin->sin6_flowinfo = np->flow_label; in inet6_getname()
536 BPF_CGROUP_RUN_SA_PROG(sk, (struct sockaddr *)sin, in inet6_getname()
540 sin->sin6_addr = np->saddr; in inet6_getname()
542 sin->sin6_addr = sk->sk_v6_rcv_saddr; in inet6_getname()
543 sin->sin6_port = inet->inet_sport; in inet6_getname()
544 BPF_CGROUP_RUN_SA_PROG(sk, (struct sockaddr *)sin, in inet6_getname()
547 sin->sin6_scope_id = ipv6_iface_scope_id(&sin->sin6_addr, in inet6_getname()
550 return sizeof(*sin); in inet6_getname()