|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectRedes.Buffer
Redes.IPv4.ARP.PaqueteARP
Paquete ARP
| Field Summary | |
static int |
kOP_PETICION_ARP
Operacion: PETICION ARP |
static int |
kOP_RESPUESTA_ARP
Operacion: RESPUESTA ARP |
| Fields inherited from class Redes.Buffer |
|
| Constructor Summary | |
PaqueteARP()
Constructor, crea un paquete de tipo ARP |
|
PaqueteARP(Buffer buffer)
Constructor, crea un paquete copiando bit a bit el contenido de otro |
|
| Method Summary | |
int |
getHWAddressLength()
Obtiene la longitud, en bytes, de las direcciones fisicas |
Direccion |
getHWAddressSender()
Devuelve la direccion fisica del emisor |
int |
getHWAddressSpace()
Obtiene el tipo de las direcciones fisicas |
Direccion |
getHWAddressTarget()
Devuelve la direccion fisica del objetivo |
int |
getOperationCode()
Devuelve el tipo de operacion |
int |
getProtocolAddressLength()
Obtiene la longitud de las direcciones de red |
Direccion |
getProtocolAddressSender()
Devuelve la direccion de protocolo del emisor |
int |
getProtocolAddressSpace()
Obtiene el tipo de las direcciones de red |
Direccion |
getProtocolAddressTarget()
Devuelve la direccion del protocolo del objetivo |
void |
setHWAddressLength(int longitud)
Pone un valor en el campo 'hardware address length' |
void |
setHWAddressSender(Direccion direccion)
Pone la direccion fisica del emisor en el paquete |
void |
setHWAddressSpace(int tipo)
Pone un valor en el campo 'hardware address space' |
void |
setHWAddressTarget(Direccion direccion)
Pone la direccion fisica del objetivo en el paquete |
void |
setOperationCode(int operacion)
Especifica que operacion realizara el paquete ARP |
void |
setProtocolAddressLength(int longitud)
Pone un valor en el campo 'protocol address lenght' |
void |
setProtocolAddressSender(Direccion direccion)
Pone la direccion de red del emisor en el paquete |
void |
setProtocolAddressSpace(int tipo)
Pone un valor en el campo 'protocol address space' |
void |
setProtocolAddressTarget(Direccion direccion)
Pone la direccion de red del objetivo en el paquete |
| Methods inherited from class Redes.Buffer |
Contenido, getBit, getByte, getByteH, getByteL, imprimible, Redimensiona, setBit, setByte, setByteH, setByteL, Tam |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int kOP_PETICION_ARP
public static final int kOP_RESPUESTA_ARP
| Constructor Detail |
public PaqueteARP()
public PaqueteARP(Buffer buffer)
buffer - Paquete que se quiere copiar| Method Detail |
public void setHWAddressSpace(int tipo)
tipo - Tipo de las direcciones fisicaspublic int getHWAddressSpace()
public void setProtocolAddressSpace(int tipo)
tipo - Tipo direcciones de redpublic int getProtocolAddressSpace()
public void setHWAddressLength(int longitud)
longitud - Longitud de las direccion fisicas, en bytespublic int getHWAddressLength()
public void setProtocolAddressLength(int longitud)
longitud - Longitud en bytes de las direcciones de redpublic int getProtocolAddressLength()
public void setOperationCode(int operacion)
operacion - tipo de operacion, 1 para solocitud, 2 para respuestapublic int getOperationCode()
public void setHWAddressSender(Direccion direccion)
direccion - Direccion fisica del emisorpublic Direccion getHWAddressSender()
public void setProtocolAddressSender(Direccion direccion)
direccion - Direccion de red del emisorpublic Direccion getProtocolAddressSender()
public void setHWAddressTarget(Direccion direccion)
direccion - Direccion fisica del objetivopublic Direccion getHWAddressTarget()
public void setProtocolAddressTarget(Direccion direccion)
direccion - Direccion de red del objetivopublic Direccion getProtocolAddressTarget()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||