Lines Matching refs:lsa

365 	struct sockaddr_l2tpip6 *lsa = (struct sockaddr_l2tpip6 *)uaddr;  in l2tp_ip6_connect()  local
371 if (addr_len < sizeof(*lsa)) in l2tp_ip6_connect()
399 l2tp_ip6_sk(sk)->peer_conn_id = lsa->l2tp_conn_id; in l2tp_ip6_connect()
423 struct sockaddr_l2tpip6 *lsa = (struct sockaddr_l2tpip6 *)uaddr; in l2tp_ip6_getname() local
428 lsa->l2tp_family = AF_INET6; in l2tp_ip6_getname()
429 lsa->l2tp_flowinfo = 0; in l2tp_ip6_getname()
430 lsa->l2tp_scope_id = 0; in l2tp_ip6_getname()
431 lsa->l2tp_unused = 0; in l2tp_ip6_getname()
435 lsa->l2tp_conn_id = lsk->peer_conn_id; in l2tp_ip6_getname()
436 lsa->l2tp_addr = sk->sk_v6_daddr; in l2tp_ip6_getname()
438 lsa->l2tp_flowinfo = np->flow_label; in l2tp_ip6_getname()
441 lsa->l2tp_addr = np->saddr; in l2tp_ip6_getname()
443 lsa->l2tp_addr = sk->sk_v6_rcv_saddr; in l2tp_ip6_getname()
445 lsa->l2tp_conn_id = lsk->conn_id; in l2tp_ip6_getname()
447 if (ipv6_addr_type(&lsa->l2tp_addr) & IPV6_ADDR_LINKLOCAL) in l2tp_ip6_getname()
448 lsa->l2tp_scope_id = READ_ONCE(sk->sk_bound_dev_if); in l2tp_ip6_getname()
449 return sizeof(*lsa); in l2tp_ip6_getname()
494 DECLARE_SOCKADDR(struct sockaddr_l2tpip6 *, lsa, msg->msg_name); in l2tp_ip6_sendmsg()
527 if (lsa) { in l2tp_ip6_sendmsg()
531 if (lsa->l2tp_family && lsa->l2tp_family != AF_INET6) in l2tp_ip6_sendmsg()
534 daddr = &lsa->l2tp_addr; in l2tp_ip6_sendmsg()
536 fl6.flowlabel = lsa->l2tp_flowinfo & IPV6_FLOWINFO_MASK; in l2tp_ip6_sendmsg()
552 lsa->l2tp_scope_id && in l2tp_ip6_sendmsg()
554 fl6.flowi6_oif = lsa->l2tp_scope_id; in l2tp_ip6_sendmsg()
664 DECLARE_SOCKADDR(struct sockaddr_l2tpip6 *, lsa, msg->msg_name); in l2tp_ip6_recvmsg()
692 if (lsa) { in l2tp_ip6_recvmsg()
693 lsa->l2tp_family = AF_INET6; in l2tp_ip6_recvmsg()
694 lsa->l2tp_unused = 0; in l2tp_ip6_recvmsg()
695 lsa->l2tp_addr = ipv6_hdr(skb)->saddr; in l2tp_ip6_recvmsg()
696 lsa->l2tp_flowinfo = 0; in l2tp_ip6_recvmsg()
697 lsa->l2tp_scope_id = 0; in l2tp_ip6_recvmsg()
698 lsa->l2tp_conn_id = 0; in l2tp_ip6_recvmsg()
699 if (ipv6_addr_type(&lsa->l2tp_addr) & IPV6_ADDR_LINKLOCAL) in l2tp_ip6_recvmsg()
700 lsa->l2tp_scope_id = inet6_iif(skb); in l2tp_ip6_recvmsg()
701 *addr_len = sizeof(*lsa); in l2tp_ip6_recvmsg()