aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iproute.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r--networking/libiproute/iproute.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index f7209b126..0d2914405 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -403,7 +403,7 @@ IF_FEATURE_IP_RULE(ARG_table,)
403 uint32_t prot; 403 uint32_t prot;
404 NEXT_ARG(); 404 NEXT_ARG();
405 if (rtnl_rtprot_a2n(&prot, *argv)) 405 if (rtnl_rtprot_a2n(&prot, *argv))
406 invarg(*argv, "protocol"); 406 invarg_1_to_2(*argv, "protocol");
407 req.r.rtm_protocol = prot; 407 req.r.rtm_protocol = prot;
408 ok |= proto_ok; 408 ok |= proto_ok;
409#if ENABLE_FEATURE_IP_RULE 409#if ENABLE_FEATURE_IP_RULE
@@ -411,7 +411,7 @@ IF_FEATURE_IP_RULE(ARG_table,)
411 uint32_t tid; 411 uint32_t tid;
412 NEXT_ARG(); 412 NEXT_ARG();
413 if (rtnl_rttable_a2n(&tid, *argv)) 413 if (rtnl_rttable_a2n(&tid, *argv))
414 invarg(*argv, "table"); 414 invarg_1_to_2(*argv, "table");
415 req.r.rtm_table = tid; 415 req.r.rtm_table = tid;
416#endif 416#endif
417 } else if (arg == ARG_dev || arg == ARG_oif) { 417 } else if (arg == ARG_dev || arg == ARG_oif) {
@@ -597,7 +597,7 @@ static int iproute_list_or_flush(char **argv, int flush)
597 //G_filter.protocolmask = -1; 597 //G_filter.protocolmask = -1;
598 if (rtnl_rtprot_a2n(&prot, *argv)) { 598 if (rtnl_rtprot_a2n(&prot, *argv)) {
599 if (index_in_strings(keywords, *argv) != KW_all) 599 if (index_in_strings(keywords, *argv) != KW_all)
600 invarg(*argv, "protocol"); 600 invarg_1_to_2(*argv, "protocol");
601 prot = 0; 601 prot = 0;
602 //G_filter.protocolmask = 0; 602 //G_filter.protocolmask = 0;
603 } 603 }
@@ -622,10 +622,10 @@ static int iproute_list_or_flush(char **argv, int flush)
622#if ENABLE_FEATURE_IP_RULE 622#if ENABLE_FEATURE_IP_RULE
623 uint32_t tid; 623 uint32_t tid;
624 if (rtnl_rttable_a2n(&tid, *argv)) 624 if (rtnl_rttable_a2n(&tid, *argv))
625 invarg(*argv, "table"); 625 invarg_1_to_2(*argv, "table");
626 G_filter.tb = tid; 626 G_filter.tb = tid;
627#else 627#else
628 invarg(*argv, "table"); 628 invarg_1_to_2(*argv, "table");
629#endif 629#endif
630 } 630 }
631 } else if (arg == KW_cache) { 631 } else if (arg == KW_cache) {
@@ -932,7 +932,7 @@ int FAST_FUNC do_iproute(char **argv)
932 case 11: /* flush */ 932 case 11: /* flush */
933 return iproute_list_or_flush(argv+1, 1); 933 return iproute_list_or_flush(argv+1, 1);
934 default: 934 default:
935 invarg(*argv, applet_name); 935 invarg_1_to_2(*argv, applet_name);
936 } 936 }
937 937
938 return iproute_modify(cmd, flags, argv+1); 938 return iproute_modify(cmd, flags, argv+1);