commit | 20b19b9af46ad651abdf7c5fb9d943db41040455 | [log] [tgz] |
---|---|---|
author | YI-JIE,SYU <tw0927041027@gmail.com> | Fri Aug 23 19:50:27 2019 +0800 |
committer | Thomas Vachuska <tom@opennetworking.org> | Tue Jan 07 17:27:40 2020 +0000 |
tree | 0339af8c4f65cb403bb099ac1f5113c12aac6500 | |
parent | 120ba4780dda66368740e05a48c49c394938b663 [diff] |
Fix LearningSwitchSolution File Revise judgment on lack of ARP protocols Change-Id: Ie58060751830eb827aabe3c03a0f1a0610fa81a0
diff --git a/apps/learning-switch/src/main/java/org/onosproject/learningswitch/LearningSwitchSolution.java b/apps/learning-switch/src/main/java/org/onosproject/learningswitch/LearningSwitchSolution.java index 8dd07fd..875e004 100644 --- a/apps/learning-switch/src/main/java/org/onosproject/learningswitch/LearningSwitchSolution.java +++ b/apps/learning-switch/src/main/java/org/onosproject/learningswitch/LearningSwitchSolution.java
@@ -155,7 +155,7 @@ * and do nothing with the packet. actLikeSwitch can only process IPV4 packets. */ Short type = pc.inPacket().parsed().getEtherType(); - if (type != Ethernet.TYPE_IPV4) { + if (type != Ethernet.TYPE_IPV4 && type != Ethernet.TYPE_ARP) { return; }