Class ArpMessage
java.lang.Object
org.eblocker.server.common.network.ArpMessage
Contains data for an ARP packet.
There is a string representation that can be parsed. It is defined in: network-tools/arp_write.c.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat()Creates the string representationbooleanbooleanA gratuitous request has the same source and target IP addressstatic ArpMessageParse the string representation.toString()
-
Field Details
-
type
-
sourceHardwareAddress
-
sourceIPAddress
-
targetHardwareAddress
-
targetIPAddress
-
ethernetTargetHardwareAddress
-
-
Constructor Details
-
ArpMessage
public ArpMessage()
-
-
Method Details
-
parse
Parse the string representation. See also: network-tools/arp_write.c- Parameters:
message-- Returns:
- Throws:
ArpMessageParsingException
-
format
Creates the string representation- Returns:
-
toString
-
isGratuitousRequest
public boolean isGratuitousRequest()A gratuitous request has the same source and target IP address- Returns:
-
isArpProbe
public boolean isArpProbe()
-