aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-09-27 01:13:38 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:52:51 -0400
commitb95cce3576813ac3f86bafa6b5daaaaf7574b0fe (patch)
tree54da3f245ee145722623a8e0eaab5fc49ea78511 /net/ipv4
parent0c4e85813d0a94eeb8bf813397a4907bdd7bb610 (diff)
[NET]: Wrap hard_header_parse
Wrap the hard_header_parse function to simplify next step of header_ops conversion. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/ip_queue.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/ip_queue.c b/net/ipv4/netfilter/ip_queue.c
index 82fda92e6b97..aaa3f5c56761 100644
--- a/net/ipv4/netfilter/ip_queue.c
+++ b/net/ipv4/netfilter/ip_queue.c
@@ -250,10 +250,8 @@ ipq_build_packet_message(struct ipq_queue_entry *entry, int *errp)
250 250
251 if (entry->info->indev && entry->skb->dev) { 251 if (entry->info->indev && entry->skb->dev) {
252 pmsg->hw_type = entry->skb->dev->type; 252 pmsg->hw_type = entry->skb->dev->type;
253 if (entry->skb->dev->hard_header_parse) 253 pmsg->hw_addrlen = dev_parse_header(entry->skb,
254 pmsg->hw_addrlen = 254 pmsg->hw_addr);
255 entry->skb->dev->hard_header_parse(entry->skb,
256 pmsg->hw_addr);
257 } 255 }
258 256
259 if (data_len) 257 if (data_len)