Lines Matching refs:lsa

389 	struct sockaddr_l2tpip6 *lsa = (struct sockaddr_l2tpip6 *)uaddr;  in l2tp_ip6_connect()  local
396 if (addr_len < sizeof(*lsa)) in l2tp_ip6_connect()
424 l2tp_ip6_sk(sk)->peer_conn_id = lsa->l2tp_conn_id; in l2tp_ip6_connect()
449 struct sockaddr_l2tpip6 *lsa = (struct sockaddr_l2tpip6 *)uaddr; in l2tp_ip6_getname() local
454 lsa->l2tp_family = AF_INET6; in l2tp_ip6_getname()
455 lsa->l2tp_flowinfo = 0; in l2tp_ip6_getname()
456 lsa->l2tp_scope_id = 0; in l2tp_ip6_getname()
457 lsa->l2tp_unused = 0; in l2tp_ip6_getname()
461 lsa->l2tp_conn_id = lsk->peer_conn_id; in l2tp_ip6_getname()
462 lsa->l2tp_addr = sk->sk_v6_daddr; in l2tp_ip6_getname()
464 lsa->l2tp_flowinfo = np->flow_label; in l2tp_ip6_getname()
467 lsa->l2tp_addr = np->saddr; in l2tp_ip6_getname()
469 lsa->l2tp_addr = sk->sk_v6_rcv_saddr; in l2tp_ip6_getname()
471 lsa->l2tp_conn_id = lsk->conn_id; in l2tp_ip6_getname()
473 if (ipv6_addr_type(&lsa->l2tp_addr) & IPV6_ADDR_LINKLOCAL) in l2tp_ip6_getname()
474 lsa->l2tp_scope_id = READ_ONCE(sk->sk_bound_dev_if); in l2tp_ip6_getname()
475 return sizeof(*lsa); in l2tp_ip6_getname()
520 DECLARE_SOCKADDR(struct sockaddr_l2tpip6 *, lsa, msg->msg_name); in l2tp_ip6_sendmsg()
552 if (lsa) { in l2tp_ip6_sendmsg()
556 if (lsa->l2tp_family && lsa->l2tp_family != AF_INET6) in l2tp_ip6_sendmsg()
559 daddr = &lsa->l2tp_addr; in l2tp_ip6_sendmsg()
561 fl6.flowlabel = lsa->l2tp_flowinfo & IPV6_FLOWINFO_MASK; in l2tp_ip6_sendmsg()
577 lsa->l2tp_scope_id && in l2tp_ip6_sendmsg()
579 fl6.flowi6_oif = lsa->l2tp_scope_id; in l2tp_ip6_sendmsg()
690 DECLARE_SOCKADDR(struct sockaddr_l2tpip6 *, lsa, msg->msg_name); in l2tp_ip6_recvmsg()
718 if (lsa) { in l2tp_ip6_recvmsg()
719 lsa->l2tp_family = AF_INET6; in l2tp_ip6_recvmsg()
720 lsa->l2tp_unused = 0; in l2tp_ip6_recvmsg()
721 lsa->l2tp_addr = ipv6_hdr(skb)->saddr; in l2tp_ip6_recvmsg()
722 lsa->l2tp_flowinfo = 0; in l2tp_ip6_recvmsg()
723 lsa->l2tp_scope_id = 0; in l2tp_ip6_recvmsg()
724 lsa->l2tp_conn_id = 0; in l2tp_ip6_recvmsg()
725 if (ipv6_addr_type(&lsa->l2tp_addr) & IPV6_ADDR_LINKLOCAL) in l2tp_ip6_recvmsg()
726 lsa->l2tp_scope_id = inet6_iif(skb); in l2tp_ip6_recvmsg()
727 *addr_len = sizeof(*lsa); in l2tp_ip6_recvmsg()