BitOhenry

[ONOS-3376] Create arp_tpa selector to onos

Change-Id: I4b40b5cd3862d470db8d12e7f6098f36777f982a
......@@ -23,6 +23,7 @@ import java.util.Objects;
import java.util.Set;
import java.util.TreeSet;
import org.onlab.packet.Ip4Address;
import org.onlab.packet.Ip6Address;
import org.onlab.packet.IpPrefix;
import org.onlab.packet.MacAddress;
......@@ -353,6 +354,11 @@ public final class DefaultTrafficSelector implements TrafficSelector {
}
@Override
public Builder matchArpTpa(Ip4Address addr) {
return add(Criteria.matchArpTpa(addr));
}
@Override
public Builder matchArpTha(MacAddress addr) {
return add(Criteria.matchArpTha(addr));
}
......
......@@ -17,6 +17,7 @@ package org.onosproject.net.flow;
import java.util.Set;
import org.onlab.packet.Ip4Address;
import org.onlab.packet.Ip6Address;
import org.onlab.packet.IpPrefix;
import org.onlab.packet.MacAddress;
......@@ -386,6 +387,14 @@ public interface TrafficSelector {
Builder matchIPv6ExthdrFlags(short exthdrFlags);
/**
* Matches a arp IPv4 destination address.
*
* @param addr a arp IPv4 destination address
* @return a selection builder
*/
Builder matchArpTpa(Ip4Address addr);
/**
* Matches a arp_eth_dst address.
*
* @param addr a arp_eth_dst address
......