From 2faefcac23a1e1d5c600688a87753aae8cab2f14 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 10 Mar 2012 22:19:06 +1100 Subject: [PATCH] NLM the cookie is always present in NLM replies and it is the first blob --- nlm/nlm.x | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/nlm/nlm.x b/nlm/nlm.x index e8a2880..fb0d061 100644 --- a/nlm/nlm.x +++ b/nlm/nlm.x @@ -51,18 +51,22 @@ struct nlm4_share { }; -struct nlm4_testres_ok { - nlm_cookie cookie; +struct nlm4_testres_denied { nlm4_holder holder; }; -union NLM4_TESTres switch (nlmstat4 status) { - case NLM4_GRANTED: - nlm4_testres_ok lock; +union nlm4_testreply switch (nlmstat4 status) { + case NLM4_DENIED: + nlm4_testres_denied lock; default: void; }; +struct NLM4_TESTres { + nlm_cookie cookie; + nlm4_testreply reply; +}; + struct NLM4_TESTargs { nlm_cookie cookie; bool exclusive; -- 2.34.1