public class DCEPacket extends TransPacket
Modifier and Type | Field and Description |
---|---|
static int |
ALLOCATIONHINT |
static int |
AUTHLEN |
static int |
CALLID |
static int |
DCEDATA |
static int |
FLG_BROADCAST |
static int |
FLG_CANCEL |
static int |
FLG_FIRSTFRAG |
static int |
FLG_IDEMPOTENT |
static int |
FLG_LASTFRAG |
static int |
FLG_ONLYFRAG |
static int |
FRAGMENTLEN |
static int |
HDRLEN_REQUEST |
static int |
HDRLEN_STANDARD |
static int |
HEADERFLAGS |
static int |
OPERATIONDATA |
static int |
OPERATIONID |
static int |
PACKEDDATAREP |
static int |
PDUTYPE |
static int |
PRESENTIDENT |
static int |
VERSIONMAJOR |
static int |
VERSIONMINOR |
m_paramCnt, m_transName, RxStandardParams, SetupOffset, StandardParams
ANDXCOMMAND, ANDXRESERVED, COMMAND, DEFAULT_BUFSIZE, ERROR, ERRORCLASS, ERRORCODE, FLAGS, FLAGS2, FLG_CANONICAL, FLG_CASELESS, FLG_NOTIFY, FLG_OPLOCK, FLG_RESPONSE, FLG_SUBDIALECT, FLG2_EXTENDEDATTRIB, FLG2_EXTENDEDSETUP, FLG2_LONGERRORCODE, FLG2_LONGFILENAMES, FLG2_READIFEXE, FLG2_SECURITYSIG, FLG2_UNICODE, m_endpos, m_lastTxTime, m_pos, MID, MIN_RXLEN, PARAMWORDS, PID, PIDHIGH, RAW_READ, RAW_WRITE, SEC_ENCRYPT, SEC_USER, SEQNO, SID, SIGNATURE, SMBHEADER, TID, TRANS_HEADERLEN, UID, WORDCNT
Constructor and Description |
---|
DCEPacket(byte[] buf)
Construct a DCE/RPC transaction packet
|
DCEPacket(int siz)
Construct a DCE/RPC transaction packet
|
DCEPacket(int siz,
SMBPacket pkt)
Construct a DCE/RPC transaction packet of the specified size, and initialize from the
supplied SMB packet.
|
Modifier and Type | Method and Description |
---|---|
void |
DumpHeader()
Dump the DCE/RPC header details
|
int |
getAllocationHint()
Get the request allocation hint
|
int |
getAuthenticationLength()
Return the authentication length
|
int |
getCallId()
Return the call id
|
int |
getDCEBaseOffset()
Return the DCE data offset
|
int |
getDCEDataOffset()
Get the offset to the DCE/RPC data within the SMB packet
|
int |
getDCEOffset()
Return the DCE/RPC fragment offset
|
int |
getFragmentLength()
Return the fragment length
|
int |
getHeaderFlags()
Return the header flags
|
int |
getMajorVersion()
Return the major version number
|
int |
getMinorVersion()
Return the minor version number
|
int |
getOperationId()
Get the request operation id
|
int |
getPackedDataRepresentation()
Return the packed data representation
|
int |
getParameterOffset()
Return the parameter block offset
|
int |
getPDUType()
Return the PDU packet type
|
int |
getPresentationIdentifier()
Get the request presentation identifier
|
void |
initializeDCEBind(int pipeHandle,
int maxTx,
int maxRx,
int pipeId,
int callId)
Initialize a DCE Bind request
|
void |
initializeDCEReply(byte typ,
int flags,
int callId)
Initialize the DCE/RPC reply.
|
void |
initializeDCERequest(int pipeHandle,
int opCode,
DCEBuffer buf,
int maxTx,
int callId)
Initialize a DCE request packet
|
protected void |
initializeDCETransaction(int handle,
byte typ,
int flags,
int callId)
Initialize the DCE/RPC transaction header.
|
void |
initializeDCEWrite(int handle,
int flags,
int callId,
int fragLen)
Initialize the DCE/RPC write header, used for multi fragment DCE/RPC requests.
|
boolean |
isFirstFragment()
Determine if this is the first fragment
|
boolean |
isLastFragment()
Determine if this is the last fragment
|
boolean |
isOnlyFragment()
Determine if this is the only fragment in the request
|
void |
resetDCEOffset()
Reset the DCE offset
|
void |
setAllocationHint(int alloc)
Set the allocation hint
|
void |
setFragmentLength(int len)
Set the fragment length
|
void |
setHeaderFlags(int flags)
Set the header flags
|
void |
setOperationId(int opCode)
Set the request operation id
|
void |
setPresentationIdentifier(int ident)
Set the presentation identifier
|
doTransaction, getDataBlockCount, getDataBlockOffset, getDataLength, getDataOffset, getParameterBlock, getParameterBlockCount, getParameterBlockOffset, getTotalDataCount, getTotalParameterCount, setDataBlockCount, setDataBlockOffset, setMaximumDataReturn, setMaximumParameterReturn, setParameterBlockCount, setParameterBlockOffset, setSetupCount, setSetupParameter, setTotalDataCount, setTotalParameterCount, setTransactionName
alignBytePointer, checkForError, clearBytes, DumpPacket, equalsError, ExchangeLowLevelSMB, ExchangeSMB, ExchangeSMB, getAndXCommand, getAvailableLength, getBuffer, getBufferLength, getByteCount, getByteOffset, getCommand, getErrorClass, getErrorCode, getFlags, getFlags2, getFlags2AsString, getFlagsAsString, getLastPacketSendTime, getLength, getLongErrorCode, getMultiplexId, getParameter, getParameterCount, getParameterLong, getPosition, getProcessId, getSignature, getTreeId, getUserId, hasExtendedSetup, hasLongErrorCode, hasMoreData, hasSecuritySignature, isCaseless, isLongErrorCode, isLongFileNames, isRequest, isResponse, isType, isUnicode, isValidResponse, packByte, packByte, packBytes, packInt, packLong, packString, packWord, ReceiveAsynchSMB, ReceiveSMB, ReceiveSMB, resetBytePointer, resetBytePointerAlign, resetParameterPointer, SendSMB, setAndXCommand, setByteCount, setByteCount, setBytePointer, setBytes, setCommand, setErrorClass, setErrorCode, setFlags, setFlags2, setLongErrorCode, setMultiplexId, setParameter, setParameterCount, setParameterLong, setPosition, setProcessId, setSeqNo, setSID, setSignature, setSignature, setSignature, setTreeId, setUserId, skipBytes, unpackByte, unpackBytes, unpackInt, unpackLong, unpackString, unpackString, unpackWord
public static final int VERSIONMAJOR
public static final int VERSIONMINOR
public static final int PDUTYPE
public static final int HEADERFLAGS
public static final int PACKEDDATAREP
public static final int FRAGMENTLEN
public static final int AUTHLEN
public static final int CALLID
public static final int DCEDATA
public static final int ALLOCATIONHINT
public static final int PRESENTIDENT
public static final int OPERATIONID
public static final int OPERATIONDATA
public static final int FLG_FIRSTFRAG
public static final int FLG_LASTFRAG
public static final int FLG_CANCEL
public static final int FLG_IDEMPOTENT
public static final int FLG_BROADCAST
public static final int FLG_ONLYFRAG
public static final int HDRLEN_STANDARD
public static final int HDRLEN_REQUEST
public DCEPacket(byte[] buf)
buf
- Buffer that contains the SMB transaction packet.public DCEPacket(int siz)
siz
- Size of packet to allocate.public DCEPacket(int siz, SMBPacket pkt)
siz
- intpkt
- SMBPacketpublic final int getParameterOffset()
public final int getMajorVersion()
public final int getMinorVersion()
public final int getPDUType()
public final int getHeaderFlags()
public final void setHeaderFlags(int flags)
flags
- intpublic final int getPackedDataRepresentation()
public final int getFragmentLength()
public final void setFragmentLength(int len)
len
- intpublic final int getAuthenticationLength()
public final int getCallId()
public final boolean isFirstFragment()
public final boolean isLastFragment()
public final boolean isOnlyFragment()
public final int getDCEOffset()
public final int getDCEBaseOffset()
public final int getDCEDataOffset()
public final void resetDCEOffset()
public final int getAllocationHint()
public final void setAllocationHint(int alloc)
alloc
- intpublic final int getPresentationIdentifier()
public final void setPresentationIdentifier(int ident)
ident
- intpublic final int getOperationId()
public final void setOperationId(int opCode)
opCode
- intprotected final void initializeDCETransaction(int handle, byte typ, int flags, int callId)
handle
- inttyp
- byteflags
- intcallId
- intpublic final void initializeDCEWrite(int handle, int flags, int callId, int fragLen)
handle
- intflags
- intcallId
- intfragLen
- intpublic final void initializeDCEReply(byte typ, int flags, int callId)
typ
- byteflags
- intcallId
- intpublic final void initializeDCEBind(int pipeHandle, int maxTx, int maxRx, int pipeId, int callId)
pipeHandle
- intmaxTx
- intmaxRx
- intpipeId
- intcallId
- intpublic final void initializeDCERequest(int pipeHandle, int opCode, DCEBuffer buf, int maxTx, int callId) throws DCEBufferException
pipeHandle
- intopCode
- intbuf
- DCEBuffermaxTx
- intcallId
- intDCEBufferException
public final void DumpHeader()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.