commit | 0db93392d4ba7f64a0fc59687736acfe81066897 | [log] [tgz] |
---|---|---|
author | suibin zhang <suibin@onlab.us> | Thu Oct 08 20:43:22 2015 -0700 |
committer | suibin zhang <suibin@onlab.us> | Thu Oct 08 20:43:22 2015 -0700 |
tree | 87a96f819f6ea09404a8fcbfe7f181d29c985a10 | |
parent | ed976a405fa3db38903ce369c9ece7023d310a21 [diff] |
ONOS-3088 fix - exlude package processing for non-ARP or non-IPV6 packages Change-Id: I24c942e017f36dd6dd9fca2c37e77cdcb328e21d
diff --git a/apps/proxyarp/src/main/java/org/onosproject/proxyarp/ProxyArp.java b/apps/proxyarp/src/main/java/org/onosproject/proxyarp/ProxyArp.java index 2eb96df..24c36d1 100644 --- a/apps/proxyarp/src/main/java/org/onosproject/proxyarp/ProxyArp.java +++ b/apps/proxyarp/src/main/java/org/onosproject/proxyarp/ProxyArp.java
@@ -231,6 +231,10 @@ } } + if (ethPkt.getEtherType() != TYPE_ARP && ethPkt.getEtherType() != TYPE_IPV6) { + return; + } + //handle the arp packet. proxyArpService.handlePacket(context); }