Commit 60d382f9 authored by Pavel Emelyanov's avatar Pavel Emelyanov

inet: Make tcp_connection inline fn

Now it's used for images only.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent bf8b7c4f
......@@ -160,9 +160,6 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk)
return 1;
}
#define tcp_connection(sk) (((sk)->proto == IPPROTO_TCP) && \
((sk)->state == TCP_ESTABLISHED))
static struct inet_sk_desc *gen_uncon_sk(int lfd, const struct fd_parms *p)
{
struct inet_sk_desc *sk;
......@@ -383,6 +380,11 @@ static struct file_desc_ops inet_desc_ops = {
.post_open = post_open_inet_sk,
};
static inline int tcp_connection(InetSkEntry *ie)
{
return (ie->proto == IPPROTO_TCP) && (ie->state == TCP_ESTABLISHED);
}
static int collect_one_inetsk(void *o, ProtobufCMessage *base)
{
struct inet_sk_info *ii = o;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment