LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ethernet cache question (https://www.linuxquestions.org/questions/linux-networking-3/ethernet-cache-question-284389/)

cranium2004 01-31-2005 04:56 AM

ethernet cache question
 
Hello,
By looking at structure hh_cache it is seen that hh_output is structure
variable defined as
unsigned long hh_data[HH_DATA_ALIGN(LL_MAX_HEADER) / sizeof(long)];
Then i want to know how its sufficient in linux kernel to copy cache ethernet
header entry as
memcpy(skb->data - 16, hh->hh_data, 16);
other variable defined in hh_cache is not seen as copied to packet structure.
How then ethernet header is copied to packet if ethernet header has cache
entry stored in hh_cache structure defiend in /usr/src/include/netdevice.h
regards,
cranium


All times are GMT -5. The time now is 03:11 PM.