summaryrefslogtreecommitdiffstats
path: root/ip
diff options
context:
space:
mode:
authororg[shemminger]!shemminger <org[shemminger]!shemminger>2004-06-07 22:02:48 +0000
committerorg[shemminger]!shemminger <org[shemminger]!shemminger>2004-06-07 22:02:48 +0000
commit4fb466f9446d42fe3591520bf1b1e9ab7ee54f71 (patch)
tree9889b80d3210a1cf4147a699689cd1b4028045d3 /ip
parent15a79f12cdb9a0f076837c1535cb822e376b33db (diff)
Import patch iproute2-2.4.7-hex.patch
(Logical change 1.8)
Diffstat (limited to 'ip')
-rw-r--r--ip/iprule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ip/iprule.c b/ip/iprule.c
index 457864f8..0edba5b5 100644
--- a/ip/iprule.c
+++ b/ip/iprule.c
@@ -120,7 +120,7 @@ int print_rule(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
fprintf(fp, "tos %s ", rtnl_dsfield_n2a(r->rtm_tos, b1, sizeof(b1)));
}
if (tb[RTA_PROTOINFO]) {
- fprintf(fp, "fwmark %8x ", *(__u32*)RTA_DATA(tb[RTA_PROTOINFO]));
+ fprintf(fp, "fwmark %#x ", *(__u32*)RTA_DATA(tb[RTA_PROTOINFO]));
}
if (tb[RTA_IIF]) {
@@ -245,7 +245,7 @@ int iprule_modify(int cmd, int argc, char **argv)
} else if (strcmp(*argv, "fwmark") == 0) {
__u32 fwmark;
NEXT_ARG();
- if (get_u32(&fwmark, *argv, 16))
+ if (get_u32(&fwmark, *argv, 0))
invarg("fwmark value is invalid\n", *argv);
addattr32(&req.n, sizeof(req), RTA_PROTOINFO, fwmark);
} else if (matches(*argv, "realms") == 0) {