diff options
| author | Russ White <russ@riw.us> | 2019-05-16 10:04:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-16 10:04:14 -0400 |
| commit | cc25952f2a34bcae4cbf6a3e5d40cfc57d4fb250 (patch) | |
| tree | 5ffa168c8d91e120fb3e8e07502e471dd2e4cc9c /zebra/main.c | |
| parent | 6f33cbff181010025cb2c9f80aad3c12696e19b0 (diff) | |
| parent | b3f2b59020aeb0d04f7867585766732d54026edf (diff) | |
Merge pull request #4327 from sworleys/Move-Multipath-Num
zebra: Move multipath_num into zrouter
Diffstat (limited to 'zebra/main.c')
| -rw-r--r-- | zebra/main.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/zebra/main.c b/zebra/main.c index 184e798bd0..cff5e06933 100644 --- a/zebra/main.c +++ b/zebra/main.c @@ -119,8 +119,6 @@ struct zebra_privs_t zserv_privs = { .cap_num_p = array_size(_caps_p), .cap_num_i = 0}; -unsigned int multipath_num = MULTIPATH_NUM; - /* SIGHUP handler. */ static void sighup(void) { @@ -322,9 +320,9 @@ int main(int argc, char **argv) keep_kernel_mode = 1; break; case 'e': - multipath_num = atoi(optarg); - if (multipath_num > MULTIPATH_NUM - || multipath_num <= 0) { + zrouter.multipath_num = atoi(optarg); + if (zrouter.multipath_num > MULTIPATH_NUM + || zrouter.multipath_num <= 0) { flog_err( EC_ZEBRA_BAD_MULTIPATH_NUM, "Multipath Number specified must be less than %d and greater than 0", |
