diff options
Diffstat (limited to 'vtysh/extract.pl')
-rwxr-xr-x | vtysh/extract.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vtysh/extract.pl b/vtysh/extract.pl index ca88cf7b..9a65f145 100755 --- a/vtysh/extract.pl +++ b/vtysh/extract.pl @@ -109,7 +109,11 @@ foreach (@ARGV) { } } if ($file =~ /if_rmap.c/) { - $protocol = "VTYSH_RIPNGD"; + if ($defun_array[1] =~ m/ipv6/) { + $protocol = "VTYSH_RIPNGD"; + } else { + $protocol = "VTYSH_RIPD"; + } } } else { ($protocol) = ($file =~ /\/([a-z0-9]+)/); |