Re: [PATCH 1/1] vxlan: insert ipv6 macro

2016-10-12 Thread zhuyj
Soon I will analyze the previous patch. I will let you know. Thanks a lot. On Thu, Oct 13, 2016 at 1:28 PM, zhuyj wrote: > Hi, Jiri > > The dumped source code is in the attachment. Please check it. I think > this file can explain all. > > If anything, please just let me know. > Thanks a lot.

Re: [PATCH 1/1] vxlan: insert ipv6 macro

2016-10-12 Thread Jiri Benc
On Wed, 12 Oct 2016 21:01:54 +0800, zhuyj wrote: > How to explain the following source code? As you mentioned, are the > #ifdefs in the following source pointless? They are not, the code would not compile without them. Look how struct vxlan_dev is defined. Those are really basic questions you ha

Re: [PATCH 1/1] vxlan: insert ipv6 macro

2016-10-12 Thread zhuyj
Hi, Jiri How to explain the following source code? As you mentioned, are the #ifdefs in the following source pointless? As to the previous patch, I will compile and analyze it. But now I am busy with something else. After I draw a conclusion, I will let you know. Thanks for your reply. static

Re: [PATCH 1/1] vxlan: insert ipv6 macro

2016-10-11 Thread Jiri Benc
On Tue, 11 Oct 2016 16:23:31 +0800, zyjzyj2...@gmail.com wrote: > --- a/drivers/net/vxlan.c > +++ b/drivers/net/vxlan.c > @@ -2647,15 +2647,15 @@ static struct socket *vxlan_create_sock(struct net > *net, bool ipv6, > int err; > > memset(&udp_conf, 0, sizeof(udp_conf)); > - > +#if IS

[PATCH 1/1] vxlan: insert ipv6 macro

2016-10-11 Thread zyjzyj2000
From: Zhu Yanjun The source code is related with ipv6. As such, it is better to insert ipv6 macro. Signed-off-by: Zhu Yanjun --- drivers/net/vxlan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index e7d1668..9af6600 100644