+static void dccp_shutdown_client(struct sender_client *sc)
+{
+ struct dccp_fec_client *dfc = sc->private_data;
+
+ vss_del_fec_client(dfc->fc);
+ shutdown_client(sc, dss);
+}
+
+static void dccp_shutdown_clients(void)
+{
+ struct sender_client *sc, *tmp;
+
+ list_for_each_entry_safe(sc, tmp, &dss->client_list, node)
+ dccp_shutdown_client(sc);
+}
+
+static int dccp_open(void *client, struct fec_client_parms **fcp)
+{
+ struct dccp_fec_client *dfc = client;
+
+ dfc->fcp.slices_per_group = 4;
+ dfc->fcp.data_slices_per_group = 3;
+ dfc->fcp.max_slice_bytes = 1472;
+ *fcp = &dfc->fcp;
+ return 1;
+}
+
+static int dccp_send_fec(char *buf, size_t len, void *private_data)
+{
+ struct dccp_fec_client *dfc = private_data;
+ int ret = write_nonblock(dfc->sc->fd, buf, len, DCCP_MAX_BYTES_PER_WRITE);
+
+ if (ret < 0)
+ dccp_shutdown_client(dfc->sc);
+ return ret;
+}
+