Arnaldo Carvalho de Melo c9bdd4b525 [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 <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-04-25 22:25:07 -07:00
..
2007-04-25 22:25:07 -07:00
2007-04-25 22:25:07 -07:00
2007-04-25 22:25:03 -07:00
2007-04-25 22:24:11 -07:00
2007-02-10 23:19:39 -08:00
2007-04-25 22:24:11 -07:00
2007-04-25 22:25:03 -07:00
2006-09-28 18:02:23 -07:00
2007-04-25 22:25:03 -07:00
2007-04-25 22:25:03 -07:00
2007-02-10 23:19:39 -08:00
2007-04-25 22:23:49 -07:00
2007-04-25 22:25:07 -07:00
2007-04-25 22:25:07 -07:00
2007-02-10 23:19:39 -08:00
2007-04-25 22:25:07 -07:00
2005-04-16 15:20:36 -07:00
2007-02-10 23:19:39 -08:00
2007-04-25 22:25:03 -07:00
2007-04-25 22:25:03 -07:00
2006-09-22 15:18:04 -07:00
2007-04-25 22:23:47 -07:00
2007-02-12 13:34:03 -08:00
2007-04-25 22:24:13 -07:00
2006-09-28 18:03:07 -07:00
2007-04-25 22:24:13 -07:00
2007-04-25 22:24:13 -07:00
2007-02-10 23:19:39 -08:00
2007-04-25 22:24:13 -07:00
2007-04-25 22:23:48 -07:00
2007-04-25 22:23:33 -07:00
2007-02-10 23:19:39 -08:00