[ns] ARP packet header fields
manish chaturvedi
msc.nit at gmail.com
Mon Feb 2 23:24:05 PST 2009
Dear All,
I am not able to understand fields of ARP header structure defined in arp.h
. I am not able to workout, which fields represent, src IP addr, dest IP
addr, src MAC addr, and dest MAC addr. I could not find documantation
explaining these fields.
struct hdr_arp {
u_int16_t arp_hrd;
u_int16_t arp_pro;
u_int8_t arp_hln;
u_int8_t arp_pln;
u_int16_t arp_op;
int arp_sha;
u_int16_t pad1; // so offsets are correct
nsaddr_t arp_spa;
int arp_tha;
u_int16_t pad2; // so offsets are correct
nsaddr_t arp_tpa;
}
Please send me information or point me to correct source.
Thanking You,
Manish.
More information about the Ns-users
mailing list