net: use common macro for assering skb->cb[] available size in protocol families
As part of an effort to move skb->dropcount to skb->cb[] use a common macro in protocol families using skb->cb[] for ancillary data to validate available room in skb->cb[]. Signed-off-by: Eyal Birger <eyal.birger@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
2472d7613b
commit
b4772ef879
@@ -1675,7 +1675,7 @@ static int __init inet_init(void)
|
||||
struct list_head *r;
|
||||
int rc = -EINVAL;
|
||||
|
||||
BUILD_BUG_ON(sizeof(struct inet_skb_parm) > FIELD_SIZEOF(struct sk_buff, cb));
|
||||
sock_skb_cb_check_size(sizeof(struct inet_skb_parm));
|
||||
|
||||
rc = proto_register(&tcp_prot, 1);
|
||||
if (rc)
|
||||
|
Reference in New Issue
Block a user