Hi Antonio
- n = neigh_lookup(&arp_tbl, &ip_dst, primary_if->soft_iface);
- /* check if it is a valid neigh entry */
- if (!n || !(n->nud_state & NUD_CONNECTED))
goto out;
- skb_new = arp_create(ARPOP_REPLY, ETH_P_ARP, ip_src,
primary_if->soft_iface, ip_dst, hw_src, n->ha,
hw_src);
- unicast_send_skb(skb_new, bat_priv);
Can arp_create fail? Should you check the return value before calling unicast_send_skb()?
Andrew