From 8fec720d1371b5a15abdc02e173c746f2b8088d9 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 22 Mar 2011 17:06:07 -0700 Subject: [PATCH] ofproto: Allow tunnel id to be in decimal or hex for trace command. Suggested-by: Pankaj Thakkar --- ofproto/ofproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 6f2b43ca..72ec8dd9 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -5191,7 +5191,7 @@ ofproto_unixctl_trace(struct unixctl_conn *conn, const char *args_, goto exit; } - tun_id = htonll(strtoull(tun_id_s, NULL, 10)); + tun_id = htonll(strtoull(tun_id_s, NULL, 0)); in_port = ofp_port_to_odp_port(atoi(in_port_s)); packet_s = ofpbuf_put_hex(&packet, packet_s, NULL); -- 2.30.2