Class ARPPacket
Represents an ARP (Address Resolution Protocol) packet.
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
Remarks
See also: EthernetPacket.
Constructors
| Improve this Doc View SourceARPPacket(MACAddress, MACAddress, UInt16, UInt16, Byte, Byte, UInt16, Int32)
Initializes a 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[])
Initializes a 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 SourcehardwareAddrLength
Declaration
protected byte hardwareAddrLength
Field Value
Type | Description |
---|---|
System.Byte |
hardwareType
Declaration
protected ushort hardwareType
Field Value
Type | Description |
---|---|
System.UInt16 |
opCode
Declaration
protected ushort opCode
Field Value
Type | Description |
---|---|
System.UInt16 |
protocolAddrLength
Declaration
protected byte protocolAddrLength
Field Value
Type | Description |
---|---|
System.Byte |
protocolType
Declaration
protected ushort protocolType
Field Value
Type | Description |
---|---|
System.UInt16 |
Methods
| Improve this Doc View SourceInitializeFields()
Declaration
protected override void InitializeFields()
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |