D: [NETFILTER] Use LL_RESERVED_SPACE() where appricable.
===== net/ipv4/netfilter/ipt_REJECT.c 1.26 vs edited =====
--- 1.26/net/ipv4/netfilter/ipt_REJECT.c Fri Jan 30 10:00:13 2004
+++ edited/net/ipv4/netfilter/ipt_REJECT.c Mon Feb 9 12:47:03 2004
@@ -117,7 +117,7 @@
if ((rt = route_reverse(oldskb, hook)) == NULL)
return;
- hh_len = (rt->u.dst.dev->hard_header_len + 15)&~15;
+ hh_len = LL_RESERVED_SPACE(rt->u.dst.dev);
/* We need a linear, writeable skb. We also need to expand
headroom in case hh_len of incoming interface < hh_len of
@@ -305,9 +305,9 @@
if (length > 576)
length = 576;
- hh_len = (rt->u.dst.dev->hard_header_len + 15)&~15;
+ hh_len = LL_RESERVED_SPACE(rt->u.dst.dev);
- nskb = alloc_skb(hh_len+15+length, GFP_ATOMIC);
+ nskb = alloc_skb(hh_len + length, GFP_ATOMIC);
if (!nskb) {
ip_rt_put(rt);
return;
--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@xxxxxxxxxxxxxx>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
|