NLM the cookie is always present in NLM replies and it is the first blob
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 10 Mar 2012 11:19:06 +0000 (22:19 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 10 Mar 2012 11:19:06 +0000 (22:19 +1100)
nlm/nlm.x

index e8a28804fe5cf3b691891885565afaf94880534e..fb0d0613080e6b1314f59534d8c2d1336295a34e 100644 (file)
--- 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;