|
|||||||||
| Home >> All >> [ HeaderF overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
HeaderF
Class UDPHeader

java.lang.ObjectHeaderF.Header
HeaderF.UDPHeader
- public class UDPHeader
- extends Header
| Field Summary | |
private int |
checksum
|
private boolean |
contains_dns
|
private boolean |
contains_sat
|
private int |
destination_port
|
private int |
payldlen
|
private int |
source_port
|
private int |
total_length
|
private int |
totallen
|
| Constructor Summary | |
UDPHeader(java.io.BufferedInputStream src,
Misc.Counter ct)
Creates a new instance of UDPHeader |
|
UDPHeader(int total_length)
creates an empty version of the udp header |
|
| Method Summary | |
boolean |
containsDNS()
|
boolean |
containsSAT()
|
int |
getChecksum()
|
int |
getDestPort()
|
javax.swing.tree.DefaultMutableTreeNode |
getInfoTree()
|
int |
getSourcePort()
|
int |
getTotalLength()
|
void |
setChecksum(int checksum)
|
void |
setDestPort(int destination_port)
|
void |
setSourcePort(int source_port)
|
void |
setTotalLength(int total_length)
|
byte[] |
toByteArray()
writes the udp header to an array of bytes toByteArray() |
java.lang.String |
toString()
toString() |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
source_port
private int source_port
destination_port
private int destination_port
total_length
private int total_length
checksum
private int checksum
payldlen
private int payldlen
totallen
private int totallen
contains_dns
private boolean contains_dns
contains_sat
private boolean contains_sat
| Constructor Detail |
UDPHeader
public UDPHeader(int total_length)
- creates an empty version of the udp header
UDPHeader
public UDPHeader(java.io.BufferedInputStream src, Misc.Counter ct) throws Exceptions.InvalidTcpdumpFileException, java.io.IOException
- Creates a new instance of UDPHeader
| Method Detail |
containsDNS
public boolean containsDNS()
containsSAT
public boolean containsSAT()
getSourcePort
public int getSourcePort()
setSourcePort
public void setSourcePort(int source_port)
getDestPort
public int getDestPort()
setDestPort
public void setDestPort(int destination_port)
getTotalLength
public int getTotalLength()
setTotalLength
public void setTotalLength(int total_length)
getChecksum
public int getChecksum()
setChecksum
public void setChecksum(int checksum)
toByteArray
public byte[] toByteArray()
throws java.io.IOException
- writes the udp header to an
array of bytes
toByteArray()
toString
public java.lang.String toString()
- toString()
getInfoTree
public javax.swing.tree.DefaultMutableTreeNode getInfoTree()
|
|||||||||
| Home >> All >> [ HeaderF overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC