C# Class NetworkPackets.ArpPacket

Encapsulates an Arp Packet and provides the mechanisms to generate new Arp Packets. This is immutable.
The Header is of the format: Field Position Hardware Type2 Bytes Protocol Type2 Bytes Hardware Length1 Byte Protocol Length1 Byte Operation2 Bytes Sender HW AddressHW Length Sender Proto AddressProto Length Target HW AddressHW Length Target Proto AddressProto Length
Inheritance: NetworkPacket
Show file Open project: pstjuste/brunet Class Usage Examples

Public Properties

Property Type Description
HardwareType int
Operation Operations
ProtocolType int
SenderHWAddress MemBlock
SenderProtoAddress MemBlock
TargetHWAddress MemBlock
TargetProtoAddress MemBlock

Public Methods

Method Description
ArpPacket ( MemBlock Packet ) : Brunet
ArpPacket ( int HardwareType, int ProtocolType, Operations Operation, MemBlock SenderHWAddress, MemBlock SenderProtoAddress, MemBlock TargetHWAddress, MemBlock TargetProtoAddress ) : Brunet
Respond ( MemBlock response ) : ArpPacket

Method Details

ArpPacket() public method

public ArpPacket ( MemBlock Packet ) : Brunet
Packet MemBlock
return Brunet

ArpPacket() public method

public ArpPacket ( int HardwareType, int ProtocolType, Operations Operation, MemBlock SenderHWAddress, MemBlock SenderProtoAddress, MemBlock TargetHWAddress, MemBlock TargetProtoAddress ) : Brunet
HardwareType int
ProtocolType int
Operation Operations
SenderHWAddress MemBlock
SenderProtoAddress MemBlock
TargetHWAddress MemBlock
TargetProtoAddress MemBlock
return Brunet

Respond() public method

public Respond ( MemBlock response ) : ArpPacket
response MemBlock
return ArpPacket

Property Details

HardwareType public property

Hardware type -- Ethernet is 1.
public int HardwareType
return int

Operation public property

public Operations Operation
return Operations

ProtocolType public property

Protocol Type -- IP is 0x0800.
public int ProtocolType
return int

SenderHWAddress public property

public MemBlock SenderHWAddress
return MemBlock

SenderProtoAddress public property

public MemBlock SenderProtoAddress
return MemBlock

TargetHWAddress public property

public MemBlock TargetHWAddress
return MemBlock

TargetProtoAddress public property

public MemBlock TargetProtoAddress
return MemBlock