ref: 5382bc3ff0f55a87da4c5628554a039f12fbc362
parent: fc33b4865d23cd0ff7d0292a6f2e82fbcb00b81b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Nov 13 11:47:19 EST 2014
ip: implement "hangup" ctl for udp protocol
--- a/sys/src/9/ip/udp.c
+++ b/sys/src/9/ip/udp.c
@@ -518,6 +518,11 @@
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;
--
⑨