summaryrefslogtreecommitdiffhomepage
path: root/doc/source
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2013-08-01 13:55:00 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-08-01 14:25:51 +0900
commitd29b3b3d7a77c29cfe5ffd440fe2bb612caf4e30 (patch)
tree5ca70eb30b57a1fa6e44c348fdf57159797cf4eb /doc/source
parent54c3438a217b83766286cf6dfc20641b3996164c (diff)
packet lib api: update documentation
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/library_packet.rst6
1 files changed, 3 insertions, 3 deletions
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)