diff options
author | Juliusz Chroboczek <jch@pps.jussieu.fr> | 2012-02-11 13:34:30 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2012-03-25 17:06:54 +0100 |
commit | b58871ee4d54989c16a60a839a592c9c4ab19cc3 (patch) | |
tree | 0416cf9ff1b2125463a760aff247c52beac329bc /babeld/babeld.c | |
parent | 52d54422bdc0b70356d84a38a0ce15ba5dea03e0 (diff) |
babeld: remove port and group setting commands.
They didn't work anyway, since they're called too late.
Diffstat (limited to 'babeld/babeld.c')
-rw-r--r-- | babeld/babeld.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/babeld/babeld.c b/babeld/babeld.c index 14990a68..f42a81b6 100644 --- a/babeld/babeld.c +++ b/babeld/babeld.c @@ -629,53 +629,6 @@ DEFUN (no_router_babel, return CMD_SUCCESS; } -/* [Babel Command] */ -DEFUN (babel_set_protocol_group, - babel_set_protocol_group_cmd, - "protocol group ADDR", - "Set the protocol group, default is ff02::1:6.\n" - "IPv6 address") -{ - int ret; - struct prefix p; - - ret = str2prefix (argv[0], &p); - - /* Given string is: */ - if (ret) { /* an IPv4 or v6 network */ - if (p.family != AF_INET6) { - return CMD_WARNING; - } - in6addr_to_uchar(protocol_group, &p.u.prefix6); - } else { /* an interface name */ - return CMD_WARNING; - } - - if (ret < 0) { - vty_out (vty, "%s must be an ipv6 address%s", argv[0], - VTY_NEWLINE); - return CMD_WARNING; - } - - return CMD_SUCCESS; -} - -/* [Babel Command] */ -DEFUN (babel_set_protocol_port, - babel_set_protocol_port_cmd, - "protocol port <1-65535>", - "Set the protocol port (default is defined in RFC).\n" - "IPv6 address") -{ - int port; - - VTY_GET_INTEGER_RANGE("port", port, argv[0], 1, 0xFFFF); - - protocol_port = port; - return CMD_SUCCESS; -} - - void babeld_quagga_init(void) { |