Home
last modified time | relevance | path

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

/openbmc/linux/net/l2tp/
H A 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()
H A Dl2tp_ip6.c275 addr_type = ipv6_addr_type(&addr->l2tp_addr); in l2tp_ip6_bind()
322 if (!ipv6_chk_addr(sock_net(sk), &addr->l2tp_addr, dev, 0)) in l2tp_ip6_bind()
338 sk->sk_v6_rcv_saddr = addr->l2tp_addr; in l2tp_ip6_bind()
339 np->saddr = addr->l2tp_addr; in l2tp_ip6_bind()
433 lsa->l2tp_addr = sk->sk_v6_daddr; in l2tp_ip6_getname()
438 lsa->l2tp_addr = np->saddr; in l2tp_ip6_getname()
440 lsa->l2tp_addr = sk->sk_v6_rcv_saddr; in l2tp_ip6_getname()
444 if (ipv6_addr_type(&lsa->l2tp_addr) & IPV6_ADDR_LINKLOCAL) in l2tp_ip6_getname()
530 daddr = &lsa->l2tp_addr; in l2tp_ip6_sendmsg()
692 lsa->l2tp_addr = ipv6_hdr(skb)->saddr; in l2tp_ip6_recvmsg()
[all …]
H A Dl2tp_core.c1339 memcpy(&ip6_addr.l2tp_addr, cfg->local_ip6, in l2tp_tunnel_sock_create()
1340 sizeof(ip6_addr.l2tp_addr)); in l2tp_tunnel_sock_create()
1348 memcpy(&ip6_addr.l2tp_addr, cfg->peer_ip6, in l2tp_tunnel_sock_create()
1349 sizeof(ip6_addr.l2tp_addr)); in l2tp_tunnel_sock_create()
1367 ip_addr.l2tp_addr = cfg->local_ip; in l2tp_tunnel_sock_create()
1375 ip_addr.l2tp_addr = cfg->peer_ip; in l2tp_tunnel_sock_create()
/openbmc/linux/include/uapi/linux/
H A Dl2tp.h27 struct in_addr l2tp_addr; /* Internet address */ member
49 struct in6_addr l2tp_addr; /* IPv6 address */ member