diff options
author | Mladen Sablic <mladen.sablic@gmail.com> | 2018-02-12 23:41:33 +0100 |
---|---|---|
committer | Mladen Sablic <mladen.sablic@gmail.com> | 2018-02-19 23:13:55 +0100 |
commit | 4d9ad5dcd0244b4035d8f88f7a3478a450c74283 (patch) | |
tree | 961109b12d71391f4ea372ecb6083070127a518c /vtysh | |
parent | Merge pull request #1765 from donaldsharp/sa_stuff (diff) | |
download | frr-4d9ad5dcd0244b4035d8f88f7a3478a450c74283.tar.xz frr-4d9ad5dcd0244b4035d8f88f7a3478a450c74283.zip |
pimd: Multicast traceroute client and router
This commit is the implementation of weak multicast traceroute.
It consists of IGMP module dealing with mtrace type IGMP messages
and client program mtrace/mtracebis for initiating mtrace queries.
Signed-off-by: Mladen Sablic <mladen.sablic@gmail.com>
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/vtysh.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 94c4ba433..65e9c9f8c 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -2628,6 +2628,19 @@ ALIAS(vtysh_traceroute, vtysh_traceroute_ip_cmd, "traceroute ip WORD", "IP trace\n" "Trace route to destination address or hostname\n") +DEFUN (vtysh_mtrace, + vtysh_mtrace_cmd, + "mtrace WORD", + "Multicast trace route to multicast source\n" + "Multicast trace route to multicast source address\n") +{ + int idx = 1; + + argv_find(argv, argc, "WORD", &idx); + execute_command("mtracebis", 1, argv[idx]->arg, NULL); + return CMD_SUCCESS; +} + DEFUN (vtysh_ping6, vtysh_ping6_cmd, "ping ipv6 WORD", @@ -3327,6 +3340,7 @@ void vtysh_init_vty(void) install_element(VIEW_NODE, &vtysh_ping_ip_cmd); install_element(VIEW_NODE, &vtysh_traceroute_cmd); install_element(VIEW_NODE, &vtysh_traceroute_ip_cmd); + install_element(VIEW_NODE, &vtysh_mtrace_cmd); install_element(VIEW_NODE, &vtysh_ping6_cmd); install_element(VIEW_NODE, &vtysh_traceroute6_cmd); #if defined(HAVE_SHELL_ACCESS) |