summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-04-07 15:19:16 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-05-09 10:20:16 +0900
commit4c7d523e22250126fbd7d3c8102d2140508e9ef0 (patch)
treeedddcc97b6fc14b5af39e3e2977d8aabfdf9a717
parent352c007535212aab44b8995ffe79ab0cf08407dd (diff)
packet/arp: Update description for arguments
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/packet/arp.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/ryu/lib/packet/arp.py b/ryu/lib/packet/arp.py
index dc78f2bd..5a0eea4d 100644
--- a/ryu/lib/packet/arp.py
+++ b/ryu/lib/packet/arp.py
@@ -37,19 +37,19 @@ class arp(packet_base.PacketBase):
MAC addresses are represented as a string like '08:60:6e:7f:74:e7'.
__init__ takes the corresponding args in this order.
- ============== ==================== =====================
- Attribute Description Example
- ============== ==================== =====================
- hwtype ar$hrd
- proto ar$pro
- hlen ar$hln
- plen ar$pln
- opcode ar$op
- src_mac ar$sha '08:60:6e:7f:74:e7'
- src_ip ar$spa '192.0.2.1'
- dst_mac ar$tha '00:00:00:00:00:00'
- dst_ip ar$tpa '192.0.2.2'
- ============== ==================== =====================
+ ============== ===================================== =====================
+ Attribute Description Example
+ ============== ===================================== =====================
+ hwtype Hardware address.
+ proto Protocol address.
+ hlen byte length of each hardware address.
+ plen byte length of each protocol address.
+ opcode operation codes.
+ src_mac Hardware address of sender. '08:60:6e:7f:74:e7'
+ src_ip Protocol address of sender. '192.0.2.1'
+ dst_mac Hardware address of target. '00:00:00:00:00:00'
+ dst_ip Protocol address of target. '192.0.2.2'
+ ============== ===================================== =====================
"""
_PACK_STR = '!HHBBH6s4s6s4s'