summaryrefslogtreecommitdiff
path: root/sys/src/9/ip
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-11-13 16:47:19 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-11-13 16:47:19 +0100
commitf51f73bdca8b2dcb268a9a2edef4da95e2de738f (patch)
tree5a85b9c05d053048612281ac81af84f6f40a2c55 /sys/src/9/ip
parent9840ce91cfc069a807b1601863c7579d4d0898b0 (diff)
ip: implement "hangup" ctl for udp protocol
Diffstat (limited to 'sys/src/9/ip')
-rw-r--r--sys/src/9/ip/udp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/src/9/ip/udp.c b/sys/src/9/ip/udp.c
index 0f79b413f..910892b4b 100644
--- a/sys/src/9/ip/udp.c
+++ b/sys/src/9/ip/udp.c
@@ -518,6 +518,11 @@ udpctl(Conv *c, char **f, int n)
ucb = (Udpcb*)c->ptcl;
if(n == 1){
+ if(strcmp(f[0], "hangup") == 0){
+ qhangup(c->rq, nil);
+ qhangup(c->wq, nil);
+ return nil;
+ }
if(strcmp(f[0], "headers") == 0){
ucb->headers = 7; /* new headers format */
return nil;