tcpflow  1.6.1
About: tcpflow is a TCP/IP packet demultiplexer that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis and debugging.
  Fossies Dox: tcpflow-1.6.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

arp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  arp_pkthdr
 

Macros

#define ARPHRD_ETHER   1 /* ethernet hardware format */
 
#define ARPHRD_IEEE802   6 /* token-ring hardware format */
 
#define ARPHRD_ARCNET   7 /* arcnet hardware format */
 
#define ARPHRD_FRELAY   15 /* frame relay hardware format */
 
#define ARPHRD_STRIP   23 /* Ricochet Starmode Radio hardware format */
 
#define ARPHRD_IEEE1394   24 /* IEEE 1394 (FireWire) hardware format */
 
#define ARPOP_REQUEST   1 /* request to resolve address */
 
#define ARPOP_REPLY   2 /* response to previous request */
 
#define ARPOP_REVREQUEST   3 /* request protocol address given hardware */
 
#define ARPOP_REVREPLY   4 /* response giving protocol address */
 
#define ARPOP_INVREQUEST   8 /* request to identify peer */
 
#define ARPOP_INVREPLY   9 /* response identifying peer */
 
#define ar_sha(ap)   (((const u_char *)((ap)+1))+0)
 
#define ar_spa(ap)   (((const u_char *)((ap)+1))+ (ap)->ar_hln)
 
#define ar_tha(ap)   (((const u_char *)((ap)+1))+ (ap)->ar_hln+(ap)->ar_pln)
 
#define ar_tpa(ap)   (((const u_char *)((ap)+1))+2*(ap)->ar_hln+(ap)->ar_pln)
 
#define ARP_HDRLEN   8
 
#define HRD(ap)   EXTRACT_16BITS(&(ap)->ar_hrd)
 
#define HLN(ap)   ((ap)->ar_hln)
 
#define PLN(ap)   ((ap)->ar_pln)
 
#define OP(ap)   EXTRACT_16BITS(&(ap)->ar_op)
 
#define PRO(ap)   EXTRACT_16BITS(&(ap)->ar_pro)
 
#define SHA(ap)   (ar_sha(ap))
 
#define SPA(ap)   (ar_spa(ap))
 
#define THA(ap)   (ar_tha(ap))
 
#define TPA(ap)   (ar_tpa(ap))
 

Macro Definition Documentation

◆ ar_sha

#define ar_sha (   ap)    (((const u_char *)((ap)+1))+0)

Definition at line 60 of file arp.h.

◆ ar_spa

#define ar_spa (   ap)    (((const u_char *)((ap)+1))+ (ap)->ar_hln)

Definition at line 61 of file arp.h.

◆ ar_tha

#define ar_tha (   ap)    (((const u_char *)((ap)+1))+ (ap)->ar_hln+(ap)->ar_pln)

Definition at line 62 of file arp.h.

◆ ar_tpa

#define ar_tpa (   ap)    (((const u_char *)((ap)+1))+2*(ap)->ar_hln+(ap)->ar_pln)

Definition at line 63 of file arp.h.

◆ ARP_HDRLEN

#define ARP_HDRLEN   8

Definition at line 66 of file arp.h.

◆ ARPHRD_ARCNET

#define ARPHRD_ARCNET   7 /* arcnet hardware format */

Definition at line 36 of file arp.h.

◆ ARPHRD_ETHER

#define ARPHRD_ETHER   1 /* ethernet hardware format */

Definition at line 34 of file arp.h.

◆ ARPHRD_FRELAY

#define ARPHRD_FRELAY   15 /* frame relay hardware format */

Definition at line 37 of file arp.h.

◆ ARPHRD_IEEE1394

#define ARPHRD_IEEE1394   24 /* IEEE 1394 (FireWire) hardware format */

Definition at line 39 of file arp.h.

◆ ARPHRD_IEEE802

#define ARPHRD_IEEE802   6 /* token-ring hardware format */

Definition at line 35 of file arp.h.

◆ ARPHRD_STRIP

#define ARPHRD_STRIP   23 /* Ricochet Starmode Radio hardware format */

Definition at line 38 of file arp.h.

◆ ARPOP_INVREPLY

#define ARPOP_INVREPLY   9 /* response identifying peer */

Definition at line 49 of file arp.h.

◆ ARPOP_INVREQUEST

#define ARPOP_INVREQUEST   8 /* request to identify peer */

Definition at line 48 of file arp.h.

◆ ARPOP_REPLY

#define ARPOP_REPLY   2 /* response to previous request */

Definition at line 45 of file arp.h.

◆ ARPOP_REQUEST

#define ARPOP_REQUEST   1 /* request to resolve address */

Definition at line 44 of file arp.h.

◆ ARPOP_REVREPLY

#define ARPOP_REVREPLY   4 /* response giving protocol address */

Definition at line 47 of file arp.h.

◆ ARPOP_REVREQUEST

#define ARPOP_REVREQUEST   3 /* request protocol address given hardware */

Definition at line 46 of file arp.h.

◆ HLN

#define HLN (   ap)    ((ap)->ar_hln)

Definition at line 69 of file arp.h.

◆ HRD

#define HRD (   ap)    EXTRACT_16BITS(&(ap)->ar_hrd)

Definition at line 68 of file arp.h.

◆ OP

#define OP (   ap)    EXTRACT_16BITS(&(ap)->ar_op)

Definition at line 71 of file arp.h.

◆ PLN

#define PLN (   ap)    ((ap)->ar_pln)

Definition at line 70 of file arp.h.

◆ PRO

#define PRO (   ap)    EXTRACT_16BITS(&(ap)->ar_pro)

Definition at line 72 of file arp.h.

◆ SHA

#define SHA (   ap)    (ar_sha(ap))

Definition at line 73 of file arp.h.

◆ SPA

#define SPA (   ap)    (ar_spa(ap))

Definition at line 74 of file arp.h.

◆ THA

#define THA (   ap)    (ar_tha(ap))

Definition at line 75 of file arp.h.

◆ TPA

#define TPA (   ap)    (ar_tpa(ap))

Definition at line 76 of file arp.h.