|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectRedes.Buffer
Redes.IPv4.ICMP.MensajeICMP
Mensaje ICMP
| Constructor Summary | |
MensajeICMP(Buffer buffer)
Constructor de copia |
|
MensajeICMP(Buffer buffer,
int tipo,
int codigo)
Crea un mensaje ICMP de tipo y codigo dados, pero rellenando el campo de datos con el buffer especificado |
|
MensajeICMP(int tipo,
int codigo,
DatagramaIPv4 datagrama)
Constructor |
|
MensajeICMP(int tipo,
int codigo,
DatagramaIPv4 datagrama,
DireccionIPv4 direccion)
Constructor para mensajes de tipo ICMP Redirect, donde hace falta la direccion del Gateway |
|
| Method Summary | |
int |
CalculaSumaDeComprobacion()
Calcula la suma de comprobacion |
static java.lang.String |
Descripcion(int tipo,
int codigo)
Devuelve la descripcion de un tipo de mensaje ICMP |
int |
getChecksum()
Devuelve la el valor de la suma de comprobacion |
int |
getCode()
Devuelve el valor del campo codigo de la cabecera |
int |
getType()
Recupera el valor del campo 'tipo' |
void |
setChecksum(int suma)
Pone un valor en el campo 'checksum' (suma de comprobacion) |
void |
setCode(int codigo)
Pone un valor en el campo 'codigo' de la cabecera ICMP |
void |
setRedirectGateway(DireccionIPv4 gateway)
Pone la direccion especificada en el campo reservado para el gateway en un mensaje ICMP Redirect |
void |
setType(int tipo)
Pone un valor en el campo 'tipo' de la cabecera ICMP |
| Methods inherited from class Redes.Buffer |
Contenido, getBit, getByte, getByteH, getByteL, Redimensiona, setBit, setByte, setByteH, setByteL, Tam |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MensajeICMP(int tipo,
int codigo,
DatagramaIPv4 datagrama)
tipo - Tipo de mensaje ICMPcodigo - Codigo del mensajedatagrama - Datagrama que provoca el envio del mensaje ICMPpublic MensajeICMP(Buffer buffer)
buffer - Buffer a copiar
public MensajeICMP(Buffer buffer,
int tipo,
int codigo)
tipo - Tipo de mensajecodigo - Codigo del mensajebuffer - Buffer de datos
public MensajeICMP(int tipo,
int codigo,
DatagramaIPv4 datagrama,
DireccionIPv4 direccion)
tipo - Tipo de mensaje ICMPcodigo - Codigo del mensajedatagrama - Datagrama que provoca el envio del mensaje ICMPdireccion - Direccion IP del gateway| Method Detail |
public void setType(int tipo)
tipo - Tipo de mensajepublic int getType()
public void setCode(int codigo)
codigo - Codigo del mensajepublic int getCode()
public void setChecksum(int suma)
suma - Suma de comprobacionpublic int getChecksum()
public int CalculaSumaDeComprobacion()
public static java.lang.String Descripcion(int tipo,
int codigo)
tipo - Tipo de mensajecodigo - Codigo del mensaje
public void setRedirectGateway(DireccionIPv4 gateway)
gateway - Direccion del gateway
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||