Class ARPPacket
ARPPacket class. See also: EthernetPacket.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Cosmos.System.Network.ARP
Assembly: Cosmos.System2.dll
Syntax
public class ARPPacket : EthernetPacket
Constructors
| Improve this Doc View SourceARPPacket(MACAddress, MACAddress, UInt16, UInt16, Byte, Byte, UInt16, Int32)
Create new instance of the ARPPacket class.
Declaration
protected ARPPacket(MACAddress dest, MACAddress src, ushort hwType, ushort protoType, byte hwLen, byte protoLen, ushort operation, int packet_size)
Parameters
Type | Name | Description |
---|---|---|
MACAddress | dest | Destination MAC address. |
MACAddress | src | Source MAC address. |
System.UInt16 | hwType | Hardware type. |
System.UInt16 | protoType | Protocol type. |
System.Byte | hwLen | Hardware address length. |
System.Byte | protoLen | Protocol length. |
System.UInt16 | operation | Operation. |
System.Int32 | packet_size | Packet size. |
ARPPacket(Byte[])
Create new instance of the ARPPacket class.
Declaration
public ARPPacket(byte[] rawData)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | rawData | Raw data. |
Fields
| Improve this Doc View SourceaHardwareLen
Hardware address length.
Declaration
protected byte aHardwareLen
Field Value
Type | Description |
---|---|
System.Byte |
aHardwareType
Hardware type.
Declaration
protected ushort aHardwareType
Field Value
Type | Description |
---|---|
System.UInt16 |
aOperation
Operation code.
Declaration
protected ushort aOperation
Field Value
Type | Description |
---|---|
System.UInt16 |
aProtocolLen
Protocol address length.
Declaration
protected byte aProtocolLen
Field Value
Type | Description |
---|---|
System.Byte |
aProtocolType
Protocol type.
Declaration
protected ushort aProtocolType
Field Value
Type | Description |
---|---|
System.UInt16 |
Methods
| Improve this Doc View SourceInitFields()
Init ARPPacket fields.
Declaration
protected override void InitFields()
Overrides
| Improve this Doc View SourceToString()
To string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | string value. |