RE: [PATCH] NET: Proper handling of IPv6 header in tun driver whenTUN_NO_PI is set

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stephen Hemminger <shemminger@...>, Max Krasnyanskiy <maxk@...>
Cc: Ang Way Chuang <wcang@...>, David Miller <davem@...>, <netdev@...>, <linux-kernel@...>
Date: Friday, June 6, 2008 - 4:55 pm

Max: Now understand your comment about additional copy_from_user --
yeah, we do not want to make extra function calls if we don't need to.

I do concur with Stephen's comments. 

Also, while we are at it, I guess we could also add in the IPX case --
although I'd bet IPX is OBE at this point. 

Steve

-----Original Message-----
From: Stephen Hemminger [mailto:shemminger@vyatta.com] 
Sent: Friday, June 06, 2008 4:49 PM
To: Max Krasnyanskiy
Cc: Ang Way Chuang; David Miller; Zabele, Stephen (US SSA);
netdev@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: Re: [PATCH] NET: Proper handling of IPv6 header in tun driver
whenTUN_NO_PI is set

On Fri, 06 Jun 2008 13:21:06 -0700
Max Krasnyanskiy <maxk@qualcomm.com> wrote:

We 
of 

determine 
diff 
kernel 
and 


Why the magic constants, instead of proper casts and defines.
__constant_htons(ETH_P_IP);

Use htons() instead of __constant_htons() it is easier to read,
and the compiler already does the right thing.

__constant_htons(ETH_P_IPV6);

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RE: [PATCH] NET: Proper handling of IPv6 header in tun drive..., Zabele, Stephen (US SSA), (Fri Jun 6, 4:55 pm)