|
@@ -1280,26 +1280,6 @@ static void neigh_hh_init(struct neighbour *n, struct dst_entry *dst)
|
|
|
write_unlock_bh(&n->lock);
|
|
|
}
|
|
|
|
|
|
-/* This function can be used in contexts, where only old dev_queue_xmit
|
|
|
- * worked, f.e. if you want to override normal output path (eql, shaper),
|
|
|
- * but resolution is not made yet.
|
|
|
- */
|
|
|
-
|
|
|
-int neigh_compat_output(struct neighbour *neigh, struct sk_buff *skb)
|
|
|
-{
|
|
|
- struct net_device *dev = skb->dev;
|
|
|
-
|
|
|
- __skb_pull(skb, skb_network_offset(skb));
|
|
|
-
|
|
|
- if (dev_hard_header(skb, dev, ntohs(skb->protocol), NULL, NULL,
|
|
|
- skb->len) < 0 &&
|
|
|
- dev_rebuild_header(skb))
|
|
|
- return 0;
|
|
|
-
|
|
|
- return dev_queue_xmit(skb);
|
|
|
-}
|
|
|
-EXPORT_SYMBOL(neigh_compat_output);
|
|
|
-
|
|
|
/* Slow and careful. */
|
|
|
|
|
|
int neigh_resolve_output(struct neighbour *neigh, struct sk_buff *skb)
|