diff options
author | Alin Serdean <aserdean@cloudbasesolutions.com> | 2016-01-04 23:04:11 +0000 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-01-04 16:04:32 -0800 |
commit | ad61c98d7a41f706eda54731080aef95f7d31fb4 (patch) | |
tree | ce75676bcc8375964c09a6c8e6791b55822a399e | |
parent | d8d1ef2f07019fa216d61439344c5b84f8a64f22 (diff) | |
download | openvswitch-ad61c98d7a41f706eda54731080aef95f7d31fb4.tar.gz |
datapath-windows: Fix subscribe/unsubscribe packets
The policy of the subscribe packets is defined by the following:
const NL_POLICY policy[] = {
[OVS_NL_ATTR_PACKET_PID] = {.type = NL_A_U32 },
[OVS_NL_ATTR_PACKET_SUBSCRIBE] = {.type = NL_A_U8 }
};
Switch the value of the join operation with the one from the policy.
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
-rw-r--r-- | datapath-windows/ovsext/User.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/datapath-windows/ovsext/User.c b/datapath-windows/ovsext/User.c index 42af7f32d..04d22949e 100644 --- a/datapath-windows/ovsext/User.c +++ b/datapath-windows/ovsext/User.c @@ -1109,7 +1109,7 @@ fail: */ NTSTATUS OvsSubscribePacketCmdHandler(POVS_USER_PARAMS_CONTEXT usrParamsCtx, - UINT32 *replyLen) + UINT32 *replyLen) { NDIS_STATUS status; BOOLEAN rc; @@ -1135,7 +1135,7 @@ OvsSubscribePacketCmdHandler(POVS_USER_PARAMS_CONTEXT usrParamsCtx, goto done; } - join = NlAttrGetU8(attrs[OVS_NL_ATTR_PACKET_PID]); + join = NlAttrGetU8(attrs[OVS_NL_ATTR_PACKET_SUBSCRIBE]); pid = NlAttrGetU32(attrs[OVS_NL_ATTR_PACKET_PID]); /* The socket subscribed with must be the same socket we perform receive*/ |