hardwareAddressSize = skbuf.get(4);
protocolAddressSize = skbuf.get(5);
operation = ARPOperation.getType(skbuf.get16(6));
if ((hardwareType == 1) && (protocolType == EthernetConstants.ETH_P_IP)) {
sourceHardwareAddress = new EthernetAddress(skbuf, 8);
sourceProtocolAddress = new IPv4Address(skbuf, 14);
destinationHardwareAddress = new EthernetAddress(skbuf, 18);
destinationProtocolAddress = new IPv4Address(skbuf, 24);
} else {
throw new SocketException("Unknown hw,ptype: " + hardwareType + ',' + protocolType);
}
}