Lines Matching refs:inet
30 struct inet_sock inet; member
52 const struct inet_sock *inet = inet_sk(sk); in __l2tp_ip_bind_lookup() local
62 if (inet->inet_rcv_saddr && laddr && in __l2tp_ip_bind_lookup()
63 inet->inet_rcv_saddr != laddr) in __l2tp_ip_bind_lookup()
66 if (inet->inet_daddr && raddr && inet->inet_daddr != raddr) in __l2tp_ip_bind_lookup()
250 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_bind() local
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()
281 inet->inet_saddr = 0; /* Use device */ in l2tp_ip_bind()
355 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_getname() local
362 if (!inet->inet_dport) in l2tp_ip_getname()
365 lsa->l2tp_addr.s_addr = inet->inet_daddr; in l2tp_ip_getname()
367 __be32 addr = inet->inet_rcv_saddr; in l2tp_ip_getname()
370 addr = inet->inet_saddr; in l2tp_ip_getname()
401 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_sendmsg() local
433 daddr = inet->inet_daddr; in l2tp_ip_sendmsg()
460 fl4 = &inet->cork.fl.u.ip4; in l2tp_ip_sendmsg()
468 inet_opt = rcu_dereference(inet->inet_opt); in l2tp_ip_sendmsg()
479 daddr, inet->inet_saddr, in l2tp_ip_sendmsg()
480 inet->inet_dport, inet->inet_sport, in l2tp_ip_sendmsg()
500 rc = ip_queue_xmit(sk, skb, &inet->cork.fl); in l2tp_ip_sendmsg()
522 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_recvmsg() local
555 if (inet->cmsg_flags) in l2tp_ip_recvmsg()