From 7ed9628440e472671f400383448c9a4a38b020e3 Mon Sep 17 00:00:00 2001 From: Hideaki Yoshifuji Date: Sun, 8 Feb 2004 19:12:54 -0800 Subject: [PATCH] [NETFILER/ipt_REJECT]: Use LL_RESERVED_SPACE() where applicable. --- net/ipv4/netfilter/ipt_REJECT.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/ipv4/netfilter/ipt_REJECT.c b/net/ipv4/netfilter/ipt_REJECT.c index 8445b5ed7608d..b07eb821057bd 100644 --- a/net/ipv4/netfilter/ipt_REJECT.c +++ b/net/ipv4/netfilter/ipt_REJECT.c @@ -117,7 +117,7 @@ static void send_reset(struct sk_buff *oldskb, int hook) 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 @@ static void send_unreach(struct sk_buff *skb_in, int code) 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; -- 2.53.0