02_udp-sender-info.diff
authorGerrit Renker <grenker@cscs.ch>
Thu, 25 Feb 2010 16:05:44 +0000 (17:05 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 25 Feb 2010 16:05:44 +0000 (17:05 +0100)
udp sender: simplify port information of 'si' command

The 'udp' information is already in the transport protocol name,
hence removed by this patch.

http sender:
status: on
port: 8000
...
dccp sender:
status: on
port: 8000
...
udp sender:
status: on
port: udp 8000

For DCCP, the case is similar, http relies on TCP.

udp_send.c

index 273b6a4..77b5819 100644 (file)
@@ -303,7 +303,7 @@ static char *udp_info(void)
        ret = make_message(
                "udp sender:\n"
                "\tstatus: %s\n"
-               "\tport: udp %d\n"
+               "\tport: %d\n"
                "\ttargets: %s\n",
                (sender_status == SENDER_ON)? "on" : "off",
                conf.udp_default_port_arg,