sin6 2582 drivers/infiniband/core/cma.c struct sockaddr_in6 *sin6; sin6 2609 drivers/infiniband/core/cma.c sin6 = (struct sockaddr_in6 *) cma_src_addr(id_priv); sin6 2610 drivers/infiniband/core/cma.c path_rec.traffic_class = (u8) (be32_to_cpu(sin6->sin6_flowinfo) >> 20); sin6 3518 drivers/infiniband/core/cma.c struct sockaddr_in6 *sin6; sin6 3523 drivers/infiniband/core/cma.c sin6 = (struct sockaddr_in6 *) addr; sin6 3525 drivers/infiniband/core/cma.c if (!(ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LINKLOCAL)) sin6 3528 drivers/infiniband/core/cma.c if (!sin6->sin6_scope_id) sin6 3531 drivers/infiniband/core/cma.c dev_addr->bound_dev_if = sin6->sin6_scope_id; sin6 4225 drivers/infiniband/core/cma.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) addr; sin6 4230 drivers/infiniband/core/cma.c ((be32_to_cpu(sin6->sin6_addr.s6_addr32[0]) & 0xFFF0FFFF) == sin6 4233 drivers/infiniband/core/cma.c memcpy(mgid, &sin6->sin6_addr, sizeof *mgid); sin6 4237 drivers/infiniband/core/cma.c ipv6_ib_mc_map(&sin6->sin6_addr, dev_addr->broadcast, mc_map); sin6 4320 drivers/infiniband/core/cma.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)addr; sin6 4325 drivers/infiniband/core/cma.c memcpy(mgid, &sin6->sin6_addr, sizeof *mgid); sin6 381 drivers/infiniband/core/roce_gid_mgmt.c struct sockaddr_in6 sin6; sin6 402 drivers/infiniband/core/roce_gid_mgmt.c entry->sin6.sin6_family = AF_INET6; sin6 403 drivers/infiniband/core/roce_gid_mgmt.c entry->sin6.sin6_addr = ifp->addr; sin6 413 drivers/infiniband/core/roce_gid_mgmt.c rdma_ip2gid((struct sockaddr *)&sin6_iter->sin6, &gid); sin6 396 drivers/infiniband/hw/cxgb4/cm.c struct sockaddr_in6 *sin6 = sin6 402 drivers/infiniband/hw/cxgb4/cm.c (const u32 *)&sin6->sin6_addr.s6_addr, sin6 556 drivers/infiniband/hw/cxgb4/cm.c struct sockaddr_in6 *sin6 = sin6 559 drivers/infiniband/hw/cxgb4/cm.c (const u32 *)&sin6->sin6_addr.s6_addr, 1); sin6 2323 drivers/infiniband/hw/cxgb4/cm.c struct sockaddr_in6 *sin6 = sin6 2329 drivers/infiniband/hw/cxgb4/cm.c &sin6->sin6_addr.s6_addr, 1); sin6 2359 drivers/infiniband/hw/cxgb4/cm.c struct sockaddr_in6 *sin6 = sin6 2362 drivers/infiniband/hw/cxgb4/cm.c (const u32 *)&sin6->sin6_addr.s6_addr, 1); sin6 2523 drivers/infiniband/hw/cxgb4/cm.c struct sockaddr_in6 *sin6; sin6 2624 drivers/infiniband/hw/cxgb4/cm.c sin6 = (struct sockaddr_in6 *)&child_ep->com.local_addr; sin6 2625 drivers/infiniband/hw/cxgb4/cm.c sin6->sin6_family = PF_INET6; sin6 2626 drivers/infiniband/hw/cxgb4/cm.c sin6->sin6_port = local_port; sin6 2627 drivers/infiniband/hw/cxgb4/cm.c memcpy(sin6->sin6_addr.s6_addr, local_ip, 16); sin6 2629 drivers/infiniband/hw/cxgb4/cm.c sin6 = (struct sockaddr_in6 *)&child_ep->com.local_addr; sin6 2630 drivers/infiniband/hw/cxgb4/cm.c sin6->sin6_family = PF_INET6; sin6 2631 drivers/infiniband/hw/cxgb4/cm.c sin6->sin6_port = ((struct sockaddr_in6 *) sin6 2633 drivers/infiniband/hw/cxgb4/cm.c memcpy(sin6->sin6_addr.s6_addr, local_ip, 16); sin6 2635 drivers/infiniband/hw/cxgb4/cm.c sin6 = (struct sockaddr_in6 *)&child_ep->com.remote_addr; sin6 2636 drivers/infiniband/hw/cxgb4/cm.c sin6->sin6_family = PF_INET6; sin6 2637 drivers/infiniband/hw/cxgb4/cm.c sin6->sin6_port = peer_port; sin6 2638 drivers/infiniband/hw/cxgb4/cm.c memcpy(sin6->sin6_addr.s6_addr, peer_ip, 16); sin6 2661 drivers/infiniband/hw/cxgb4/cm.c sin6 = (struct sockaddr_in6 *)&child_ep->com.local_addr; sin6 2663 drivers/infiniband/hw/cxgb4/cm.c (const u32 *)&sin6->sin6_addr.s6_addr, 1); sin6 2949 drivers/infiniband/hw/cxgb4/cm.c struct sockaddr_in6 *sin6 = sin6 2954 drivers/infiniband/hw/cxgb4/cm.c (const u32 *)&sin6->sin6_addr.s6_addr, sin6 3466 drivers/infiniband/hw/cxgb4/cm.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) sin6 3469 drivers/infiniband/hw/cxgb4/cm.c if (ipv6_addr_type(&sin6->sin6_addr) != IPV6_ADDR_ANY) { sin6 3471 drivers/infiniband/hw/cxgb4/cm.c (const u32 *)&sin6->sin6_addr.s6_addr, 1); sin6 3477 drivers/infiniband/hw/cxgb4/cm.c ep->stid, &sin6->sin6_addr, sin6 3478 drivers/infiniband/hw/cxgb4/cm.c sin6->sin6_port, sin6 3488 drivers/infiniband/hw/cxgb4/cm.c (const u32 *)&sin6->sin6_addr.s6_addr, 1); sin6 3491 drivers/infiniband/hw/cxgb4/cm.c sin6->sin6_addr.s6_addr, ntohs(sin6->sin6_port)); sin6 3615 drivers/infiniband/hw/cxgb4/cm.c struct sockaddr_in6 *sin6; sin6 3624 drivers/infiniband/hw/cxgb4/cm.c sin6 = (struct sockaddr_in6 *)&ep->com.local_addr; sin6 3626 drivers/infiniband/hw/cxgb4/cm.c (const u32 *)&sin6->sin6_addr.s6_addr, 1); sin6 3783 drivers/infiniband/hw/cxgb4/cm.c struct sockaddr_in6 *sin6 = sin6 3786 drivers/infiniband/hw/cxgb4/cm.c (const u32 *)&sin6->sin6_addr.s6_addr, 1); sin6 2380 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c addr->addr6 = vxlan_addr->sin6.sin6_addr; sin6 2397 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c vxlan_addr->sin6.sin6_addr = addr->addr6; sin6 101 drivers/net/vxlan.c return ipv6_addr_equal(&a->sin6.sin6_addr, &b->sin6.sin6_addr); sin6 109 drivers/net/vxlan.c ip->sin6.sin6_addr = nla_get_in6_addr(nla); sin6 125 drivers/net/vxlan.c return nla_put_in6_addr(skb, attr, &ip->sin6.sin6_addr); sin6 1069 drivers/net/vxlan.c ip->sin6.sin6_addr = in6addr_any; sin6 1298 drivers/net/vxlan.c (ipv6_addr_type(&src_ip->sin6.sin6_addr) & IPV6_ADDR_LINKLOCAL)) sin6 1469 drivers/net/vxlan.c &ip->sin6.sin6_addr); sin6 1503 drivers/net/vxlan.c &ip->sin6.sin6_addr); sin6 1613 drivers/net/vxlan.c saddr.sin6.sin6_addr = ipv6_hdr(skb)->saddr; sin6 2037 drivers/net/vxlan.c .sin6.sin6_addr = msg->target, sin6 2038 drivers/net/vxlan.c .sin6.sin6_family = AF_INET6, sin6 2091 drivers/net/vxlan.c .sin6.sin6_addr = pip6->daddr, sin6 2092 drivers/net/vxlan.c .sin6.sin6_family = AF_INET6, sin6 2347 drivers/net/vxlan.c loopback.sin6.sin6_addr = in6addr_loopback; sin6 2484 drivers/net/vxlan.c remote_ip.sin6.sin6_addr = info->key.u.ipv6.dst; sin6 2485 drivers/net/vxlan.c local_ip.sin6.sin6_addr = info->key.u.ipv6.src; sin6 2567 drivers/net/vxlan.c label, &dst->sin6.sin6_addr, sin6 2568 drivers/net/vxlan.c &local_ip.sin6.sin6_addr, sin6 2598 drivers/net/vxlan.c &local_ip.sin6.sin6_addr, sin6 2599 drivers/net/vxlan.c &dst->sin6.sin6_addr, tos, ttl, sin6 3393 drivers/net/vxlan.c ipv6_addr_type(&conf->saddr.sin6.sin6_addr); sin6 3395 drivers/net/vxlan.c ipv6_addr_type(&conf->remote_ip.sin6.sin6_addr); sin6 3730 drivers/net/vxlan.c conf->remote_ip.sin6.sin6_addr = nla_get_in6_addr(data[IFLA_VXLAN_GROUP6]); sin6 3754 drivers/net/vxlan.c conf->saddr.sin6.sin6_addr = nla_get_in6_addr(data[IFLA_VXLAN_LOCAL6]); sin6 4093 drivers/net/vxlan.c &dst->remote_ip.sin6.sin6_addr)) sin6 4110 drivers/net/vxlan.c &vxlan->cfg.saddr.sin6.sin6_addr)) sin6 3458 drivers/scsi/libiscsi.c struct sockaddr_in6 *sin6 = NULL; sin6 3467 drivers/scsi/libiscsi.c sin6 = (struct sockaddr_in6 *)addr; sin6 3479 drivers/scsi/libiscsi.c len = sprintf(buf, "%pI6\n", &sin6->sin6_addr); sin6 3487 drivers/scsi/libiscsi.c be16_to_cpu(sin6->sin6_port)); sin6 147 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) sin6 153 drivers/target/iscsi/cxgbit/cxgbit_cm.c __func__, cdev->lldi.ports[0]->name, stid, sin6->sin6_port); sin6 156 drivers/target/iscsi/cxgbit/cxgbit_cm.c &sin6->sin6_addr); sin6 159 drivers/target/iscsi/cxgbit/cxgbit_cm.c (const u32 *)&sin6->sin6_addr.s6_addr, 1); sin6 162 drivers/target/iscsi/cxgbit/cxgbit_cm.c sin6->sin6_addr.s6_addr, ret); sin6 171 drivers/target/iscsi/cxgbit/cxgbit_cm.c stid, &sin6->sin6_addr, sin6 172 drivers/target/iscsi/cxgbit/cxgbit_cm.c sin6->sin6_port, sin6 185 drivers/target/iscsi/cxgbit/cxgbit_cm.c (const u32 *)&sin6->sin6_addr.s6_addr, 1); sin6 188 drivers/target/iscsi/cxgbit/cxgbit_cm.c ret, stid, sin6->sin6_addr.s6_addr, sin6 189 drivers/target/iscsi/cxgbit/cxgbit_cm.c ntohs(sin6->sin6_port)); sin6 304 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct sockaddr_in6 *sin6; sin6 306 drivers/target/iscsi/cxgbit/cxgbit_cm.c sin6 = (struct sockaddr_in6 *)sockaddr; sin6 307 drivers/target/iscsi/cxgbit/cxgbit_cm.c ndev = cxgbit_ipv6_netdev(&sin6->sin6_addr); sin6 331 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct sockaddr_in6 *sin6; sin6 333 drivers/target/iscsi/cxgbit/cxgbit_cm.c sin6 = (struct sockaddr_in6 *)sockaddr; sin6 335 drivers/target/iscsi/cxgbit/cxgbit_cm.c &sin6->sin6_addr); sin6 551 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct sockaddr_in6 *sin6; sin6 553 drivers/target/iscsi/cxgbit/cxgbit_cm.c sin6 = (struct sockaddr_in6 *)&cnp->com.local_addr; sin6 555 drivers/target/iscsi/cxgbit/cxgbit_cm.c (const u32 *)&sin6->sin6_addr.s6_addr, sin6 803 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) sin6 807 drivers/target/iscsi/cxgbit/cxgbit_cm.c &sin6->sin6_addr.s6_addr, 1); sin6 1339 drivers/target/iscsi/cxgbit/cxgbit_cm.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) sin6 1342 drivers/target/iscsi/cxgbit/cxgbit_cm.c sin6->sin6_family = PF_INET6; sin6 1343 drivers/target/iscsi/cxgbit/cxgbit_cm.c sin6->sin6_port = local_port; sin6 1344 drivers/target/iscsi/cxgbit/cxgbit_cm.c memcpy(sin6->sin6_addr.s6_addr, local_ip, 16); sin6 1346 drivers/target/iscsi/cxgbit/cxgbit_cm.c (const u32 *)&sin6->sin6_addr.s6_addr, sin6 1349 drivers/target/iscsi/cxgbit/cxgbit_cm.c sin6 = (struct sockaddr_in6 *)&csk->com.remote_addr; sin6 1350 drivers/target/iscsi/cxgbit/cxgbit_cm.c sin6->sin6_family = PF_INET6; sin6 1351 drivers/target/iscsi/cxgbit/cxgbit_cm.c sin6->sin6_port = peer_port; sin6 1352 drivers/target/iscsi/cxgbit/cxgbit_cm.c memcpy(sin6->sin6_addr.s6_addr, peer_ip, 16); sin6 52 fs/afs/addr_list.c srx->transport_len = sizeof(srx->transport.sin6); sin6 53 fs/afs/addr_list.c srx->transport.sin6.sin6_family = AF_INET6; sin6 54 fs/afs/addr_list.c srx->transport.sin6.sin6_port = htons(port); sin6 324 fs/afs/addr_list.c struct sockaddr_in6 *a = &alist->addrs[i].transport.sin6; sin6 344 fs/afs/addr_list.c srx->transport_len = sizeof(srx->transport.sin6); sin6 345 fs/afs/addr_list.c srx->transport.sin6.sin6_family = AF_INET6; sin6 346 fs/afs/addr_list.c srx->transport.sin6.sin6_port = htons(port); sin6 347 fs/afs/addr_list.c memcpy(&srx->transport.sin6.sin6_addr, xdr, 16); sin6 56 fs/afs/rxrpc.c srx.transport_len = sizeof(srx.transport.sin6); sin6 57 fs/afs/rxrpc.c srx.transport.sin6.sin6_family = AF_INET6; sin6 58 fs/afs/rxrpc.c srx.transport.sin6.sin6_port = htons(AFS_CM_PORT); sin6 68 fs/afs/rxrpc.c srx.transport.sin6.sin6_port = 0; sin6 49 fs/afs/server.c const struct sockaddr_in6 *a = &srx->transport.sin6, *b; sin6 53 fs/afs/server.c b = &alist->addrs[i].transport.sin6; sin6 508 fs/dlm/lowcomms.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&saddr; sin6 513 fs/dlm/lowcomms.c con->nodeid, sin6->sin6_addr.s6_addr32[0], sin6 514 fs/dlm/lowcomms.c sin6->sin6_addr.s6_addr32[1], sin6 515 fs/dlm/lowcomms.c sin6->sin6_addr.s6_addr32[2], sin6 516 fs/dlm/lowcomms.c sin6->sin6_addr.s6_addr32[3], sin6 83 fs/lockd/host.c const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; sin6 84 fs/lockd/host.c const struct in6_addr addr = sin6->sin6_addr; sin6 333 fs/lockd/svc.c struct sockaddr_in6 sin6; sin6 341 fs/lockd/svc.c sin6.sin6_family = AF_INET6; sin6 342 fs/lockd/svc.c sin6.sin6_addr = ifa->addr; sin6 343 fs/lockd/svc.c if (ipv6_addr_type(&sin6.sin6_addr) & IPV6_ADDR_LINKLOCAL) sin6 344 fs/lockd/svc.c sin6.sin6_scope_id = ifa->idev->dev->ifindex; sin6 346 fs/lockd/svc.c (struct sockaddr *)&sin6); sin6 2248 fs/nfs/flexfilelayout/flexfilelayout.c const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; sin6 2249 fs/nfs/flexfilelayout/flexfilelayout.c const struct in6_addr *addr = &sin6->sin6_addr; sin6 52 fs/nfs/fscache.c const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) &clp->cl_addr; sin6 70 fs/nfs/fscache.c key.hdr.port = sin6->sin6_port; sin6 71 fs/nfs/fscache.c key.ipv6_addr = sin6->sin6_addr; sin6 582 fs/nfs/super.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; sin6 583 fs/nfs/super.c seq_printf(m, ",mountaddr=%pI6c", &sin6->sin6_addr); sin6 110 fs/nfsd/flexfilelayout.c struct sockaddr_in6 *sin6; sin6 112 fs/nfsd/flexfilelayout.c sin6 = (struct sockaddr_in6 *)&rqstp->rq_daddr; sin6 113 fs/nfsd/flexfilelayout.c port = ntohs(sin6->sin6_port); sin6 466 fs/nfsd/nfssvc.c struct sockaddr_in6 sin6; sin6 474 fs/nfsd/nfssvc.c sin6.sin6_family = AF_INET6; sin6 475 fs/nfsd/nfssvc.c sin6.sin6_addr = ifa->addr; sin6 476 fs/nfsd/nfssvc.c if (ipv6_addr_type(&sin6.sin6_addr) & IPV6_ADDR_LINKLOCAL) sin6 477 fs/nfsd/nfssvc.c sin6.sin6_scope_id = ifa->idev->dev->ifindex; sin6 478 fs/nfsd/nfssvc.c svc_age_temp_xprts_now(nn->nfsd_serv, (struct sockaddr *)&sin6); sin6 322 include/linux/lockd/lockd.h const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; sin6 324 include/linux/lockd/lockd.h if (ntohs(sin6->sin6_port) > 1023) sin6 327 include/linux/lockd/lockd.h if (ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_MAPPED) sin6 328 include/linux/lockd/lockd.h return ipv4_is_loopback(sin6->sin6_addr.s6_addr32[3]); sin6 330 include/linux/lockd/lockd.h return ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LOOPBACK; sin6 163 include/linux/sunrpc/svc_xprt.h const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)sa; sin6 169 include/linux/sunrpc/svc_xprt.h return ntohs(sin6->sin6_port); sin6 200 include/linux/sunrpc/svc_xprt.h const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)addr; sin6 210 include/linux/sunrpc/svc_xprt.h &sin6->sin6_addr, sin6 211 include/linux/sunrpc/svc_xprt.h ntohs(sin6->sin6_port)); sin6 190 include/net/vxlan.h struct sockaddr_in6 sin6; sin6 385 include/net/vxlan.h return ipv6_addr_any(&ipa->sin6.sin6_addr); sin6 393 include/net/vxlan.h return ipv6_addr_is_multicast(&ipa->sin6.sin6_addr); sin6 26 include/uapi/linux/rxrpc.h struct sockaddr_in6 sin6; /* IPv6 transport address */ sin6 903 net/ipv4/ping.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); sin6 905 net/ipv4/ping.c if (sin6) { sin6 906 net/ipv4/ping.c sin6->sin6_family = AF_INET6; sin6 907 net/ipv4/ping.c sin6->sin6_port = 0; sin6 908 net/ipv4/ping.c sin6->sin6_addr = ip6->saddr; sin6 909 net/ipv4/ping.c sin6->sin6_flowinfo = 0; sin6 911 net/ipv4/ping.c sin6->sin6_flowinfo = ip6_flowinfo(ip6); sin6 912 net/ipv4/ping.c sin6->sin6_scope_id = sin6 913 net/ipv4/ping.c ipv6_iface_scope_id(&sin6->sin6_addr, sin6 915 net/ipv4/ping.c *addr_len = sizeof(*sin6); sin6 280 net/ipv6/datagram.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, uaddr); sin6 281 net/ipv6/datagram.c if (sin6->sin6_family != AF_INET6) sin6 701 net/ipv6/datagram.c struct sockaddr_in6 sin6; sin6 711 net/ipv6/datagram.c sin6.sin6_family = AF_INET6; sin6 712 net/ipv6/datagram.c sin6.sin6_addr = ipv6_hdr(skb)->daddr; sin6 713 net/ipv6/datagram.c sin6.sin6_port = ports[1]; sin6 714 net/ipv6/datagram.c sin6.sin6_flowinfo = 0; sin6 715 net/ipv6/datagram.c sin6.sin6_scope_id = sin6 719 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_ORIGDSTADDR, sizeof(sin6), &sin6); sin6 61 net/ipv6/inet6_connection_sock.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) uaddr; sin6 63 net/ipv6/inet6_connection_sock.c sin6->sin6_family = AF_INET6; sin6 64 net/ipv6/inet6_connection_sock.c sin6->sin6_addr = sk->sk_v6_daddr; sin6 65 net/ipv6/inet6_connection_sock.c sin6->sin6_port = inet_sk(sk)->inet_dport; sin6 67 net/ipv6/inet6_connection_sock.c sin6->sin6_flowinfo = 0; sin6 68 net/ipv6/inet6_connection_sock.c sin6->sin6_scope_id = ipv6_iface_scope_id(&sin6->sin6_addr, sin6 466 net/ipv6/raw.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); sin6 505 net/ipv6/raw.c if (sin6) { sin6 506 net/ipv6/raw.c sin6->sin6_family = AF_INET6; sin6 507 net/ipv6/raw.c sin6->sin6_port = 0; sin6 508 net/ipv6/raw.c sin6->sin6_addr = ipv6_hdr(skb)->saddr; sin6 509 net/ipv6/raw.c sin6->sin6_flowinfo = 0; sin6 510 net/ipv6/raw.c sin6->sin6_scope_id = ipv6_iface_scope_id(&sin6->sin6_addr, sin6 512 net/ipv6/raw.c *addr_len = sizeof(*sin6); sin6 770 net/ipv6/raw.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); sin6 815 net/ipv6/raw.c if (sin6) { sin6 819 net/ipv6/raw.c if (sin6->sin6_family && sin6->sin6_family != AF_INET6) sin6 823 net/ipv6/raw.c proto = ntohs(sin6->sin6_port); sin6 833 net/ipv6/raw.c daddr = &sin6->sin6_addr; sin6 835 net/ipv6/raw.c fl6.flowlabel = sin6->sin6_flowinfo&IPV6_FLOWINFO_MASK; sin6 852 net/ipv6/raw.c sin6->sin6_scope_id && sin6 854 net/ipv6/raw.c fl6.flowi6_oif = sin6->sin6_scope_id; sin6 550 net/ipv6/tcp_ipv6.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&cmd.tcpm_addr; sin6 559 net/ipv6/tcp_ipv6.c if (sin6->sin6_family != AF_INET6) sin6 565 net/ipv6/tcp_ipv6.c if (prefixlen > 128 || (ipv6_addr_v4mapped(&sin6->sin6_addr) && sin6 569 net/ipv6/tcp_ipv6.c prefixlen = ipv6_addr_v4mapped(&sin6->sin6_addr) ? 32 : 128; sin6 573 net/ipv6/tcp_ipv6.c if (ipv6_addr_v4mapped(&sin6->sin6_addr)) sin6 574 net/ipv6/tcp_ipv6.c return tcp_md5_do_del(sk, (union tcp_md5_addr *)&sin6->sin6_addr.s6_addr32[3], sin6 576 net/ipv6/tcp_ipv6.c return tcp_md5_do_del(sk, (union tcp_md5_addr *)&sin6->sin6_addr, sin6 583 net/ipv6/tcp_ipv6.c if (ipv6_addr_v4mapped(&sin6->sin6_addr)) sin6 584 net/ipv6/tcp_ipv6.c return tcp_md5_do_add(sk, (union tcp_md5_addr *)&sin6->sin6_addr.s6_addr32[3], sin6 588 net/ipv6/tcp_ipv6.c return tcp_md5_do_add(sk, (union tcp_md5_addr *)&sin6->sin6_addr, sin6 341 net/ipv6/udp.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); sin6 342 net/ipv6/udp.c sin6->sin6_family = AF_INET6; sin6 343 net/ipv6/udp.c sin6->sin6_port = udp_hdr(skb)->source; sin6 344 net/ipv6/udp.c sin6->sin6_flowinfo = 0; sin6 348 net/ipv6/udp.c &sin6->sin6_addr); sin6 349 net/ipv6/udp.c sin6->sin6_scope_id = 0; sin6 351 net/ipv6/udp.c sin6->sin6_addr = ipv6_hdr(skb)->saddr; sin6 352 net/ipv6/udp.c sin6->sin6_scope_id = sin6 353 net/ipv6/udp.c ipv6_iface_scope_id(&sin6->sin6_addr, sin6 356 net/ipv6/udp.c *addr_len = sizeof(*sin6); sin6 360 net/ipv6/udp.c (struct sockaddr *)sin6); sin6 1220 net/ipv6/udp.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); sin6 1242 net/ipv6/udp.c if (sin6) { sin6 1246 net/ipv6/udp.c switch (sin6->sin6_family) { sin6 1250 net/ipv6/udp.c daddr = &sin6->sin6_addr; sin6 1259 net/ipv6/udp.c msg->msg_name = sin6 = NULL; sin6 1277 net/ipv6/udp.c sin.sin_port = sin6 ? sin6->sin6_port : inet->inet_dport; sin6 1318 net/ipv6/udp.c if (sin6) { sin6 1319 net/ipv6/udp.c if (sin6->sin6_port == 0) sin6 1322 net/ipv6/udp.c fl6.fl6_dport = sin6->sin6_port; sin6 1323 net/ipv6/udp.c daddr = &sin6->sin6_addr; sin6 1326 net/ipv6/udp.c fl6.flowlabel = sin6->sin6_flowinfo&IPV6_FLOWINFO_MASK; sin6 1343 net/ipv6/udp.c sin6->sin6_scope_id && sin6 1345 net/ipv6/udp.c fl6.flowi6_oif = sin6->sin6_scope_id; sin6 1405 net/ipv6/udp.c (struct sockaddr *)sin6, &fl6.saddr); sin6 1408 net/ipv6/udp.c if (sin6) { sin6 1409 net/ipv6/udp.c if (ipv6_addr_v4mapped(&sin6->sin6_addr)) { sin6 1416 net/ipv6/udp.c if (sin6->sin6_port == 0) { sin6 1421 net/ipv6/udp.c fl6.fl6_dport = sin6->sin6_port; sin6 1422 net/ipv6/udp.c fl6.daddr = sin6->sin6_addr; sin6 386 net/key/af_key.c const struct sockaddr_in6 *sin6; sin6 404 net/key/af_key.c len = DIV_ROUND_UP(sizeof(*sp) + sizeof(*sin6), sizeof(uint64_t)); sin6 751 net/key/af_key.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; sin6 752 net/key/af_key.c sin6->sin6_family = AF_INET6; sin6 753 net/key/af_key.c sin6->sin6_port = port; sin6 754 net/key/af_key.c sin6->sin6_flowinfo = 0; sin6 755 net/key/af_key.c sin6->sin6_addr = xaddr->in6; sin6 756 net/key/af_key.c sin6->sin6_scope_id = 0; sin6 311 net/netfilter/nf_conntrack_proto.c struct sockaddr_in6 sin6; sin6 330 net/netfilter/nf_conntrack_proto.c if (*len < 0 || (unsigned int)*len < sizeof(sin6)) sin6 343 net/netfilter/nf_conntrack_proto.c sin6.sin6_family = AF_INET6; sin6 344 net/netfilter/nf_conntrack_proto.c sin6.sin6_port = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u.tcp.port; sin6 345 net/netfilter/nf_conntrack_proto.c sin6.sin6_flowinfo = flow_label & IPV6_FLOWINFO_MASK; sin6 346 net/netfilter/nf_conntrack_proto.c memcpy(&sin6.sin6_addr, sin6 348 net/netfilter/nf_conntrack_proto.c sizeof(sin6.sin6_addr)); sin6 351 net/netfilter/nf_conntrack_proto.c sin6.sin6_scope_id = ipv6_iface_scope_id(&sin6.sin6_addr, bound_dev_if); sin6 352 net/netfilter/nf_conntrack_proto.c return copy_to_user(user, &sin6, sizeof(sin6)) ? -EFAULT : 0; sin6 118 net/rds/af_rds.c struct sockaddr_in6 *sin6; sin6 135 net/rds/af_rds.c sin6 = (struct sockaddr_in6 *)uaddr; sin6 136 net/rds/af_rds.c sin6->sin6_family = AF_INET6; sin6 137 net/rds/af_rds.c sin6->sin6_port = rs->rs_conn_port; sin6 138 net/rds/af_rds.c sin6->sin6_addr = rs->rs_conn_addr; sin6 139 net/rds/af_rds.c sin6->sin6_flowinfo = 0; sin6 141 net/rds/af_rds.c sin6->sin6_scope_id = rs->rs_bound_scope_id; sin6 142 net/rds/af_rds.c uaddr_len = sizeof(*sin6); sin6 162 net/rds/af_rds.c sin6 = (struct sockaddr_in6 *)uaddr; sin6 163 net/rds/af_rds.c memset(sin6, 0, sizeof(*sin6)); sin6 164 net/rds/af_rds.c sin6->sin6_family = AF_INET6; sin6 165 net/rds/af_rds.c return sizeof(*sin6); sin6 182 net/rds/af_rds.c sin6 = (struct sockaddr_in6 *)uaddr; sin6 183 net/rds/af_rds.c sin6->sin6_family = AF_INET6; sin6 184 net/rds/af_rds.c sin6->sin6_port = rs->rs_bound_port; sin6 185 net/rds/af_rds.c sin6->sin6_addr = rs->rs_bound_addr; sin6 186 net/rds/af_rds.c sin6->sin6_flowinfo = 0; sin6 187 net/rds/af_rds.c sin6->sin6_scope_id = rs->rs_bound_scope_id; sin6 188 net/rds/af_rds.c uaddr_len = sizeof(*sin6); sin6 296 net/rds/af_rds.c struct sockaddr_in6 sin6; sin6 315 net/rds/af_rds.c ipv6_addr_set_v4mapped(sin.sin_addr.s_addr, &sin6.sin6_addr); sin6 316 net/rds/af_rds.c sin6.sin6_port = sin.sin_port; sin6 318 net/rds/af_rds.c if (copy_from_user(&sin6, optval, sin6 325 net/rds/af_rds.c rds_send_drop_to(rs, &sin6); sin6 573 net/rds/af_rds.c struct sockaddr_in6 *sin6; sin6 576 net/rds/af_rds.c sin6 = (struct sockaddr_in6 *)uaddr; sin6 581 net/rds/af_rds.c addr_type = ipv6_addr_type(&sin6->sin6_addr); sin6 593 net/rds/af_rds.c addr4 = sin6->sin6_addr.s6_addr32[3]; sin6 606 net/rds/af_rds.c if (sin6->sin6_scope_id == 0 || sin6 609 net/rds/af_rds.c sin6->sin6_scope_id != rs->rs_bound_scope_id)) { sin6 617 net/rds/af_rds.c rs->rs_bound_scope_id = sin6->sin6_scope_id; sin6 619 net/rds/af_rds.c rs->rs_conn_addr = sin6->sin6_addr; sin6 620 net/rds/af_rds.c rs->rs_conn_port = sin6->sin6_port; sin6 191 net/rds/bind.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)uaddr; sin6 196 net/rds/bind.c addr_type = ipv6_addr_type(&sin6->sin6_addr); sin6 206 net/rds/bind.c addr4 = sin6->sin6_addr.s6_addr32[3]; sin6 214 net/rds/bind.c if (sin6->sin6_scope_id == 0) sin6 216 net/rds/bind.c scope_id = sin6->sin6_scope_id; sin6 218 net/rds/bind.c binding_addr = &sin6->sin6_addr; sin6 219 net/rds/bind.c port = sin6->sin6_port; sin6 408 net/rds/ib.c struct sockaddr_in6 sin6; sin6 430 net/rds/ib.c memset(&sin6, 0, sizeof(sin6)); sin6 431 net/rds/ib.c sin6.sin6_family = AF_INET6; sin6 432 net/rds/ib.c sin6.sin6_addr = *addr; sin6 433 net/rds/ib.c sin6.sin6_scope_id = scope_id; sin6 434 net/rds/ib.c sa = (struct sockaddr *)&sin6; sin6 948 net/rds/ib_cm.c struct sockaddr_in6 *sin6; sin6 950 net/rds/ib_cm.c sin6 = (struct sockaddr_in6 *)&src; sin6 951 net/rds/ib_cm.c sin6->sin6_family = AF_INET6; sin6 952 net/rds/ib_cm.c sin6->sin6_addr = conn->c_laddr; sin6 953 net/rds/ib_cm.c sin6->sin6_port = 0; sin6 954 net/rds/ib_cm.c sin6->sin6_scope_id = conn->c_dev_if; sin6 956 net/rds/ib_cm.c sin6 = (struct sockaddr_in6 *)&dest; sin6 957 net/rds/ib_cm.c sin6->sin6_family = AF_INET6; sin6 958 net/rds/ib_cm.c sin6->sin6_addr = conn->c_faddr; sin6 959 net/rds/ib_cm.c sin6->sin6_port = htons(RDS_CM_PORT); sin6 960 net/rds/ib_cm.c sin6->sin6_scope_id = conn->c_dev_if; sin6 248 net/rds/rdma_transport.c struct sockaddr_in6 sin6; sin6 262 net/rds/rdma_transport.c sin6.sin6_family = PF_INET6; sin6 263 net/rds/rdma_transport.c sin6.sin6_addr = in6addr_any; sin6 264 net/rds/rdma_transport.c sin6.sin6_port = htons(RDS_CM_PORT); sin6 265 net/rds/rdma_transport.c sin6.sin6_scope_id = 0; sin6 266 net/rds/rdma_transport.c sin6.sin6_flowinfo = 0; sin6 268 net/rds/rdma_transport.c (struct sockaddr *)&sin6, sin6 639 net/rds/recv.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); sin6 733 net/rds/recv.c sin6 = (struct sockaddr_in6 *)msg->msg_name; sin6 735 net/rds/recv.c sin6->sin6_family = AF_INET6; sin6 736 net/rds/recv.c sin6->sin6_port = inc->i_hdr.h_sport; sin6 737 net/rds/recv.c sin6->sin6_addr = inc->i_saddr; sin6 738 net/rds/recv.c sin6->sin6_flowinfo = 0; sin6 739 net/rds/recv.c sin6->sin6_scope_id = rs->rs_bound_scope_id; sin6 740 net/rds/recv.c msg->msg_namelen = sizeof(*sin6); sin6 1105 net/rds/send.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); sin6 1159 net/rds/send.c if (namelen < sizeof(*sin6)) { sin6 1163 net/rds/send.c addr_type = ipv6_addr_type(&sin6->sin6_addr); sin6 1175 net/rds/send.c addr4 = sin6->sin6_addr.s6_addr32[3]; sin6 1184 net/rds/send.c if (sin6->sin6_scope_id == 0) { sin6 1188 net/rds/send.c scope_id = sin6->sin6_scope_id; sin6 1191 net/rds/send.c daddr = sin6->sin6_addr; sin6 1192 net/rds/send.c dport = sin6->sin6_port; sin6 92 net/rds/tcp_connect.c struct sockaddr_in6 sin6; sin6 129 net/rds/tcp_connect.c sin6.sin6_family = AF_INET6; sin6 130 net/rds/tcp_connect.c sin6.sin6_addr = conn->c_laddr; sin6 131 net/rds/tcp_connect.c sin6.sin6_port = 0; sin6 132 net/rds/tcp_connect.c sin6.sin6_flowinfo = 0; sin6 133 net/rds/tcp_connect.c sin6.sin6_scope_id = conn->c_dev_if; sin6 134 net/rds/tcp_connect.c addr = (struct sockaddr *)&sin6; sin6 135 net/rds/tcp_connect.c addrlen = sizeof(sin6); sin6 152 net/rds/tcp_connect.c sin6.sin6_family = AF_INET6; sin6 153 net/rds/tcp_connect.c sin6.sin6_addr = conn->c_faddr; sin6 154 net/rds/tcp_connect.c sin6.sin6_port = htons(RDS_TCP_PORT); sin6 155 net/rds/tcp_connect.c sin6.sin6_flowinfo = 0; sin6 156 net/rds/tcp_connect.c sin6.sin6_scope_id = conn->c_dev_if; sin6 157 net/rds/tcp_connect.c addr = (struct sockaddr *)&sin6; sin6 158 net/rds/tcp_connect.c addrlen = sizeof(sin6); sin6 292 net/rds/tcp_listen.c struct sockaddr_in6 *sin6; sin6 314 net/rds/tcp_listen.c sin6 = (struct sockaddr_in6 *)&ss; sin6 315 net/rds/tcp_listen.c sin6->sin6_family = PF_INET6; sin6 316 net/rds/tcp_listen.c sin6->sin6_addr = in6addr_any; sin6 317 net/rds/tcp_listen.c sin6->sin6_port = (__force u16)htons(RDS_TCP_PORT); sin6 318 net/rds/tcp_listen.c sin6->sin6_scope_id = 0; sin6 319 net/rds/tcp_listen.c sin6->sin6_flowinfo = 0; sin6 320 net/rds/tcp_listen.c addr_len = sizeof(*sin6); sin6 140 net/rxrpc/conn_object.c if (peer->srx.transport.sin6.sin6_port != sin6 141 net/rxrpc/conn_object.c srx.transport.sin6.sin6_port || sin6 142 net/rxrpc/conn_object.c memcmp(&peer->srx.transport.sin6.sin6_addr, sin6 143 net/rxrpc/conn_object.c &srx.transport.sin6.sin6_addr, sin6 60 net/rxrpc/local_object.c return ((u16 __force)local->srx.transport.sin6.sin6_port - sin6 61 net/rxrpc/local_object.c (u16 __force)srx->transport.sin6.sin6_port) ?: sin6 62 net/rxrpc/local_object.c memcmp(&local->srx.transport.sin6.sin6_addr, sin6 63 net/rxrpc/local_object.c &srx->transport.sin6.sin6_addr, sin6 74 net/rxrpc/peer_event.c srx->transport.sin6.sin6_port = serr->port; sin6 75 net/rxrpc/peer_event.c memcpy(&srx->transport.sin6.sin6_addr, sin6 89 net/rxrpc/peer_event.c memcpy(&srx->transport.sin6.sin6_addr, sin6 51 net/rxrpc/peer_object.c size = sizeof(srx->transport.sin6.sin6_addr); sin6 52 net/rxrpc/peer_object.c p = (u16 *)&srx->transport.sin6.sin6_addr; sin6 100 net/rxrpc/peer_object.c return ((u16 __force)peer->srx.transport.sin6.sin6_port - sin6 101 net/rxrpc/peer_object.c (u16 __force)srx->transport.sin6.sin6_port) ?: sin6 102 net/rxrpc/peer_object.c memcmp(&peer->srx.transport.sin6.sin6_addr, sin6 103 net/rxrpc/peer_object.c &srx->transport.sin6.sin6_addr, sin6 185 net/rxrpc/peer_object.c memcpy(&fl6->daddr, &peer->srx.transport.sin6.sin6_addr, sin6 32 net/rxrpc/utils.c srx->transport_len = sizeof(srx->transport.sin6); sin6 33 net/rxrpc/utils.c srx->transport.sin6.sin6_family = AF_INET6; sin6 34 net/rxrpc/utils.c srx->transport.sin6.sin6_port = udp_hdr(skb)->source; sin6 35 net/rxrpc/utils.c srx->transport.sin6.sin6_addr = ipv6_hdr(skb)->saddr; sin6 829 net/sctp/socket.c struct sockaddr_in6 *sin6; sin6 831 net/sctp/socket.c sin6 = (struct sockaddr_in6 *)addrs; sin6 832 net/sctp/socket.c asoc->asconf_addr_del_pending->v6.sin6_addr = sin6->sin6_addr; sin6 31 net/sunrpc/addr.c const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; sin6 32 net/sunrpc/addr.c const struct in6_addr *addr = &sin6->sin6_addr; sin6 69 net/sunrpc/addr.c const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; sin6 78 net/sunrpc/addr.c if (!(ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LINKLOCAL)) sin6 80 net/sunrpc/addr.c if (sin6->sin6_scope_id == 0) sin6 84 net/sunrpc/addr.c IPV6_SCOPE_DELIMITER, sin6->sin6_scope_id); sin6 163 net/sunrpc/addr.c struct sockaddr_in6 *sin6) sin6 174 net/sunrpc/addr.c if (!(ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LINKLOCAL)) sin6 196 net/sunrpc/addr.c sin6->sin6_scope_id = scope_id; sin6 206 net/sunrpc/addr.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; sin6 207 net/sunrpc/addr.c u8 *addr = (u8 *)&sin6->sin6_addr.in6_u; sin6 219 net/sunrpc/addr.c if (!rpc_parse_scope_id(net, buf, buflen, delim, sin6)) sin6 222 net/sunrpc/addr.c sin6->sin6_family = AF_INET6; sin6 556 net/sunrpc/clnt.c struct sockaddr_in6 *sin6 = sin6 571 net/sunrpc/clnt.c &sin6->sin6_addr); sin6 1378 net/sunrpc/clnt.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)buf; sin6 1379 net/sunrpc/clnt.c sin6->sin6_scope_id = 0; sin6 515 net/sunrpc/rpcb_clnt.c const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)sap; sin6 517 net/sunrpc/rpcb_clnt.c unsigned short port = ntohs(sin6->sin6_port); sin6 935 net/sunrpc/svc.c const struct sockaddr_in6 sin6 = { sin6 955 net/sunrpc/svc.c (const struct sockaddr *)&sin6, netid); sin6 194 net/sunrpc/svc_xprt.c struct sockaddr_in6 sin6 = { sin6 210 net/sunrpc/svc_xprt.c sap = (struct sockaddr *)&sin6; sin6 211 net/sunrpc/svc_xprt.c len = sizeof(sin6); sin6 185 net/sunrpc/svcauth_unix.c struct sockaddr_in6 sin6; sin6 209 net/sunrpc/svcauth_unix.c sin6.sin6_family = AF_INET6; sin6 211 net/sunrpc/svcauth_unix.c &sin6.sin6_addr); sin6 215 net/sunrpc/svcauth_unix.c memcpy(&sin6, &address.s6, sizeof(sin6)); sin6 238 net/sunrpc/svcauth_unix.c ipmp = __ip_map_lookup(cd, class, &sin6.sin6_addr); sin6 668 net/sunrpc/svcauth_unix.c struct sockaddr_in6 *sin6, sin6_storage; sin6 679 net/sunrpc/svcauth_unix.c sin6 = &sin6_storage; sin6 680 net/sunrpc/svcauth_unix.c ipv6_addr_set_v4mapped(sin->sin_addr.s_addr, &sin6->sin6_addr); sin6 683 net/sunrpc/svcauth_unix.c sin6 = svc_addr_in6(rqstp); sin6 696 net/sunrpc/svcauth_unix.c &sin6->sin6_addr); sin6 174 net/sunrpc/xprtrdma/transport.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; sin6 177 net/sunrpc/xprtrdma/transport.c snprintf(buf, sizeof(buf), "%pi6", &sin6->sin6_addr); sin6 249 net/sunrpc/xprtsock.c struct sockaddr_in6 *sin6; sin6 272 net/sunrpc/xprtsock.c sin6 = xs_addr_in6(xprt); sin6 273 net/sunrpc/xprtsock.c snprintf(buf, sizeof(buf), "%pi6", &sin6->sin6_addr); sin6 2832 net/sunrpc/xprtsock.c static const struct sockaddr_in6 sin6 = { sin6 2844 net/sunrpc/xprtsock.c memcpy(sap, &sin6, sizeof(sin6)); sin6 30 tools/perf/trace/beauty/sockaddr.c struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; sin6 31 tools/perf/trace/beauty/sockaddr.c u32 flowinfo = ntohl(sin6->sin6_flowinfo); sin6 33 tools/perf/trace/beauty/sockaddr.c size_t printed = scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin6->sin6_port), sin6 34 tools/perf/trace/beauty/sockaddr.c inet_ntop(sin6->sin6_family, &sin6->sin6_addr, tmp, sizeof(tmp))); sin6 37 tools/perf/trace/beauty/sockaddr.c if (sin6->sin6_scope_id != 0) sin6 38 tools/perf/trace/beauty/sockaddr.c printed += scnprintf(bf + printed, size - printed, ", scope_id: %lu", sin6->sin6_scope_id); sin6 233 tools/testing/selftests/net/nettest.c struct sockaddr_in6 sin6 = { sin6 247 tools/testing/selftests/net/nettest.c sin6.sin6_port = htons(args->port); sin6 248 tools/testing/selftests/net/nettest.c sin6.sin6_addr = args->remote_addr.in6; sin6 249 tools/testing/selftests/net/nettest.c addr = &sin6; sin6 250 tools/testing/selftests/net/nettest.c alen = sizeof(sin6); sin6 1345 tools/testing/selftests/net/nettest.c struct sockaddr_in6 sin6 = { sin6 1369 tools/testing/selftests/net/nettest.c sin6.sin6_port = htons(args->port); sin6 1370 tools/testing/selftests/net/nettest.c sin6.sin6_addr = args->remote_addr.in6; sin6 1371 tools/testing/selftests/net/nettest.c sin6.sin6_scope_id = args->scope_id; sin6 1372 tools/testing/selftests/net/nettest.c addr = &sin6; sin6 1373 tools/testing/selftests/net/nettest.c alen = sizeof(sin6);