if (other.getAddress() != null) { return false; } else if(!_address.equals(other.getAddress())) { return false; if (other.getMask() != null) { return false; } else if(!_mask.equals(other.getMask())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
public ArpTargetHardwareAddressBuilder(ArpTargetHardwareAddress base) { this._address = base.getAddress(); this._mask = base.getMask(); if (base instanceof ArpTargetHardwareAddressImpl) { ArpTargetHardwareAddressImpl _impl = (ArpTargetHardwareAddressImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
private static void fillFromArp(Match target, ArpMatch source) { Ipv4Prefix sourceAddress = source.getArpSourceTransportAddress(); if (sourceAddress != null) { target.setField(NW_SRC, inetAddressFrom(sourceAddress), null); } Ipv4Prefix destAddress = source.getArpTargetTransportAddress(); if (destAddress != null) { target.setField(NW_DST, inetAddressFrom(destAddress), null); } ArpSourceHardwareAddress sourceHwAddress = source.getArpSourceHardwareAddress(); if (sourceHwAddress != null) { target.setField(DL_SRC, bytesFrom(sourceHwAddress.getAddress())); } ArpTargetHardwareAddress targetHwAddress = source.getArpTargetHardwareAddress(); if (targetHwAddress != null) { target.setField(DL_DST, bytesFrom(targetHwAddress.getAddress())); } target.setField(DL_TYPE, ETHERNET_ARP); }
arpThaBuilder.setMacAddress(arpTargetHardwareAddress.getAddress()); boolean hasMask = false; if (null != arpTargetHardwareAddress.getMask()) { arpThaBuilder.setMask(ByteBufUtils.macAddressToBytes(arpTargetHardwareAddress.getMask().getValue())); hasMask = true;