From 2f98b0b7e77b44e9ff9a57581d7d523ca1c113ab Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 11 Oct 2011 06:58:49 -0700 Subject: [PATCH] meta-flow: Fix mf_get_value() retrieval of register values. --- lib/meta-flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/meta-flow.c b/lib/meta-flow.c index f2f13484..d5226f02 100644 --- a/lib/meta-flow.c +++ b/lib/meta-flow.c @@ -716,7 +716,7 @@ mf_get_value(const struct mf_field *mf, const struct flow *flow, #if FLOW_N_REGS > 5 #error #endif - value->be32 = htonl(flow->regs[0]); + value->be32 = htonl(flow->regs[mf->id - MFF_REG0]); break; case MFF_ETH_SRC: -- 2.30.2