ip: implement "hangup" ctl for udp protocol
This commit is contained in:
parent
9840ce91cf
commit
f51f73bdca
1 changed files with 5 additions and 0 deletions
|
@ -518,6 +518,11 @@ udpctl(Conv *c, char **f, int n)
|
||||||
|
|
||||||
ucb = (Udpcb*)c->ptcl;
|
ucb = (Udpcb*)c->ptcl;
|
||||||
if(n == 1){
|
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){
|
if(strcmp(f[0], "headers") == 0){
|
||||||
ucb->headers = 7; /* new headers format */
|
ucb->headers = 7; /* new headers format */
|
||||||
return nil;
|
return nil;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue