[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8763apg57w.fsf@caffeine.danplanet.com>
Date: Thu, 08 Oct 2009 10:34:11 -0700
From: Dan Smith <danms@...ibm.com>
To: John Dykstra <john.dykstra1@...il.com>
Cc: containers@...ts.osdl.org, netdev@...r.kernel.org
Subject: Re: [PATCH 2/2] [RFC] Add c/r support for connected INET sockets
JD> Yep. It sort of messes up your separation between layers, though.
In what way? It's just this:
diff --git a/net/checkpoint.c b/net/checkpoint.c
index 3d6da68..f74ebe4 100644
--- a/net/checkpoint.c
+++ b/net/checkpoint.c
@@ -687,7 +687,8 @@ struct sock *do_sock_restore(struct ckpt_ctx *ctx)
/* silently clear flags, e.g. SOCK_NONBLOCK or SOCK_CLOEXEC */
h->sock.type &= SOCK_TYPE_MASK;
- ret = sock_create(h->sock_common.family, h->sock.type, 0, &sock);
+ ret = sock_create(h->sock_common.family, h->sock.type,
+ h->sock.protocol, &sock);
if (ret < 0)
goto err;
Which seems like a why-didn't-I-do-that-in-the-first-place sort of
thing... Am I missing something?
--
Dan Smith
IBM Linux Technology Center
email: danms@...ibm.com
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists