From 0772e19af25b8524fa2527a4d5f3bac496d07811 Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Sun, 3 Oct 2010 20:01:59 -0700
Subject: Added viewer's channel, mac, and id0 to agent circuit data. Also
moved client ip address to agent circuit data, so that it's always there.
---
OpenSim/Framework/AgentCircuitData.cs | 37 ++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Framework')
diff --git a/OpenSim/Framework/AgentCircuitData.cs b/OpenSim/Framework/AgentCircuitData.cs
index 783a833..4f89d78 100644
--- a/OpenSim/Framework/AgentCircuitData.cs
+++ b/OpenSim/Framework/AgentCircuitData.cs
@@ -108,11 +108,31 @@ namespace OpenSim.Framework
public string ServiceSessionID = string.Empty;
///
- /// Viewer's version string
+ /// The client's IP address, as captured by the login service
+ ///
+ public string IPAddress;
+
+ ///
+ /// Viewer's version string as reported by the viewer at login
///
public string Viewer;
///
+ /// The channel strinf sent by the viewer at login
+ ///
+ public string Channel;
+
+ ///
+ /// The Mac address as reported by the viewer at login
+ ///
+ public string Mac;
+
+ ///
+ /// The id0 as reported by the viewer at login
+ ///
+ public string Id0;
+
+ ///
/// Position the Agent's Avatar starts in the region
///
public Vector3 startpos;
@@ -179,7 +199,11 @@ namespace OpenSim.Framework
args["service_session_id"] = OSD.FromString(ServiceSessionID);
args["start_pos"] = OSD.FromString(startpos.ToString());
args["appearance_serial"] = OSD.FromInteger(Appearance.Serial);
+ args["client_ip"] = OSD.FromString(IPAddress);
args["viewer"] = OSD.FromString(Viewer);
+ args["channel"] = OSD.FromString(Channel);
+ args["mac"] = OSD.FromString(Mac);
+ args["id0"] = OSD.FromString(Id0);
if (Appearance != null)
{
@@ -279,8 +303,16 @@ namespace OpenSim.Framework
SessionID = args["session_id"].AsUUID();
if (args["service_session_id"] != null)
ServiceSessionID = args["service_session_id"].AsString();
+ if (args["client_ip"] != null)
+ IPAddress = args["client_ip"].AsString();
if (args["viewer"] != null)
Viewer = args["viewer"].AsString();
+ if (args["channel"] != null)
+ Channel = args["channel"].AsString();
+ if (args["mac"] != null)
+ Mac = args["mac"].AsString();
+ if (args["id0"] != null)
+ Id0 = args["id0"].AsString();
if (args["start_pos"] != null)
Vector3.TryParse(args["start_pos"].AsString(), out startpos);
@@ -349,6 +381,9 @@ namespace OpenSim.Framework
public float startposy;
public float startposz;
public string Viewer;
+ public string Channel;
+ public string Mac;
+ public string Id0;
public sAgentCircuitData()
{
--
cgit v1.1