Lines Matching full:inet
40 struct inet_sock inet; member
64 const struct inet_sock *inet = inet_sk(sk); in __l2tp_ip_bind_lookup() local
74 if (inet->inet_rcv_saddr && laddr && in __l2tp_ip_bind_lookup()
75 inet->inet_rcv_saddr != laddr) in __l2tp_ip_bind_lookup()
78 if (inet->inet_daddr && raddr && inet->inet_daddr != raddr) in __l2tp_ip_bind_lookup()
272 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_bind() local
300 inet->inet_rcv_saddr = addr->l2tp_addr.s_addr; in l2tp_ip_bind()
301 inet->inet_saddr = addr->l2tp_addr.s_addr; in l2tp_ip_bind()
304 inet->inet_saddr = 0; /* Use device */ in l2tp_ip_bind()
380 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_getname() local
387 if (!inet->inet_dport) in l2tp_ip_getname()
390 lsa->l2tp_addr.s_addr = inet->inet_daddr; in l2tp_ip_getname()
392 __be32 addr = inet->inet_rcv_saddr; in l2tp_ip_getname()
395 addr = inet->inet_saddr; in l2tp_ip_getname()
426 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_sendmsg() local
458 daddr = inet->inet_daddr; in l2tp_ip_sendmsg()
485 fl4 = &inet->cork.fl.u.ip4; in l2tp_ip_sendmsg()
493 inet_opt = rcu_dereference(inet->inet_opt); in l2tp_ip_sendmsg()
504 daddr, inet->inet_saddr, in l2tp_ip_sendmsg()
505 inet->inet_dport, inet->inet_sport, in l2tp_ip_sendmsg()
525 rc = ip_queue_xmit(sk, skb, &inet->cork.fl); in l2tp_ip_sendmsg()
547 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_recvmsg() local
580 if (inet_cmsg_flags(inet)) in l2tp_ip_recvmsg()