net.sourceforge.jpcap.net
Class ARPEncoding

java.lang.Object
  |
  +--net.sourceforge.jpcap.net.ARPEncoding
All Implemented Interfaces:
ARPFields

public class ARPEncoding
extends java.lang.Object
implements ARPFields

ARP protocol encoding information.

todo: the ARP protocol supports hardware types other than ethernet and protocol types other than IP. this class isn't so generic yet.


Fields inherited from interface net.sourceforge.jpcap.net.ARPFields
ARP_ADDR_SIZE_LEN, ARP_ADDR_TYPE_LEN, ARP_ETH_ADDR_CODE, ARP_HEADER_LEN, ARP_HW_LEN_POS, ARP_HW_TYPE_POS, ARP_IP_ADDR_CODE, ARP_OP_LEN, ARP_OP_POS, ARP_OP_REP_CODE, ARP_OP_REQ_CODE, ARP_PR_LEN_POS, ARP_PR_TYPE_POS, ARP_S_HW_ADDR_POS, ARP_S_PR_ADDR_POS, ARP_T_HW_ADDR_POS, ARP_T_PR_ADDR_POS
 
Constructor Summary
ARPEncoding()
           
 
Method Summary
static byte[] generateRandomHeader()
          Generate a random ARP header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ARPEncoding

public ARPEncoding()
Method Detail

generateRandomHeader

public static byte[] generateRandomHeader()
Generate a random ARP header.