SourceForge Jpcap

net.sourceforge.jpcap.net
Interface ARPFields

All Known Implementing Classes:
ARPPacket

public interface ARPFields

IP protocol field encoding information.

Note: IPv6 doesn't use ARP at all, it uses Neighbour Discovery protocol (IPv6 ND), so everything here can be hardwired assuming Ethernet MAC addresses of length 6 bytes and IPv4 protocol addresses of length 4 bytes.

Version:
$Revision: 1.1 $
Author:
Patrick Charles and Jonas Lehmann, Esmond Pitt
Last modified by:
$Author: esmondpitt $
Last modified at:
$Date: 2008/08/21 02:58:16 $

Field Summary
static int ARP_ADDR_SIZE_LEN
          Address type length in bytes.
static int ARP_ADDR_TYPE_LEN
          Address type length in bytes.
static int ARP_ETH_ADDR_CODE
          Type code for ethernet addresses.
static int ARP_HEADER_LEN
           
static int ARP_HW_LEN_POS
          Position of the hardware address length.
static int ARP_HW_TYPE_POS
          Position of the hardware address type.
static int ARP_IP_ADDR_CODE
          Type code for IPv4 addresses.
static int ARP_OP_LEN
          Operation type length in bytes.
static int ARP_OP_POS
          Position of the operation type.
static int ARP_OP_REP_CODE
          Code for ARP reply.
static int ARP_OP_REQ_CODE
          Code for ARP request.
static int ARP_PR_LEN_POS
          Position of the protocol address length.
static int ARP_PR_TYPE_POS
          Position of the protocol address type.
static int ARP_S_HW_ADDR_POS
          Position of the sender hardware address.
static int ARP_S_PR_ADDR_POS
          Offset of the sender protocol address.
static int ARP_T_HW_ADDR_POS
          Offset of the target hardware address.
static int ARP_T_PR_ADDR_POS
          Offset of the target protocol address.
static int RARP_OP_REP_CODE
          Code for RARP replies.
static int RARP_OP_REQ_CODE
          Code for RARP request.
 

Field Detail

ARP_ETH_ADDR_CODE

static final int ARP_ETH_ADDR_CODE
Type code for ethernet addresses.

See Also:
Constant Field Values

ARP_IP_ADDR_CODE

static final int ARP_IP_ADDR_CODE
Type code for IPv4 addresses.

See Also:
Constant Field Values

ARP_OP_REQ_CODE

static final int ARP_OP_REQ_CODE
Code for ARP request.

See Also:
Constant Field Values

ARP_OP_REP_CODE

static final int ARP_OP_REP_CODE
Code for ARP reply.

Since:
2.0.0
See Also:
Constant Field Values

RARP_OP_REQ_CODE

static final int RARP_OP_REQ_CODE
Code for RARP request.

Since:
2.0.0
See Also:
Constant Field Values

RARP_OP_REP_CODE

static final int RARP_OP_REP_CODE
Code for RARP replies.

Since:
2.0.0
See Also:
Constant Field Values

ARP_OP_LEN

static final int ARP_OP_LEN
Operation type length in bytes.

See Also:
Constant Field Values

ARP_ADDR_TYPE_LEN

static final int ARP_ADDR_TYPE_LEN
Address type length in bytes.

See Also:
Constant Field Values

ARP_ADDR_SIZE_LEN

static final int ARP_ADDR_SIZE_LEN
Address type length in bytes.

See Also:
Constant Field Values

ARP_HW_TYPE_POS

static final int ARP_HW_TYPE_POS
Position of the hardware address type.

See Also:
Constant Field Values

ARP_PR_TYPE_POS

static final int ARP_PR_TYPE_POS
Position of the protocol address type.

See Also:
Constant Field Values

ARP_HW_LEN_POS

static final int ARP_HW_LEN_POS
Position of the hardware address length.

See Also:
Constant Field Values

ARP_PR_LEN_POS

static final int ARP_PR_LEN_POS
Position of the protocol address length.

See Also:
Constant Field Values

ARP_OP_POS

static final int ARP_OP_POS
Position of the operation type.

See Also:
Constant Field Values

ARP_S_HW_ADDR_POS

static final int ARP_S_HW_ADDR_POS
Position of the sender hardware address.

See Also:
Constant Field Values

ARP_S_PR_ADDR_POS

static final int ARP_S_PR_ADDR_POS
Offset of the sender protocol address.

See Also:
Constant Field Values

ARP_T_HW_ADDR_POS

static final int ARP_T_HW_ADDR_POS
Offset of the target hardware address.

See Also:
Constant Field Values

ARP_T_PR_ADDR_POS

static final int ARP_T_PR_ADDR_POS
Offset of the target protocol address.

See Also:
Constant Field Values

ARP_HEADER_LEN

static final int ARP_HEADER_LEN
See Also:
Constant Field Values

Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008.