diff options
| author | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-23 00:01:25 +0000 |
|---|---|---|
| committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-23 00:01:25 +0000 |
| commit | 558e4c284b30ac90b7c8a9e2f8cefd368fe98c9f (patch) | |
| tree | d8685ad59e537b28090c61c7a84fd3174da0553c /ripd/rip_debug.c | |
| parent | dd4f9f99ed4f5012e11a1c1eed0180345217eaa9 (diff) | |
ripd: argv update
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'ripd/rip_debug.c')
| -rw-r--r-- | ripd/rip_debug.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ripd/rip_debug.c b/ripd/rip_debug.c index 81d74bf852..0567f4f205 100644 --- a/ripd/rip_debug.c +++ b/ripd/rip_debug.c @@ -98,9 +98,9 @@ DEFUN (debug_rip_packet_direct, "RIP send packet\n") { rip_debug_packet |= RIP_DEBUG_PACKET; - if (strncmp ("send", argv[0], strlen (argv[0])) == 0) + if (strncmp ("send", argv[3]->arg, strlen (argv[3]->arg)) == 0) rip_debug_packet |= RIP_DEBUG_SEND; - if (strncmp ("recv", argv[0], strlen (argv[0])) == 0) + if (strncmp ("recv", argv[3]->arg, strlen (argv[3]->arg)) == 0) rip_debug_packet |= RIP_DEBUG_RECV; return CMD_SUCCESS; } @@ -150,14 +150,14 @@ DEFUN (no_debug_rip_packet_direct, "RIP option set for receive packet\n" "RIP option set for send packet\n") { - if (strncmp ("send", argv[0], strlen (argv[0])) == 0) + if (strncmp ("send", argv[4]->arg, strlen (argv[4]->arg)) == 0) { if (IS_RIP_DEBUG_RECV) rip_debug_packet &= ~RIP_DEBUG_SEND; else rip_debug_packet = 0; } - else if (strncmp ("recv", argv[0], strlen (argv[0])) == 0) + else if (strncmp ("recv", argv[4]->arg, strlen (argv[4]->arg)) == 0) { if (IS_RIP_DEBUG_SEND) rip_debug_packet &= ~RIP_DEBUG_RECV; |
