From d29b3b3d7a77c29cfe5ffd440fe2bb612caf4e30 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 1 Aug 2013 13:55:00 +0900 Subject: packet lib api: update documentation Signed-off-by: YAMAMOTO Takashi Signed-off-by: FUJITA Tomonori --- doc/source/library_packet.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/source/library_packet.rst b/doc/source/library_packet.rst index 260f13be..70340f6e 100644 --- a/doc/source/library_packet.rst +++ b/doc/source/library_packet.rst @@ -79,10 +79,10 @@ is building an arp packet. .. code-block:: python - dst = 'a' * 6 - src = 'b' * 6 e = ethernet.ethernet(dst, src, ether.ETH_TYPE_8021Q) - a = arp.arp(1, 0x0800, 6, 4, 2, '\a' * 6, 50, '\b' * 6, 30) + a = arp.arp(hwtype=1, proto=0x0800, hlen=6, plen=4, opcode=2, + src='08:60:6e:7f:74:e7', src_ip='192.0.2.1', + dst='00:00:00:00:00:00', dst_ip='192.0.2.2') p = packet.Packet() p.add_protocol(e) p.add_protocol(a) -- cgit v1.2.3