From f3a4420354b2681d9f2c2c7496abbf3e823fa1b7 Mon Sep 17 00:00:00 2001 From: montag451 Date: Sun, 19 Jan 2014 19:50:17 +0100 Subject: [PATCH] Modify the documentation section of the README --- README.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index bb27efe..ebc4db5 100644 --- a/README.rst +++ b/README.rst @@ -45,12 +45,6 @@ You can get/set some parameters of the device directly:: tun.netmask = '255.255.255.0' tun.mtu = 1500 -To read/write to the device, use the methods ``read(size)`` and -``write(buf)``:: - - buf = tun.read(tun.mtu) - tun.write(buf) - If the device is a TAP you can also get/set its MAC address:: tap.hwaddr = '\x00\x11\x22\x33\x44\x55' @@ -68,6 +62,12 @@ To bring down the device:: tun.down() +To read/write to the device, use the methods ``read(size)`` and +``write(buf)``:: + + buf = tun.read(tun.mtu) + tun.write(buf) + To close the device:: tun.close()