LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-19-2006, 08:21 AM   #1
shrishailnk
Member
 
Registered: Mar 2006
Posts: 47

Rep: Reputation: 15
arp cache entry.............


hello friends,

i have some doubts reggarding the that arp cache.

in the ip_finish_output2( ) the if(hh) checks whether we have arp cache entry or not
then there is a memcpy( ) to copy header to skbuff.

my doubt is

hh->data[16] (hard header) does it contain whole mac ie src, dst, type or ............ only dst mac
and one more thing is why 16 bytes r used ,as
header is only of 14 bytes(right)

waiting for ur reply

thank u,
 
Old 04-20-2006, 06:33 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
The header contains the source mac address (6 bytes), destination mac (6 bytes), and a two byte frame type (0x0806 for arp) making 14 bytes. Not sure why yours are 16?!

You are talking about the ethernet header around an arp packet, right?

Last edited by bulliver; 04-20-2006 at 06:37 PM.
 
Old 04-22-2006, 03:44 PM   #3
shrishailnk
Member
 
Registered: Mar 2006
Posts: 47

Original Poster
Rep: Reputation: 15
arp cache.............

thanks for the reply,

I am not worried abt what protocol type...(arp ,ip)
(i am not asking abt the ethernet header...)

I just wanted to make sure whether

hh_data[16]

contains whole mac( ie src mac ,dst mac ,type)....
OR
just destination mac......

the size is 16 because of some memory allignment problems ( i dont know it properly)

Last edited by shrishailnk; 04-22-2006 at 03:46 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange ARP behavior : A linux server responds to all ARP requests Hdvd21 Linux - Networking 4 10-24-2013 06:02 AM
ARP cache refreshing time ivanatora Linux - Networking 0 04-27-2005 07:00 AM
detecting/preventing arp cache poisoning? SocialEngineer Linux - Security 6 08-20-2004 12:52 PM
Disabling ARP probes after receiving an ARP request AltecLansingMan Linux - Networking 1 03-30-2004 02:25 PM
How to create an proxyarp entry in arp table by using arp command? himalayas Linux - Networking 0 06-04-2003 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration