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
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Méthodes publiques

Свойство Type Description
HardwareType int
Operation Operations
ProtocolType int
SenderHWAddress MemBlock
SenderProtoAddress MemBlock
TargetHWAddress MemBlock
TargetProtoAddress MemBlock

Méthodes publiques

Méthode 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 méthode

public ArpPacket ( MemBlock Packet ) : Brunet
Packet MemBlock
Résultat Brunet

ArpPacket() public méthode

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
Résultat Brunet

Respond() public méthode

public Respond ( MemBlock response ) : ArpPacket
response MemBlock
Résultat ArpPacket

Property Details

HardwareType public_oe property

Hardware type -- Ethernet is 1.
public int HardwareType
Résultat int

Operation public_oe property

public Operations Operation
Résultat Operations

ProtocolType public_oe property

Protocol Type -- IP is 0x0800.
public int ProtocolType
Résultat int

SenderHWAddress public_oe property

public MemBlock SenderHWAddress
Résultat MemBlock

SenderProtoAddress public_oe property

public MemBlock SenderProtoAddress
Résultat MemBlock

TargetHWAddress public_oe property

public MemBlock TargetHWAddress
Résultat MemBlock

TargetProtoAddress public_oe property

public MemBlock TargetProtoAddress
Résultat MemBlock