commit | caf1ca2b1d9d9d4575de097fd6d083c33ae7ad8a | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Thu Jun 25 15:18:16 2015 -0700 |
committer | Ray Milkey <ray@onlab.us> | Fri Jun 26 13:44:55 2015 +0000 |
tree | 284ea5d1bad24a818a0ff7356a201807ce46192f | |
parent | 6e8b81e1bf096bd0a5c13cd36f7436d53570e4c6 [diff] |
adding EthType to secure handling ether types this will also pretty print ethertypes in flow output Change-Id: I9363070ad308f3c756735e29b3992c500e503636
diff --git a/apps/reactive-routing/src/main/java/org/onosproject/reactive/routing/SdnIpReactiveRouting.java b/apps/reactive-routing/src/main/java/org/onosproject/reactive/routing/SdnIpReactiveRouting.java index 46f7fd9..c75fd3b 100644 --- a/apps/reactive-routing/src/main/java/org/onosproject/reactive/routing/SdnIpReactiveRouting.java +++ b/apps/reactive-routing/src/main/java/org/onosproject/reactive/routing/SdnIpReactiveRouting.java
@@ -114,7 +114,7 @@ ConnectPoint srcConnectPoint = pkt.receivedFrom(); switch (ethPkt.getEtherType()) { - case Ethernet.TYPE_ARP: + case 0x806: ARP arpPacket = (ARP) ethPkt.getPayload(); Ip4Address targetIpAddress = Ip4Address .valueOf(arpPacket.getTargetProtocolAddress()); @@ -141,7 +141,7 @@ ByteBuffer.wrap(eth.serialize()))); } break; - case Ethernet.TYPE_IPV4: + case 0x800: // Parse packet IPv4 ipv4Packet = (IPv4) ethPkt.getPayload(); IpAddress dstIp =