X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=include%2Fnet%2Fdn_route.h;h=60c9f22d86943f0aa19ecdc18d513a24e763b9b1;hb=2b4fa851b2f06fdb04cac808b57324f5e51e1578;hp=c10e8e7e59a7a2b0a5c3aa4adc28f2b79d20036b;hpb=fa34ddd739cecf3999ec0b7562618e8321829d41;p=safe%2Fjmp%2Flinux-2.6 diff --git a/include/net/dn_route.h b/include/net/dn_route.h index c10e8e7..60c9f22 100644 --- a/include/net/dn_route.h +++ b/include/net/dn_route.h @@ -100,8 +100,7 @@ static inline void dn_rt_finish_output(struct sk_buff *skb, char *dst, char *src if ((dev->type != ARPHRD_ETHER) && (dev->type != ARPHRD_LOOPBACK)) dst = NULL; - if (!dev->hard_header || (dev->hard_header(skb, dev, ETH_P_DNA_RT, - dst, src, skb->len) >= 0)) + if (dev_hard_header(skb, dev, ETH_P_DNA_RT, dst, src, skb->len) >= 0) dn_rt_send(skb); else kfree_skb(skb);