aboutsummaryrefslogtreecommitdiffstats
path: root/ip/iproute.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-07-16 10:20:31 -0700
committerStephen Hemminger <stephen@networkplumber.org>2013-07-16 10:20:31 -0700
commitcc71ad3ddd65129bde445710f98beebc3d2fcaf1 (patch)
tree48c575be1ce208d71e007d3ba740e2440afe2759 /ip/iproute.c
parentecefa08c108e707c10ddd54db0c4a570157bdcb2 (diff)
parentb37f2c895d7876416a45e608754a39fff47ddf29 (diff)
downloadplatform_external_iproute2-cc71ad3ddd65129bde445710f98beebc3d2fcaf1.tar.gz
platform_external_iproute2-cc71ad3ddd65129bde445710f98beebc3d2fcaf1.tar.bz2
platform_external_iproute2-cc71ad3ddd65129bde445710f98beebc3d2fcaf1.zip
Merge branch 'net-next-3.10'
Diffstat (limited to 'ip/iproute.c')
-rw-r--r--ip/iproute.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ip/iproute.c b/ip/iproute.c
index d3c56d3d..b069f1e0 100644
--- a/ip/iproute.c
+++ b/ip/iproute.c
@@ -52,6 +52,7 @@ static const char *mx_names[RTAX_MAX+1] = {
[RTAX_FEATURES] = "features",
[RTAX_RTO_MIN] = "rto_min",
[RTAX_INITRWND] = "initrwnd",
+ [RTAX_QUICKACK] = "quickack",
};
static void usage(void) __attribute__((noreturn));
@@ -79,6 +80,7 @@ static void usage(void)
fprintf(stderr, " [ window NUMBER] [ cwnd NUMBER ] [ initcwnd NUMBER ]\n");
fprintf(stderr, " [ ssthresh NUMBER ] [ realms REALM ] [ src ADDRESS ]\n");
fprintf(stderr, " [ rto_min TIME ] [ hoplimit NUMBER ] [ initrwnd NUMBER ]\n");
+ fprintf(stderr, " [ quickack BOOL ]\n");
fprintf(stderr, "TYPE := [ unicast | local | broadcast | multicast | throw |\n");
fprintf(stderr, " unreachable | prohibit | blackhole | nat ]\n");
fprintf(stderr, "TABLE_ID := [ local | main | default | all | NUMBER ]\n");
@@ -86,6 +88,7 @@ static void usage(void)
fprintf(stderr, "NHFLAGS := [ onlink | pervasive ]\n");
fprintf(stderr, "RTPROTO := [ kernel | boot | static | NUMBER ]\n");
fprintf(stderr, "TIME := NUMBER[s|ms]\n");
+ fprintf(stderr, "BOOL := [1|0]\n");
exit(-1);
}
@@ -885,6 +888,14 @@ static int iproute_modify(int cmd, unsigned flags, int argc, char **argv)
if (get_unsigned(&win, *argv, 0))
invarg("\"initrwnd\" value is invalid\n", *argv);
rta_addattr32(mxrta, sizeof(mxbuf), RTAX_INITRWND, win);
+ } else if (matches(*argv, "quickack") == 0) {
+ unsigned quickack;
+ NEXT_ARG();
+ if (get_unsigned(&quickack, *argv, 0))
+ invarg("\"quickack\" value is invalid\n", *argv);
+ if (quickack != 1 && quickack != 0)
+ invarg("\"quickack\" value should be 0 or 1\n", *argv);
+ rta_addattr32(mxrta, sizeof(mxbuf), RTAX_QUICKACK, quickack);
} else if (matches(*argv, "rttvar") == 0) {
unsigned win;
NEXT_ARG();