X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=udp_send.c;h=0343feb633c8d34319c70320e0081c701d18d0fe;hb=fd62cf6f3c17ec9f504d3a05be4fd48f969dcb01;hp=880c83cf1078a5553880897466ec43bccb09bedf;hpb=0970b1cad049a9f01b85df7ab1420e68c5573223;p=paraslash.git diff --git a/udp_send.c b/udp_send.c index 880c83cf..0343feb6 100644 --- a/udp_send.c +++ b/udp_send.c @@ -342,7 +342,6 @@ static int udp_com_add(struct sender_command_data *scd) sc = ut->sc = para_calloc(sizeof(*sc)); ut->fcp.slices_per_group = scd->slices_per_group; ut->fcp.data_slices_per_group = scd->data_slices_per_group; - ut->fcp.max_slice_bytes = scd->max_slice_bytes; ut->fcp.init_fec = udp_init_fec; ut->fcp.send_fec = udp_send_fec; @@ -381,9 +380,8 @@ static char *udp_info(void) list_for_each_entry(sc, &targets, node) { struct udp_target *ut = sc->private_data; - char *tmp = make_message("%s%s/%u:%u:%u ", + char *tmp = make_message("%s%s/%u:%u ", tgts ? : "", sc->name, - ut->fcp.max_slice_bytes, ut->fcp.data_slices_per_group, ut->fcp.slices_per_group ); @@ -422,11 +420,12 @@ static char *udp_help(void) { return make_message( "usage: {on|off}\n" - "usage: {add|delete} host[:port][/packet_size:k:n]\n" + "usage: {add|delete} ip_address[:port][/[packet_size:]k:n]\n" + " - k is the number of data slices per FEC group\n" + " - n is the total number of slices in a FEC group\n" + " - packet_size reduces the slice size below path MTU\n\n" "examples: add 224.0.1.38:1500 (IPv4 multicast)\n" - " add 224.0.1.38:1500/1400:14:16\n" - " (likewise, using 1400 byte packets, with 14\n" - " data slices per 16 slice FEC group)\n" + " add 224.0.1.38:8080/14:16 (explicit FEC)\n" " add 10.10.1.42 (using default port)\n" " add [FF05::42]:1500 (IPv6 multicast)\n" " add [::1] (IPv6 localhost/default port)\n"