aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim.Servers/CheckSumServer.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim.Servers/CheckSumServer.cs b/OpenSim.Servers/CheckSumServer.cs
index 2f79b7a..f0b4124 100644
--- a/OpenSim.Servers/CheckSumServer.cs
+++ b/OpenSim.Servers/CheckSumServer.cs
@@ -38,9 +38,9 @@ namespace OpenSim.Servers
38 // do we already have a circuit for this endpoint 38 // do we already have a circuit for this endpoint
39 if (packet.Type == PacketType.SecuredTemplateChecksumRequest) 39 if (packet.Type == PacketType.SecuredTemplateChecksumRequest)
40 { 40 {
41 41
42 SecuredTemplateChecksumRequestPacket checksum = (SecuredTemplateChecksumRequestPacket)packet; 42 SecuredTemplateChecksumRequestPacket checksum = (SecuredTemplateChecksumRequestPacket)packet;
43 TemplateChecksumReplyPacket checkreply = new TemplateChecksumReplyPacket(); 43 TemplateChecksumReplyPacket checkreply = new TemplateChecksumReplyPacket();
44 checkreply.DataBlock.Checksum = 180572585; 44 checkreply.DataBlock.Checksum = 180572585;
45 checkreply.DataBlock.Flags = 0; 45 checkreply.DataBlock.Flags = 0;
46 checkreply.DataBlock.MajorVersion = 1; 46 checkreply.DataBlock.MajorVersion = 1;
@@ -56,10 +56,11 @@ namespace OpenSim.Servers
56 checkrequest.TokenBlock.Token = checksum.TokenBlock.Token; 56 checkrequest.TokenBlock.Token = checksum.TokenBlock.Token;
57 this.SendPacket(checkrequest, epSender); 57 this.SendPacket(checkrequest, epSender);
58 */ 58 */
59 59
60 } 60 }
61 else if (packet.Type == PacketType.TemplateChecksumReply) 61 else if (packet.Type == PacketType.TemplateChecksumReply)
62 { 62 {
63 //echo back the client checksum reply (Hegemon's method)
63 TemplateChecksumReplyPacket checksum = (TemplateChecksumReplyPacket)packet; 64 TemplateChecksumReplyPacket checksum = (TemplateChecksumReplyPacket)packet;
64 TemplateChecksumReplyPacket checkreply2 = new TemplateChecksumReplyPacket(); 65 TemplateChecksumReplyPacket checkreply2 = new TemplateChecksumReplyPacket();
65 checkreply2.DataBlock.Checksum = checksum.DataBlock.Checksum; 66 checkreply2.DataBlock.Checksum = checksum.DataBlock.Checksum;
@@ -70,10 +71,10 @@ namespace OpenSim.Servers
70 checkreply2.DataBlock.ServerVersion = checksum.DataBlock.ServerVersion; 71 checkreply2.DataBlock.ServerVersion = checksum.DataBlock.ServerVersion;
71 checkreply2.TokenBlock.Token = checksum.TokenBlock.Token; 72 checkreply2.TokenBlock.Token = checksum.TokenBlock.Token;
72 this.SendPacket(checkreply2, epSender); 73 this.SendPacket(checkreply2, epSender);
73 74
74 } 75 }
75 else 76 else
76 { 77 {
77 } 78 }
78 79
79 Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null); 80 Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null);