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.

Reply via email to