[Devel] Re: [PATCH 2/3] C/R: Fix storing IPv6 addresses and handle the "ipv6only" socket flag
Serge E. Hallyn
serue at us.ibm.com
Tue Apr 6 16:47:10 PDT 2010
Quoting Dan Smith (danms at us.ibm.com):
> The first item is a result of sockaddr_in6 being larger than the base
> sockaddr structure, thus not being long enough to reserve enough space in
> the checkpoint header.
>
> The second comes into play when things (like sshd) bind to INADDR6_ANY,
> set the "ipv6only" socket flag and then bind an IPv4 socket to the same
> port.
>
> Signed-off-by: Dan Smith <danms at us.ibm.com>
since ipv6 can be a module, this requires:
>From 7132840517ecc258a2d972dae7011a6666e91c56 Mon Sep 17 00:00:00 2001
From: Serge E. Hallyn <serue at us.ibm.com>
Date: Tue, 6 Apr 2010 12:35:54 -0500
Subject: [PATCH 1/1] export needed symbols needed by ipv6
Signed-off-by: Serge E. Hallyn <serue at us.ibm.com>
---
net/ipv4/checkpoint.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/net/ipv4/checkpoint.c b/net/ipv4/checkpoint.c
index 57b185d..7479ffd 100644
--- a/net/ipv4/checkpoint.c
+++ b/net/ipv4/checkpoint.c
@@ -299,6 +299,7 @@ int inet_checkpoint(struct ckpt_ctx *ctx, struct socket *sock)
return ret;
}
+EXPORT_SYMBOL_GPL(inet_checkpoint);
int inet_collect(struct ckpt_ctx *ctx, struct socket *sock)
{
@@ -553,3 +554,4 @@ int inet_restore(struct ckpt_ctx *ctx,
return ret;
}
+EXPORT_SYMBOL_GPL(inet_restore);
--
1.6.0.6
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list