Signed-off-by: OHMURA Kei <[email protected]>
---
 ryu/lib/packet/arp.py |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/ryu/lib/packet/arp.py b/ryu/lib/packet/arp.py
index 24ba2c0..fb56aad 100644
--- a/ryu/lib/packet/arp.py
+++ b/ryu/lib/packet/arp.py
@@ -16,6 +16,15 @@
 import struct
 from . import packet_base
 
+ARP_HW_TYPE_ETHERNET = 1  # ethernet hardware type
+ARP_PROTO_TYPE_IP = 0x0800  # ip protocol type
+
+# arp operation codes
+ARP_REQUEST = 1
+ARP_REPLY = 2
+ARP_REV_REQUEST = 3
+ARP_REV_REPLY = 4
+
 
 class arp(packet_base.PacketBase):
     _PACK_STR = '!HHBBH6sI6sI'
-- 
1.7.9.5


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to