Skip to content
Snippets Groups Projects
Commit 059cd896 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

add clear method to udp_dyn_proxy

parent 6c569547
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment