X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fflow.c;h=0a0e9f564a0adefade186f6b8d4098449a4e3ad6;hb=b2fda3effc787f265b5ad5dfa967ac00627bd075;hp=42e80abddd78652138ba2029f7f604d695a6ebcf;hpb=827ab71c97f25b77c94a1158834cdad35df6806f;p=sliver-openvswitch.git diff --git a/lib/flow.c b/lib/flow.c index 42e80abdd..0a0e9f564 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -306,7 +306,7 @@ invalid: } -/* Initializes 'flow' members from 'packet', 'tun_id', and 'in_port. +/* Initializes 'flow' members from 'packet', 'tun_id', and 'ofp_in_port'. * Initializes 'packet' header pointers as follows: * * - packet->l2 to the start of the Ethernet header. @@ -322,7 +322,7 @@ invalid: * present and has a correct length, and otherwise NULL. */ int -flow_extract(struct ofpbuf *packet, ovs_be64 tun_id, uint16_t in_port, +flow_extract(struct ofpbuf *packet, ovs_be64 tun_id, uint16_t ofp_in_port, struct flow *flow) { struct ofpbuf b = *packet; @@ -333,7 +333,7 @@ flow_extract(struct ofpbuf *packet, ovs_be64 tun_id, uint16_t in_port, memset(flow, 0, sizeof *flow); flow->tun_id = tun_id; - flow->in_port = in_port; + flow->in_port = ofp_in_port; packet->l2 = b.data; packet->l3 = NULL;