ip_finish_output2() what happens in this part of code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Helo,


could someone please explain what is this code (from
ip_output.c::ip_finish_output2) exactly for...


162         struct dst_entry *dst = skb->dst;
163         struct hh_cache *hh = dst->hh;     << what is this for ???

..

169         if (hh) {
170                 read_lock_bh(&hh->hh_lock);
171                 memcpy(skb->data - 16, hh->hh_data, 16);
172                 read_unlock_bh(&hh->hh_lock);
173                 skb_push(skb, hh->hh_len);
174                 return hh->hh_output(skb);
175         } else if (dst->neighbour)
176                 return dst->neighbour->output(skb);

thanks in advance

adam

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux