Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 doc/source/library_packet.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/source/library_packet.rst b/doc/source/library_packet.rst
index 260f13b..70340f6 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)
-- 
1.8.1.5


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to