From: Arnaldo Carvalho de Melo Date: Mon, 12 Mar 2007 23:09:15 +0000 (-0300) Subject: [IP]: Introduce ip_hdrlen() X-Git-Tag: v2.6.22-rc1~1128^2~328 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9bdd4b5257406b0608385d19c40b5511decf4f6;p=pandora-kernel.git [IP]: Introduce ip_hdrlen() For the common sequence "skb->nh.iph->ihl * 4", removing a good number of open coded skb->nh.iph uses, now to go after the rest... Just out of curiosity, here are the idioms found to get the same result: skb->nh.iph->ihl << 2 skb->nh.iph->ihl<<2 skb->nh.iph->ihl * 4 skb->nh.iph->ihl*4 (skb->nh.iph)->ihl * sizeof(u32) Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller --- Reading git-diff-tree failed