From: Ben Pfaff Date: Tue, 11 Oct 2011 13:58:49 +0000 (-0700) Subject: meta-flow: Fix mf_get_value() retrieval of register values. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f98b0b7e77b44e9ff9a57581d7d523ca1c113ab;p=openvswitch meta-flow: Fix mf_get_value() retrieval of register values. --- 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: