Commit 7ed96284 authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[NETFILER/ipt_REJECT]: Use LL_RESERVED_SPACE() where applicable.

parent f226e7de
...@@ -117,7 +117,7 @@ static void send_reset(struct sk_buff *oldskb, int hook) ...@@ -117,7 +117,7 @@ static void send_reset(struct sk_buff *oldskb, int hook)
if ((rt = route_reverse(oldskb, hook)) == NULL) if ((rt = route_reverse(oldskb, hook)) == NULL)
return; 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 /* We need a linear, writeable skb. We also need to expand
headroom in case hh_len of incoming interface < hh_len of 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) ...@@ -305,9 +305,9 @@ static void send_unreach(struct sk_buff *skb_in, int code)
if (length > 576) if (length > 576)
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) { if (!nskb) {
ip_rt_put(rt); ip_rt_put(rt);
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment