Lines Matching refs:net_admin

89 			    const struct tcp_ulp_ops *ulp_ops, bool net_admin)  in tcp_diag_put_ulp()  argument
103 err = ulp_ops->get_info(sk, skb, net_admin); in tcp_diag_put_ulp()
115 static int tcp_diag_get_aux(struct sock *sk, bool net_admin, in tcp_diag_get_aux() argument
123 if (net_admin) { in tcp_diag_get_aux()
138 err = tcp_diag_put_ulp(skb, sk, ulp_ops, net_admin); in tcp_diag_get_aux()
146 static size_t tcp_diag_get_aux_size(struct sock *sk, bool net_admin) in tcp_diag_get_aux_size() argument
152 if (net_admin && sk_fullsock(sk)) { in tcp_diag_get_aux_size()
177 size += ulp_ops->get_info_size(sk, net_admin); in tcp_diag_get_aux_size()
195 u16 nlmsg_flags, bool net_admin) in tcp_twsk_diag_fill() argument
223 if (net_admin && nla_put_u32(skb, INET_DIAG_MARK, in tcp_twsk_diag_fill()
235 u16 nlmsg_flags, bool net_admin) in tcp_req_diag_fill() argument
263 if (net_admin && nla_put_u32(skb, INET_DIAG_MARK, in tcp_req_diag_fill()
276 u16 nlmsg_flags, bool net_admin) in sk_diag_fill() argument
279 return tcp_twsk_diag_fill(sk, skb, cb, nlmsg_flags, net_admin); in sk_diag_fill()
282 return tcp_req_diag_fill(sk, skb, cb, nlmsg_flags, net_admin); in sk_diag_fill()
285 net_admin); in sk_diag_fill()
317 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in tcp_diag_dump() local
371 net_admin) < 0) { in tcp_diag_dump()
454 net_admin); in tcp_diag_dump()
539 NLM_F_MULTI, net_admin); in tcp_diag_dump()
611 bool net_admin; in tcp_diag_dump_one() local
619 net_admin = netlink_net_capable(in_skb, CAP_NET_ADMIN); in tcp_diag_dump_one()
620 rep = nlmsg_new(tcp_diag_get_aux_size(sk, net_admin), GFP_KERNEL); in tcp_diag_dump_one()
626 err = sk_diag_fill(sk, rep, cb, req, 0, net_admin); in tcp_diag_dump_one()