aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iptunnel.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--networking/libiproute/iptunnel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c
index 1b1458e1e..9b96920dc 100644
--- a/networking/libiproute/iptunnel.c
+++ b/networking/libiproute/iptunnel.c
@@ -259,9 +259,9 @@ static int parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p)
259 NEXT_ARG(); 259 NEXT_ARG();
260 if (strcmp(*argv, "inherit") != 0) { 260 if (strcmp(*argv, "inherit") != 0) {
261 if (get_unsigned(&uval, *argv, 0)) 261 if (get_unsigned(&uval, *argv, 0))
262 invarg("invalid TTL\n", *argv); 262 invarg(*argv, "TTL");
263 if (uval > 255) 263 if (uval > 255)
264 invarg("TTL must be <=255\n", *argv); 264 invarg(*argv, "TTL must be <=255");
265 p->iph.ttl = uval; 265 p->iph.ttl = uval;
266 } 266 }
267 } else if (strcmp(*argv, "tos") == 0 || 267 } else if (strcmp(*argv, "tos") == 0 ||
@@ -270,7 +270,7 @@ static int parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p)
270 NEXT_ARG(); 270 NEXT_ARG();
271 if (strcmp(*argv, "inherit") != 0) { 271 if (strcmp(*argv, "inherit") != 0) {
272 if (rtnl_dsfield_a2n(&uval, *argv)) 272 if (rtnl_dsfield_a2n(&uval, *argv))
273 invarg("bad TOS value", *argv); 273 invarg(*argv, "TOS");
274 p->iph.tos = uval; 274 p->iph.tos = uval;
275 } else 275 } else
276 p->iph.tos = 1; 276 p->iph.tos = 1;