This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple linux tun/tap device example tunnel over udp | |
# create tap device with ip tuntap add device0 tap | |
# set ip address on it and run tap-linux on that device and set desitation ip | |
# run same on another node, changing dst ip to first node | |
import fcntl | |
import struct | |
import os | |
import socket | |
import threading |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env python3 | |
# | |
# Seamless loop test | |
# Copyright (c) 2015 Arnaud Loonstra <[email protected]> | |
# | |
# This is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |