1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522
|
// License: BSD/LGPL
// Copyright (C) 2011-2018 Thomas d'Otreppe
using System;
using System.Collections.Generic;
namespace WirelessPanda
{
public class AccessPoint : WirelessDevice, IEquatable<AccessPoint>
{
#region Properties
/// <summary>
/// Max Rate
/// </summary>
public double MaxRate
{
get
{
return (double)this.getDictValue("Max Rate");
}
set
{
this.setDictValue("Max Rate", value);
}
}
/// <summary>
/// Max Seen Rate
/// </summary>
public double MaxSeenRate
{
get
{
return (double)this.getDictValue("Max Seen Rate");
}
set
{
this.setDictValue("Max Seen Rate", value);
}
}
/// <summary>
/// Privacy
/// </summary>
public string Privacy
{
get
{
return (string)this.getDictValue("Privacy");
}
set
{
this.setDictValue("Privacy", value);
}
}
/// <summary>
/// Cipher
/// </summary>
public string Cipher
{
get
{
return (string)this.getDictValue("Cipher");
}
set
{
this.setDictValue("Cipher", value);
}
}
/// <summary>
/// Authentication
/// </summary>
public string Authentication
{
get
{
return (string)this.getDictValue("Authentication");
}
set
{
this.setDictValue("Authentication", value);
}
}
/// <summary>
/// # Data Frames
/// </summary>
public ulong DataFrames
{
get
{
return (ulong)this.getDictValue("Data");
}
set
{
this.setDictValue("Data", value);
}
}
/// <summary>
/// Beacons
/// </summary>
public long Beacons
{
get
{
return (long)this.getDictValue("Beacons");
}
set
{
this.setDictValue("Beacons", value);
}
}
/// <summary>
/// IP Address
/// </summary>
public string IP
{
get
{
return (string)this.getDictValue("IP");
}
set
{
this.setDictValue("IP", value);
}
}
/// <summary>
/// IP Type
/// </summary>
public int IPType
{
get
{
return (int)this.getDictValue("IP Type");
}
set
{
this.setDictValue("IP Type", value);
}
}
/// <summary>
/// ESSID
/// </summary>
public string ESSID
{
get
{
return (string)this.getDictValue("ESSID");
}
set
{
this.setDictValue("ESSID", value);
}
}
/// <summary>
/// ESSID Length
/// </summary>
public byte ESSIDLength
{
get
{
return (byte)this.getDictValue("ESSID Length");
}
set
{
this.setDictValue("ESSID Length", value);
}
}
/// <summary>
/// Key
/// </summary>
public string Key
{
get
{
return (string)this.getDictValue("Key");
}
set
{
this.setDictValue("Key", value);
}
}
/// <summary>
/// Network Type
/// </summary>
public string NetworkType
{
get
{
return (string)this.getDictValue("Network Type");
}
set
{
this.setDictValue("Network Type", value);
}
}
/// <summary>
/// Info
/// </summary>
public string Info
{
get
{
return (string)this.getDictValue("Info");
}
set
{
this.setDictValue("Info", value);
}
}
/// <summary>
/// Encoding
/// </summary>
public string Encoding
{
get
{
return (string)this.getDictValue("Encoding");
}
set
{
this.setDictValue("Encoding", value);
}
}
/// <summary>
/// Cloaked ?
/// </summary>
public bool Cloaked
{
get
{
return (bool)this.getDictValue("Cloaked");
}
set
{
this.setDictValue("Cloaked", value);
}
}
/// <summary>
/// Encryption
/// </summary>
public string Encryption
{
get
{
return (string)this.getDictValue("Encryption");
}
set
{
this.setDictValue("Encryption", value);
}
}
/// <summary>
/// Is the traffic decrypted?
/// </summary>
public bool Decrypted
{
get
{
return (bool)this.getDictValue("Decrypted");
}
set
{
this.setDictValue("Decrypted", value);
}
}
/// <summary>
/// # Beacon Frames
/// </summary>
public ulong Beacon
{
get
{
return (ulong)this.getDictValue("Beacon");
}
set
{
this.setDictValue("Beacon", value);
}
}
/// <summary>
/// # LLC Frames
/// </summary>
public ulong LLC
{
get
{
return (ulong)this.getDictValue("LLC");
}
set
{
this.setDictValue("LLC", value);
}
}
/// <summary>
/// # Crypt Frames
/// </summary>
public ulong Crypt
{
get
{
return (ulong)this.getDictValue("Crypt");
}
set
{
this.setDictValue("Crypt", value);
}
}
/// <summary>
/// # Weak Frames
/// </summary>
public ulong Weak
{
get
{
return (ulong)this.getDictValue("Weak");
}
set
{
this.setDictValue("Weak", value);
}
}
/// <summary>
/// Total Nb of Frames
/// </summary>
public ulong Total
{
get
{
return (ulong)this.getDictValue("Total");
}
set
{
this.setDictValue("Total", value);
}
}
/// <summary>
/// Carrier
/// </summary>
public string Carrier
{
get
{
return (string)this.getDictValue("Carrier");
}
set
{
this.setDictValue("Carrier", value);
}
}
/// <summary>
/// Best Quality
/// </summary>
public int BestQuality
{
get
{
return (int)this.getDictValue("BestQuality");
}
set
{
this.setDictValue("BestQuality", value);
}
}
/// <summary>
/// Best Signal
/// </summary>
public int BestSignal
{
get
{
return (int)this.getDictValue("Best Signal");
}
set
{
this.setDictValue("Best Signal", value);
}
}
/// <summary>
/// Best Noise
/// </summary>
public int BestNoise
{
get
{
return (int)this.getDictValue("Best Noise");
}
set
{
this.setDictValue("Best Noise", value);
}
}
/// <summary>
/// Min Location
/// </summary>
public Coordinates MinLocation
{
get
{
return (Coordinates)this.getDictValue("Min Location");
}
set
{
this.setDictValue("Min Location", value);
}
}
/// <summary>
/// Best Location
/// </summary>
public Coordinates BestLocation
{
get
{
return (Coordinates)this.getDictValue("Best Location");
}
set
{
this.setDictValue("Best Location", value);
}
}
/// <summary>
/// Max Location
/// </summary>
public Coordinates MaxLocation
{
get
{
return (Coordinates)this.getDictValue("Max Location");
}
set
{
this.setDictValue("Max Location", value);
}
}
/// <summary>
/// Data Size
/// </summary>
public ulong DataSize
{
get
{
return (ulong)this.getDictValue("Data Size");
}
set
{
this.setDictValue("Data Size", value);
}
}
#endregion
/// <summary>
/// Internal list of client
/// </summary>
private List<Station> _clientList = new List<Station>();
/// <summary>
/// Add a client to our list
/// </summary>
/// <param name="sta"></param>
public void addClient(Station sta)
{
this._clientList.Add(sta);
sta.AP = this;
}
/// <summary>
/// Returns the client list
/// </summary>
public List<Station> ClientList
{
get
{
return this._clientList;
}
}
/// <summary>
/// Implements IEquatable
/// </summary>
/// <param name="other">Other AccessPoint to compare to</param>
/// <returns>true if equals, false if not</returns>
public bool Equals(AccessPoint other)
{
try
{
if (this.BSSID == other.BSSID)
{
return true;
}
}
catch { }
return false;
}
}
}
|