- if (rn->loaded >= DCCP_BUFSIZE) {
- t->error = -E_DCCP_OVERRUN;
- return;
- }
- t->error = recv_bin_buffer(pdd->fd, rn->buf + rn->loaded,
- DCCP_BUFSIZE - rn->loaded);
- if (t->error > 0) {
- rn->loaded += t->error;
- return;
- }
- if (!t->error)
- t->error = -E_RECV_EOF;
+ ret = -E_DCCP_OVERRUN;
+ sz = btr_pool_get_buffer(pdd->btrp, &buf);
+ if (sz == 0)
+ goto err;
+ ret = recv_bin_buffer(pdd->fd, buf, sz);
+ if (ret == 0)
+ ret = -E_RECV_EOF;
+ if (ret < 0)
+ goto err;
+ btr_add_output_pool(pdd->btrp, ret, btrn);
+ return;
+err:
+ btr_remove_node(rn->btrn);
+ t->error = ret;
+}
+
+static void dccp_recv_free_config(void *conf)
+{
+ dccp_recv_cmdline_parser_free(conf);