Lines Matching refs:inet
31 struct inet_sock inet; member
53 const struct inet_sock *inet = inet_sk(sk); in __l2tp_ip_bind_lookup() local
61 if (inet->inet_rcv_saddr && laddr && in __l2tp_ip_bind_lookup()
62 inet->inet_rcv_saddr != laddr) in __l2tp_ip_bind_lookup()
65 if (inet->inet_daddr && raddr && inet->inet_daddr != raddr) in __l2tp_ip_bind_lookup()
262 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_bind() local
289 inet->inet_rcv_saddr = inet->inet_saddr = addr->l2tp_addr.s_addr; in l2tp_ip_bind()
291 inet->inet_saddr = 0; /* Use device */ in l2tp_ip_bind()
365 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_getname() local
372 if (!inet->inet_dport) in l2tp_ip_getname()
375 lsa->l2tp_addr.s_addr = inet->inet_daddr; in l2tp_ip_getname()
377 __be32 addr = inet->inet_rcv_saddr; in l2tp_ip_getname()
379 addr = inet->inet_saddr; in l2tp_ip_getname()
410 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_sendmsg() local
441 daddr = inet->inet_daddr; in l2tp_ip_sendmsg()
468 fl4 = &inet->cork.fl.u.ip4; in l2tp_ip_sendmsg()
476 inet_opt = rcu_dereference(inet->inet_opt); in l2tp_ip_sendmsg()
487 daddr, inet->inet_saddr, in l2tp_ip_sendmsg()
488 inet->inet_dport, inet->inet_sport, in l2tp_ip_sendmsg()
508 rc = ip_queue_xmit(sk, skb, &inet->cork.fl); in l2tp_ip_sendmsg()
530 struct inet_sock *inet = inet_sk(sk); in l2tp_ip_recvmsg() local
563 if (inet->cmsg_flags) in l2tp_ip_recvmsg()