From f51f73bdca8b2dcb268a9a2edef4da95e2de738f Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 13 Nov 2014 16:47:19 +0100 Subject: ip: implement "hangup" ctl for udp protocol --- sys/src/9/ip/udp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/src') 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; -- cgit v1.2.3