📄 packetnetbios.cs
字号:
Tmp = "Receiver's Name : " + PNetBios.ReceiversName;
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 16 , 16 , false );
PNetBios.SendersName = Function.GetNetBiosNameSerial( PacketData , ref Index , ref NNumber );
Tmp = "Sender's Name : " + PNetBios.SendersName;
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 16 , 16 , false );
break; case Const.NB_NAME_RESP : PNetBios.LocalSessionNumber = PacketData[ Index ++ ]; Tmp = "Local Session Number : " + Function.ReFormatString( PNetBios.LocalSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.CallNameType = PacketData[ Index ++ ]; Tmp = "Call Name Type : " + Function.ReFormatString( PNetBios.CallNameType , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.XmitCorrelator = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Xmit Correlator : " + Function.ReFormatString( PNetBios.XmitCorrelator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
if( PNetBios.LocalSessionNumber != 0x00 && PNetBios.LocalSessionNumber != 0xFF) { PNetBios.ResponseCorrelator = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Response Correlator : " + Function.ReFormatString( PNetBios.ResponseCorrelator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
} PNetBios.ReceiversName = Function.GetNetBiosNameSerial( PacketData , ref Index , ref NNumber ); Tmp = "Receiver's Name : " + PNetBios.ReceiversName;
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 16 , 16 , false );
if( PNetBios.LocalSessionNumber != 0x00 && PNetBios.LocalSessionNumber != 0xFF)
{
PNetBios.SendersName = Function.GetNetBiosNameSerial( PacketData , ref Index , ref NNumber ); Tmp = "Sender's Name : " + PNetBios.SendersName;
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 16 , 16 , false );
} break; case Const.NB_STATUS_RESP : PNetBios.StatusResponse = PacketData[ Index ++ ]; Tmp = "Status Response : " + Function.ReFormatString( PNetBios.StatusResponse , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.Data2 = Function.Get2Bytes( PacketData , ref Index , Const.NORMAL ); Tmp = "Data 2 : " + Function.ReFormatString( PNetBios.Data2 , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
Index --; PNetBios.CallNameType = PacketData[ Index ++ ]; Tmp = "Call Name Type : " + Function.ReFormatString( PNetBios.CallNameType , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.XmitCorrelator = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Xmit Correlator : " + Function.ReFormatString( PNetBios.XmitCorrelator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
Index += 2; PNetBios.ReceiversName = Function.GetNetBiosNameSerial( PacketData , ref Index , ref NNumber );
Tmp = "Receiver's Name : " + PNetBios.ReceiversName;
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 16 , 16 , false );
PNetBios.SendersName = Function.GetNetBiosNameSerial( PacketData , ref Index , ref NNumber );
Tmp = "Sender's Name : " + PNetBios.SendersName;
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 16 , 16 , false );
break; case Const.NB_TERMINATE_TRACE_LR : break; case Const.NB_DATA_ACK : Index += 5; PNetBios.XmitCorrelator = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Xmit Correlator : " + Function.ReFormatString( PNetBios.XmitCorrelator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
PNetBios.RemoteSessionNumber = PacketData[ Index ++ ]; Tmp = "Remote Session Number : " + Function.ReFormatString( PNetBios.RemoteSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.LocalSessionNumber = PacketData[ Index ++ ]; Tmp = "Local Session Number : " + Function.ReFormatString( PNetBios.LocalSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
break; case Const.NB_DATA_FIRST_MIDDLE : PNetBios.DataFirstMidleFlags = PacketData[ Index ++ ]; Tmp = "Data First Midle Flags : " + Function.ReFormatString( PNetBios.DataFirstMidleFlags , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.ResyncIndicator = PacketData[ Index ++ ]; Tmp = "Resync Indicator : " + Function.ReFormatString( PNetBios.ResyncIndicator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
Index ++; PNetBios.ResponseCorrelator = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Response Correlator : " + Function.ReFormatString( PNetBios.ResponseCorrelator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
PNetBios.XmitCorrelator = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Xmit Correlator : " + Function.ReFormatString( PNetBios.XmitCorrelator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
PNetBios.RemoteSessionNumber = PacketData[ Index ++ ]; Tmp = "Remote Session Number : " + Function.ReFormatString( PNetBios.RemoteSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.LocalSessionNumber = PacketData[ Index ++ ]; Tmp = "Local Session Number : " + Function.ReFormatString( PNetBios.LocalSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
break; case Const.NB_DATA_ONLY_LAST : PNetBios.DataOnlyFlags = PacketData[ Index ++ ]; Tmp = "Data Only Flags : " + Function.ReFormatString( PNetBios.DataOnlyFlags , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.ResyncIndicator = PacketData[ Index ++ ]; Tmp = "Resync Indicator : " + Function.ReFormatString( PNetBios.ResyncIndicator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
Index ++; PNetBios.ResponseCorrelator = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Response Correlator : " + Function.ReFormatString( PNetBios.ResponseCorrelator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
PNetBios.XmitCorrelator = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Xmit Correlator : " + Function.ReFormatString( PNetBios.XmitCorrelator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
PNetBios.RemoteSessionNumber = PacketData[ Index ++ ]; Tmp = "Remote Session Number : " + Function.ReFormatString( PNetBios.RemoteSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.LocalSessionNumber = PacketData[ Index ++ ]; Tmp = "Local Session Number : " + Function.ReFormatString( PNetBios.LocalSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
break; case Const.NB_SESSION_CONFIRM : PNetBios.SessionConfirmFlags = PacketData[ Index ++ ]; Tmp = "Session Confirm Flags : " + Function.ReFormatString( PNetBios.SessionConfirmFlags , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.Data2 = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Data 2 : " + Function.ReFormatString( PNetBios.Data2 , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
PNetBios.ResponseCorrelator = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Response Correlator : " + Function.ReFormatString( PNetBios.ResponseCorrelator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
PNetBios.XmitCorrelator = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Xmit Correlator : " + Function.ReFormatString( PNetBios.XmitCorrelator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
PNetBios.RemoteSessionNumber = PacketData[ Index ++ ]; Tmp = "Remote Session Number : " + Function.ReFormatString( PNetBios.RemoteSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.LocalSessionNumber = PacketData[ Index ++ ]; Tmp = "Local Session Number : " + Function.ReFormatString( PNetBios.LocalSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
break; case Const.NB_SESSION_END : Index ++; PNetBios.Data2 = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Data 2 : " + Function.ReFormatString( PNetBios.Data2 , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
Index += 4; PNetBios.RemoteSessionNumber = PacketData[ Index ++ ]; Tmp = "Remote Session Number : " + Function.ReFormatString( PNetBios.RemoteSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.LocalSessionNumber = PacketData[ Index ++ ]; Tmp = "Local Session Number : " + Function.ReFormatString( PNetBios.LocalSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
break; case Const.NB_SESSION_INIT : PNetBios.SessionInitFlags = PacketData[ Index ++ ]; Tmp = "Session Init Number : " + Function.ReFormatString( PNetBios.SessionInitFlags , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.Data2 = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Data 2 : " + Function.ReFormatString( PNetBios.Data2 , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
PNetBios.ResponseCorrelator = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Response Correlator : " + Function.ReFormatString( PNetBios.ResponseCorrelator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
PNetBios.XmitCorrelator = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Xmit Correlator : " + Function.ReFormatString( PNetBios.XmitCorrelator , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
PNetBios.RemoteSessionNumber = PacketData[ Index ++ ]; Tmp = "Remote Session Number : " + Function.ReFormatString( PNetBios.RemoteSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.LocalSessionNumber = PacketData[ Index ++ ]; Tmp = "Local Session Number : " + Function.ReFormatString( PNetBios.LocalSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
break; case Const.NB_NO_RECEIVE : PNetBios.NoReceiveFlags = PacketData[ Index ++ ]; Tmp = "No Receive Flags : " + Function.ReFormatString( PNetBios.NoReceiveFlags , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.Data2 = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Data 2 : " + Function.ReFormatString( PNetBios.Data2 , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
Index += 2; PNetBios.RemoteSessionNumber = PacketData[ Index ++ ]; Tmp = "Remote Session Number : " + Function.ReFormatString( PNetBios.RemoteSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
PNetBios.LocalSessionNumber = PacketData[ Index ++ ]; Tmp = "Local Session Number : " + Function.ReFormatString( PNetBios.LocalSessionNumber , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 1 , 1 , false );
break; case Const.NB_RECEIVE_OUTSTANDING : Index ++; PNetBios.Data2 = Function.Get2Bytes( PacketData , ref Index , Const.VALUE ); Tmp = "Data 2 : " + Function.ReFormatString( PNetBios.Data2 , null );
mNodex.Nodes.Add( Tmp );
Function.SetPosition( ref mNodex , Index - 2 , 2 , false );
Index += 2; PNetBios.RemoteSessionNumber = PacketData[ Index ++ ];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -