Home
last modified time | relevance | path

Searched refs:l2tp_addr (Results 1 – 4 of 4) sorted by relevance

/linux-5.19.10/net/l2tp/
Dl2tp_ip.c270 chk_addr_ret = inet_addr_type(net, addr->l2tp_addr.s_addr); in l2tp_ip_bind()
272 if (addr->l2tp_addr.s_addr && chk_addr_ret != RTN_LOCAL && in l2tp_ip_bind()
276 if (addr->l2tp_addr.s_addr) { in l2tp_ip_bind()
277 inet->inet_rcv_saddr = addr->l2tp_addr.s_addr; in l2tp_ip_bind()
278 inet->inet_saddr = addr->l2tp_addr.s_addr; in l2tp_ip_bind()
284 if (__l2tp_ip_bind_lookup(net, addr->l2tp_addr.s_addr, 0, in l2tp_ip_bind()
315 if (ipv4_is_multicast(lsa->l2tp_addr.s_addr)) in l2tp_ip_connect()
365 lsa->l2tp_addr.s_addr = inet->inet_daddr; in l2tp_ip_getname()
372 lsa->l2tp_addr.s_addr = addr; in l2tp_ip_getname()
427 daddr = lip->l2tp_addr.s_addr; in l2tp_ip_sendmsg()
Dl2tp_ip6.c280 addr_type = ipv6_addr_type(&addr->l2tp_addr); in l2tp_ip6_bind()
327 if (!ipv6_chk_addr(sock_net(sk), &addr->l2tp_addr, dev, 0)) in l2tp_ip6_bind()
333 if (__l2tp_ip6_bind_lookup(net, &addr->l2tp_addr, NULL, bound_dev_if, in l2tp_ip6_bind()
343 sk->sk_v6_rcv_saddr = addr->l2tp_addr; in l2tp_ip6_bind()
344 np->saddr = addr->l2tp_addr; in l2tp_ip6_bind()
438 lsa->l2tp_addr = sk->sk_v6_daddr; in l2tp_ip6_getname()
443 lsa->l2tp_addr = np->saddr; in l2tp_ip6_getname()
445 lsa->l2tp_addr = sk->sk_v6_rcv_saddr; in l2tp_ip6_getname()
449 if (ipv6_addr_type(&lsa->l2tp_addr) & IPV6_ADDR_LINKLOCAL) in l2tp_ip6_getname()
536 daddr = &lsa->l2tp_addr; in l2tp_ip6_sendmsg()
[all …]
Dl2tp_core.c1325 memcpy(&ip6_addr.l2tp_addr, cfg->local_ip6, in l2tp_tunnel_sock_create()
1326 sizeof(ip6_addr.l2tp_addr)); in l2tp_tunnel_sock_create()
1334 memcpy(&ip6_addr.l2tp_addr, cfg->peer_ip6, in l2tp_tunnel_sock_create()
1335 sizeof(ip6_addr.l2tp_addr)); in l2tp_tunnel_sock_create()
1353 ip_addr.l2tp_addr = cfg->local_ip; in l2tp_tunnel_sock_create()
1361 ip_addr.l2tp_addr = cfg->peer_ip; in l2tp_tunnel_sock_create()
/linux-5.19.10/include/uapi/linux/
Dl2tp.h29 struct in_addr l2tp_addr; /* Internet address */ member
51 struct in6_addr l2tp_addr; /* IPv6 address */ member