Commit 059cd896 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

add clear method to udp_dyn_proxy

parent 6c569547
......@@ -63,6 +63,12 @@ def addlink():
except:
sock.sendto("Error while executing: " + " ".join(command) + '\n', srcaddr)
def clear():
try:
linklookup.clear()
except:
sock.sendto("Clearing linklookup table failed\n", srcaddr)
def dellink():
try:
ip1, port1, ip2, port2 = command[1:]
......@@ -80,6 +86,7 @@ def printlinks():
# map command to method calls
methods = {
'addlink': addlink,
'clear': clear,
'dellink': dellink,
'printlinks': printlinks,
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment