netdev
[Top] [All Lists]

ethernet cache question

To: kernelnewbies@xxxxxxxxxxxx, netdev@xxxxxxxxxxx
Subject: ethernet cache question
From: cranium 2003 <cranium.2003@xxxxxxxxx>
Date: Mon, 31 Jan 2005 16:26:06 +0530
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=rwfntCUG1nSYl6MUVf0Qmtq12+mR8e6nowri5LymKn7U/0wlnie9J4mi6SuxHC5J8n1GINRCzrQYQc05JZbhvqsBAXVmouQyJaew83Z79GanrLGIOauiYkQcbxiAtAwCJZJavKgebLr17OPZ7fL859U83/RIFyCWdiLOX7Lv++4=
Reply-to: cranium 2003 <cranium.2003@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • ethernet cache question, cranium 2003 <=