Re: [PATCH] Use BUILD_BUG_ON for tcp_skb_cb size checking

2007-12-11 Thread David Miller
From: Pavel Emelyanov <[EMAIL PROTECTED]> Date: Fri, 07 Dec 2007 20:42:04 +0300 > The sizeof(struct tcp_skb_cb) should not be less than the > sizeof(skb->cb). This is checked in net/ipv4/tcp.c, but > this check can be made more gracefully. > > Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]> A

[PATCH] Use BUILD_BUG_ON for tcp_skb_cb size checking

2007-12-07 Thread Pavel Emelyanov
The sizeof(struct tcp_skb_cb) should not be less than the sizeof(skb->cb). This is checked in net/ipv4/tcp.c, but this check can be made more gracefully. Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]> --- diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 8e65182..c8bebd3 100644 --- a/net/ip