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>
This commit is contained in:
parent
352c007535
commit
4c7d523e22
@ -37,19 +37,19 @@ class arp(packet_base.PacketBase):
|
|||||||
MAC addresses are represented as a string like '08:60:6e:7f:74:e7'.
|
MAC addresses are represented as a string like '08:60:6e:7f:74:e7'.
|
||||||
__init__ takes the corresponding args in this order.
|
__init__ takes the corresponding args in this order.
|
||||||
|
|
||||||
============== ==================== =====================
|
============== ===================================== =====================
|
||||||
Attribute Description Example
|
Attribute Description Example
|
||||||
============== ==================== =====================
|
============== ===================================== =====================
|
||||||
hwtype ar$hrd
|
hwtype Hardware address.
|
||||||
proto ar$pro
|
proto Protocol address.
|
||||||
hlen ar$hln
|
hlen byte length of each hardware address.
|
||||||
plen ar$pln
|
plen byte length of each protocol address.
|
||||||
opcode ar$op
|
opcode operation codes.
|
||||||
src_mac ar$sha '08:60:6e:7f:74:e7'
|
src_mac Hardware address of sender. '08:60:6e:7f:74:e7'
|
||||||
src_ip ar$spa '192.0.2.1'
|
src_ip Protocol address of sender. '192.0.2.1'
|
||||||
dst_mac ar$tha '00:00:00:00:00:00'
|
dst_mac Hardware address of target. '00:00:00:00:00:00'
|
||||||
dst_ip ar$tpa '192.0.2.2'
|
dst_ip Protocol address of target. '192.0.2.2'
|
||||||
============== ==================== =====================
|
============== ===================================== =====================
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_PACK_STR = '!HHBBH6s4s6s4s'
|
_PACK_STR = '!HHBBH6s4s6s4s'
|
||||||
|
Loading…
Reference in New Issue
Block a user