STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
IpAddressType.cs
Go to the documentation of this file.
1 
2 namespace Lextm.SharpSnmpLib.Mib.Elements.Types
3 {
5  {
6  public IpAddressType(IModule module, string name, ISymbolEnumerator symbols)
7  : base(module, name, symbols)
8  {
9  if (this.Size.Count != 0)
10  {
11  throw new MibException("Size definition not allowed for IpAddress type!");
12  }
13 
14  // IpAddress type is defined as:
15  // IpAddress ::=
16  // [APPLICATION 0]
17  // IMPLICIT OCTET STRING (SIZE (4))
18  this.Size.Add(new ValueRange(4, null));
19  }
20  }
21 }
MIB Module interface.
Definition: IModule.cs:36
IpAddressType(IModule module, string name, ISymbolEnumerator symbols)
Definition: IpAddressType.cs:6
Description of MibException.
Definition: MibException.cs:24