|
SourceForge Jpcap | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jpcap.net.Packet
net.sourceforge.jpcap.net.EthernetPacket
net.sourceforge.jpcap.net.STP.Packet
public static class STP.Packet
Encapsulates an Ethernet 802.3 Spanning Tree Protocol (STP) packet.
Field Summary |
---|
Fields inherited from class net.sourceforge.jpcap.net.EthernetPacket |
---|
_byteBuffer, _bytes, _ethOffset, _timeval |
Fields inherited from interface net.sourceforge.jpcap.net.EthernetFields |
---|
ETH_CODE_LEN, ETH_CODE_POS, ETH_DST_POS, ETH_HEADER_LEN, ETH_SRC_POS |
Constructor Summary | |
---|---|
STP.Packet(int lLen,
byte[] bytes)
Create a new STP packet. |
|
STP.Packet(int lLen,
byte[] bytes,
Timeval tv)
Create a new STP packet. |
|
STP.Packet(int lLen,
ByteBuffer bb,
Timeval tv)
Create a new STP packet. |
Method Summary | |
---|---|
int |
getSTPBPDUFlags()
|
int |
getSTPBPDUType()
|
byte[] |
getSTPBridgeIdentifier()
|
int |
getSTPForwardDelay()
|
int |
getSTPHelloTime()
|
int |
getSTPMaxAge()
|
int |
getSTPMessageAge()
|
int |
getSTPPortIdentifier()
|
byte[] |
getSTPRootIdentifier()
|
int |
getSTPRootPathCost()
|
int |
getSTPVersion()
|
void |
setSTPBPDUFlags(int flags)
Set the BPDU flags |
void |
setSTPBPDUType(int type)
Set the BPDU type |
void |
setSTPBridgeIdentifier(byte[] bridgeIdent)
Set the Bridge Identifier |
void |
setSTPForwardDelay(int delay)
Set the Forward Delay |
void |
setSTPHelloTime(int time)
Set the HelloTime |
void |
setSTPMaxAge(int maxAge)
Set the maximum age |
void |
setSTPMessageAge(int age)
Set the Message Age |
void |
setSTPPortIdentifier(int id)
Set the Port Identifier |
void |
setSTPRootIdentifier(byte[] rootIdent)
Set the RootIdentifier |
void |
setSTPRootPathCost(int cost)
Set the Root Path Cost |
void |
setSTPVersion(int version)
Set the STP protocol version |
String |
toColoredString(boolean colored)
Generate string with contents describing this packet. |
Methods inherited from class net.sourceforge.jpcap.net.EthernetPacket |
---|
equals, getColor, getData, getDestinationHwAddress, getDestinationMACAddress, getEthernetCRC32, getEthernetData, getEthernetHeader, getEthernetHeaderLength, getEthernetProtocol, getHeader, getHeaderLength, getPacketData, getPacketLength, getProtocol, getSourceHwAddress, getSourceMACAddress, getTimeval, hashCode, setChecksums, setDestinationMACAddress, setEthernetProtocol, setSourceMACAddress, toByteArray, toString |
Methods inherited from class net.sourceforge.jpcap.net.Packet |
---|
getChecksum, ipChecksum, isValidChecksum |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public STP.Packet(int lLen, byte[] bytes)
lLen
- Packet lengthbytes
- Packet bytespublic STP.Packet(int lLen, byte[] bytes, Timeval tv)
lLen
- Packet lengthbytes
- Packet bytestv
- TimeValuepublic STP.Packet(int lLen, ByteBuffer bb, Timeval tv)
lLen
- Packet lengthbb
- Packet bytes in a ByteBuffertv
- TimeValueMethod Detail |
---|
public int getSTPVersion()
public void setSTPVersion(int version)
version
- STP protocol versionpublic int getSTPBPDUType()
public void setSTPBPDUType(int type)
type
- BPDU typepublic int getSTPBPDUFlags()
public void setSTPBPDUFlags(int flags)
flags
- BPDU flagspublic byte[] getSTPRootIdentifier()
public void setSTPRootIdentifier(byte[] rootIdent)
rootIdent
- RootIdentifierpublic int getSTPRootPathCost()
public void setSTPRootPathCost(int cost)
cost
- Root Path Costpublic byte[] getSTPBridgeIdentifier()
public void setSTPBridgeIdentifier(byte[] bridgeIdent)
bridgeIdent
- Bridge Identifierpublic int getSTPPortIdentifier()
public void setSTPPortIdentifier(int id)
id
- Port Identifierpublic int getSTPMessageAge()
public void setSTPMessageAge(int age)
age
- Message Agepublic int getSTPMaxAge()
public void setSTPMaxAge(int maxAge)
maxAge
- Maximum agepublic int getSTPHelloTime()
public void setSTPHelloTime(int time)
time
- Timepublic int getSTPForwardDelay()
public void setSTPForwardDelay(int delay)
delay
- Delaypublic String toColoredString(boolean colored)
EthernetPacket
toColoredString
in class EthernetPacket
colored
- whether or not the string should contain ansi
color escape sequences.
|
Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |