diff --git a/modules/dtls_gw/rtpp_dtls.h b/modules/dtls_gw/rtpp_dtls.h index c69807804..ab2ba313d 100644 --- a/modules/dtls_gw/rtpp_dtls.h +++ b/modules/dtls_gw/rtpp_dtls.h @@ -28,7 +28,6 @@ struct rtpp_refcnt; struct rtpp_dtls_conn; struct rtpp_dtls; struct rtpp_stream; -struct rtpp_anetio_cf; struct rdc_fp_spec; DEFINE_METHOD(rtpp_dtls, rtpp_dtls_newconn, struct rtpp_dtls_conn *, diff --git a/modules/dtls_gw/rtpp_dtls_conn.c b/modules/dtls_gw/rtpp_dtls_conn.c index de775ff8e..ee33bb5e5 100644 --- a/modules/dtls_gw/rtpp_dtls_conn.c +++ b/modules/dtls_gw/rtpp_dtls_conn.c @@ -128,7 +128,6 @@ const struct srtp_crypto_suite srtp_suites [] = { struct rtpp_dtls_conn_priv { struct rtpp_dtls_conn pub; struct rtpp_stream *dtls_strmp; - struct rtpp_anetio_cf *netio_cf; struct rtpp_timed *timed_cf; pthread_mutex_t state_lock; enum rdc_state state; @@ -225,7 +224,6 @@ rtpp_dtls_conn_ctor(const struct rtpp_cfg *cfsp, SSL_CTX *ctx, /* Cannot grab refcount here, circular reference would ensue */ /* RTPP_OBJ_INCREF(dtls_strmp); */ pvt->dtls_strmp = dtls_strmp; - pvt->netio_cf = cfsp->rtpp_proc_cf->netio; pvt->timed_cf = cfsp->rtpp_timed_cf; pvt->pub.dtls_recv = rtpp_dtls_conn_dtls_recv; pvt->pub.rtp_send = rtpp_dtls_conn_rtp_send; @@ -525,8 +523,7 @@ bio_write(BIO *b, const char *buf, int len) return (-1); memcpy(packet->data.buf, buf, len); packet->size = len; - sender = rtpp_anetio_pick_sender(pvt->netio_cf); - CALL_SMETHOD(pvt->dtls_strmp, send_pkt, sender, packet); + CALL_SMETHOD(pvt->dtls_strmp, send_pkt, NULL, packet); return (len); } diff --git a/modules/dtls_gw/rtpp_dtls_conn.h b/modules/dtls_gw/rtpp_dtls_conn.h index cc2bf09dd..151119432 100644 --- a/modules/dtls_gw/rtpp_dtls_conn.h +++ b/modules/dtls_gw/rtpp_dtls_conn.h @@ -28,7 +28,6 @@ struct rtpp_refcnt; struct rtpp_stream; struct rtpp_dtls_conn; struct rtp_packet; -struct rtpp_anetio_cf; struct pkt_proc_ctx; enum rtpp_dtls_mode {