@@ -104,7 +104,8 @@ NetlinkCmdHandler OvsGetNetdevCmdHandler,
OvsPendPacketCmdHandler,
OvsSubscribePacketCmdHandler,
OvsReadPacketCmdHandler,
- OvsCtDeleteCmdHandler;
+ OvsCtDeleteCmdHandler,
+ OvsCtDumpCmdHandler;
static NTSTATUS HandleGetDpTransaction(POVS_USER_PARAMS_CONTEXT usrParamsCtx,
UINT32 *replyLen);
@@ -288,7 +289,13 @@ NETLINK_CMD nlCtFamilyCmdOps[] = {
{ .cmd = IPCTNL_MSG_CT_DELETE,
.handler = OvsCtDeleteCmdHandler,
.supportedDevOp = OVS_TRANSACTION_DEV_OP,
- .validateDpIndex = TRUE
+ .validateDpIndex = FALSE
+ },
+ { .cmd = IPCTNL_MSG_CT_GET,
+ .handler = OvsCtDumpCmdHandler,
+ .supportedDevOp = OVS_TRANSACTION_DEV_OP |
+ OVS_WRITE_DEV_OP | OVS_READ_DEV_OP,
+ .validateDpIndex = FALSE
}
};
@@ -904,6 +911,7 @@ OvsDeviceControl(PDEVICE_OBJECT deviceObject,
ASSERT(ovsMsg);
switch (ovsMsg->nlMsg.nlmsgType) {
+ case NFNL_TYPE_CT_GET:
case NFNL_TYPE_CT_DEL:
nlFamilyOps = &nlCtFamilyOps;
break;
This will be used by userspace for dumping conntrack entries - "ovs-dpctl dump-conntrack". Signed-off-by: Sairam Venugopal <vsairam@vmware.com> --- datapath-windows/ovsext/Datapath.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)