Hi: I have a workable static ipv6 support patch, please review. Since it is the original patch review, I did not spend time splitting it. If it is no problem for merging into upstream, I will spit them into small patches.
My strategy is to change the originally code as little as possible to implement
the ipv6 support.
So I use below method to add ipv6 into ipconfig, although is not beautiful, I
think it is simple enough, and will not affect the original ipv4 code.
This is the key point of the patch
struct connman_ipconfig {
gint refcount;
int index;
enum connman_ipconfig_type type;
struct connman_ipconfig *origin;
@@ -47,6 +70,8 @@ struct connman_ipconfig {
enum connman_ipconfig_method method;
struct connman_ipaddress *address;
struct connman_ipaddress *system;
+
+ struct connman_ipconfig *ipv6;
}
I also designed another type of ipconfig structure to include ipv6 support, but
that will affect the ipv4 codes, so I did not use it and just comment it out.
You can also have a look at it.
0001-initial-commit-of-static-ipv6-support.patch
Description: 0001-initial-commit-of-static-ipv6-support.patch
_______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
