summaryrefslogtreecommitdiff
path: root/proto/rpki/transport.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-09-26 12:21:33 +0200
committerMaria Matejka <mq@ucw.cz>2022-09-26 12:21:33 +0200
commit7901c40500af1749848b79833ddfe66c22e81f50 (patch)
tree4f35315a02b42564ec07b75832fa1ec015662198 /proto/rpki/transport.c
parentc2261fa8add264d3668f1fe270b6961d81afe6b5 (diff)
parent3fd1f46184aa74d8ab7ed65c9ab6954f7e49d309 (diff)
Merge commit '3fd1f461' into thread-next
closes #16 closes #17 closes #18
Diffstat (limited to 'proto/rpki/transport.c')
-rw-r--r--proto/rpki/transport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/rpki/transport.c b/proto/rpki/transport.c
index 81bd6dd8..4026fca4 100644
--- a/proto/rpki/transport.c
+++ b/proto/rpki/transport.c
@@ -85,6 +85,7 @@ rpki_tr_open(struct rpki_tr_sock *tr)
sk->rbsize = RPKI_RX_BUFFER_SIZE;
sk->tbsize = RPKI_TX_BUFFER_SIZE;
sk->tos = IP_PREC_INTERNET_CONTROL;
+ sk->flags |= SKF_THREAD;
sk->vrf = cache->p->p.vrf;
if (ipa_zero(sk->daddr) && sk->host)
@@ -120,6 +121,7 @@ rpki_tr_close(struct rpki_tr_sock *tr)
if (tr->sk)
{
+ sk_stop(tr->sk);
rfree(tr->sk);
tr->sk = NULL;
}