提交 f9e4306f 编写于 作者: E Eric W. Biederman 提交者: David S. Miller

arp: Introduce arp_xmit_finish

The function dev_queue_xmit_skb_sk is unncessary and very confusing.
Introduce arp_xmit_finish to remove the need for dev_queue_xmit_skb_sk,
and have arp_xmit_finish call dev_queue_xmit.
Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 244ba779
...@@ -621,6 +621,11 @@ struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip, ...@@ -621,6 +621,11 @@ struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
} }
EXPORT_SYMBOL(arp_create); EXPORT_SYMBOL(arp_create);
static int arp_xmit_finish(struct sock *sk, struct sk_buff *skb)
{
return dev_queue_xmit(skb);
}
/* /*
* Send an arp packet. * Send an arp packet.
*/ */
...@@ -628,7 +633,7 @@ void arp_xmit(struct sk_buff *skb) ...@@ -628,7 +633,7 @@ void arp_xmit(struct sk_buff *skb)
{ {
/* Send it off, maybe filter it using firewalling first. */ /* Send it off, maybe filter it using firewalling first. */
NF_HOOK(NFPROTO_ARP, NF_ARP_OUT, NULL, skb, NF_HOOK(NFPROTO_ARP, NF_ARP_OUT, NULL, skb,
NULL, skb->dev, dev_queue_xmit_sk); NULL, skb->dev, arp_xmit_finish);
} }
EXPORT_SYMBOL(arp_xmit); EXPORT_SYMBOL(arp_xmit);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册