ip: implement "hangup" ctl for udp protocol

This commit is contained in:
cinap_lenrek 2014-11-13 16:47:19 +01:00
parent 9840ce91cf
commit f51f73bdca

View file

@ -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;