summaryrefslogtreecommitdiff
path: root/sys/src/9/ip/tcp.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-03-12 23:07:58 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-03-12 23:07:58 +0100
commit8f2d9a139fa48e964e46be4bc8b7b451a0a721c9 (patch)
tree71c9bb99d43bb5338eeb49d3970d4a3f3ec50b45 /sys/src/9/ip/tcp.c
parent090a40473261a31a5bd0b08976b39cb4ee09bdc9 (diff)
devip: handle ignoreadvice flag for all protocols
Diffstat (limited to 'sys/src/9/ip/tcp.c')
-rw-r--r--sys/src/9/ip/tcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/ip/tcp.c b/sys/src/9/ip/tcp.c
index f19391a68..2fb8acd85 100644
--- a/sys/src/9/ip/tcp.c
+++ b/sys/src/9/ip/tcp.c
@@ -3254,6 +3254,8 @@ tcpadvise(Proto *tcp, Block *bp, char *msg)
if(tcb->state != Closed)
if(ipcmp(s->raddr, dest) == 0)
if(ipcmp(s->laddr, source) == 0){
+ if(s->ignoreadvice)
+ break;
qlock(s);
qunlock(tcp);
switch(tcb->state){