Thread (22 messages) 22 messages, 3 authors, 2007-12-18

Re: [PATCHv7 iproute2 2/2] Interface group as new ip link option

From: Jarek Poplawski <hidden>
Date: 2007-12-01 22:09:21

Laszlo Attila Toth wrote, On 11/29/2007 05:11 PM:
Interfaces can be grouped and each group has an unique positive integer ID.
It can be set via ip link. Symbolic names can be specified in
/etc/iproute2/rt_ifgroup. Any value of unsigned int32 is valid.
...
quoted hunk ↗ jump to hunk
diff --git a/lib/rt_names.c b/lib/rt_names.c
index 8d019a0..ec6638c 100644
--- a/lib/rt_names.c
+++ b/lib/rt_names.c
@@ -439,10 +439,72 @@ int rtnl_dsfield_a2n(__u32 *id, char *arg)
 		}
 	}
 
-	res = strtoul(arg, &end, 16);
+	res = strtoul(arg, &end, 0);

Won't this break any scripts?

Jarek P.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help