logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

packet.nfs.nlm4 - NLMv4 decoding module

Author

       Jorge Mora (mora@netapp.com)

NFStest 3.2                                       21 March 2023                                          NLM4(3)

Bugs

       No known bugs.

Classes

classCANCEL4args(nlm4_cancargs)
       struct nlm4_cancargs {
           netobj    cookie;
           bool      block;
           bool      exclusive;
           nlm4_lock locker;
       };

   classCANCEL4res(nlm4_res)
       struct nlm4_res {
           netobj     cookie;
           nlm4_stats status;
       };

   classCANCEL_MSG4args(nlm4_cancargs)
       struct nlm4_cancargs {
           netobj    cookie;
           bool      block;
           bool      exclusive;
           nlm4_lock locker;
       };

   classCANCEL_RES4args(nlm4_res)
       struct nlm4_res {
           netobj     cookie;
           nlm4_stats status;
       };

   classFREE_ALL4args(baseobj.BaseObj)
       struct FREE_ALL4args {
           string name<MAXNAMELEN>;
           int32  state;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classGRANTED4args(nlm4_testargs)
       struct nlm4_testargs {
           netobj    cookie;
           bool      exclusive;
           nlm4_lock locker;
       };

   classGRANTED4res(nlm4_res)
       struct nlm4_res {
           netobj     cookie;
           nlm4_stats status;
       };

   classGRANTED_MSG4args(nlm4_testargs)
       struct nlm4_testargs {
           netobj    cookie;
           bool      exclusive;
           nlm4_lock locker;
       };

   classGRANTED_RES4args(nlm4_res)
       struct nlm4_res {
           netobj     cookie;
           nlm4_stats status;
       };

   classLOCK4args(nlm4_lockargs)
       struct nlm4_lockargs {
           netobj    cookie;
           bool      block;
           bool      exclusive;
           nlm4_lock locker;
           bool      reclaim;    /* used for recovering locks */
           int       state;      /* specify local status monitor state */
       };

   classLOCK4res(nlm4_res)
       struct nlm4_res {
           netobj     cookie;
           nlm4_stats status;
       };

   classLOCK_MSG4args(nlm4_lockargs)
       struct nlm4_lockargs {
           netobj    cookie;
           bool      block;
           bool      exclusive;
           nlm4_lock locker;
           bool      reclaim;    /* used for recovering locks */
           int       state;      /* specify local status monitor state */
       };

   classLOCK_RES4args(nlm4_res)
       struct nlm4_res {
           netobj     cookie;
           nlm4_stats status;
       };

   classNLM4args(packet.utils.RPCload)
       union switch NLM4args (nlm_proc4 procedure) {
           case const.NLMPROC4_NULL:
               void;
           case const.NLMPROC4_TEST:
               TEST4args optest;
           case const.NLMPROC4_LOCK:
               LOCK4args oplock;
           case const.NLMPROC4_CANCEL:
               CANCEL4args opcancel;
           case const.NLMPROC4_UNLOCK:
               UNLOCK4args opunlock;
           case const.NLMPROC4_GRANTED:
               GRANTED4args opgranted;
           case const.NLMPROC4_TEST_MSG:
               TEST_MSG4args optest_msg;
           case const.NLMPROC4_LOCK_MSG:
               LOCK_MSG4args oplock_msg;
           case const.NLMPROC4_CANCEL_MSG:
               CANCEL_MSG4args opcancel_msg;
           case const.NLMPROC4_UNLOCK_MSG:
               UNLOCK_MSG4args opunlock_msg;
           case const.NLMPROC4_GRANTED_MSG:
               GRANTED_MSG4args opgranted_msg;
           case const.NLMPROC4_TEST_RES:
               TEST_RES4args optest_res;
           case const.NLMPROC4_LOCK_RES:
               LOCK_RES4args oplock_res;
           case const.NLMPROC4_CANCEL_RES:
               CANCEL_RES4args opcancel_res;
           case const.NLMPROC4_UNLOCK_RES:
               UNLOCK_RES4args opunlock_res;
           case const.NLMPROC4_GRANTED_RES:
               GRANTED_RES4args opgranted_res;
           case const.NLMPROC4_SHARE:
               SHARE4args opshare;
           case const.NLMPROC4_UNSHARE:
               UNSHARE4args opunshare;
           case const.NLMPROC4_NM_LOCK:
               NM_LOCK4args opnm_lock;
           case const.NLMPROC4_FREE_ALL:
               FREE_ALL4args opfree_all;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack,procedure)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classNLM4res(packet.utils.RPCload)
       union switch NLM4res (nlm_proc4 procedure) {
           case const.NLMPROC4_NULL:
               void;
           case const.NLMPROC4_TEST:
               TEST4res optest;
           case const.NLMPROC4_LOCK:
               LOCK4res oplock;
           case const.NLMPROC4_CANCEL:
               CANCEL4res opcancel;
           case const.NLMPROC4_UNLOCK:
               UNLOCK4res opunlock;
           case const.NLMPROC4_GRANTED:
               GRANTED4res opgranted;
           case const.NLMPROC4_TEST_MSG:
               void;
           case const.NLMPROC4_LOCK_MSG:
               void;
           case const.NLMPROC4_CANCEL_MSG:
               void;
           case const.NLMPROC4_UNLOCK_MSG:
               void;
           case const.NLMPROC4_GRANTED_MSG:
               void;
           case const.NLMPROC4_TEST_RES:
               void;
           case const.NLMPROC4_LOCK_RES:
               void;
           case const.NLMPROC4_CANCEL_RES:
               void;
           case const.NLMPROC4_UNLOCK_RES:
               void;
           case const.NLMPROC4_GRANTED_RES:
               void;
           case const.NLMPROC4_SHARE:
               SHARE4res opshare;
           case const.NLMPROC4_UNSHARE:
               UNSHARE4res opunshare;
           case const.NLMPROC4_NM_LOCK:
               NM_LOCK4res opnm_lock;
           case const.NLMPROC4_FREE_ALL:
               void;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack,procedure)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classNM_LOCK4args(nlm4_lockargs)
       struct nlm4_lockargs {
           netobj    cookie;
           bool      block;
           bool      exclusive;
           nlm4_lock locker;
           bool      reclaim;    /* used for recovering locks */
           int       state;      /* specify local status monitor state */
       };

   classNM_LOCK4res(nlm4_res)
       struct nlm4_res {
           netobj     cookie;
           nlm4_stats status;
       };

   classSHARE4args(nlm4_shareargs)
       struct nlm4_shareargs {
           netobj     cookie;
           nlm4_share share;
           bool       reclaim;
       };

   classSHARE4res(nlm4_shareres)
       struct nlm4_shareres {
           netobj     cookie;
           nlm4_stats status;
           int        sequence;
       };

   classTEST4args(nlm4_testargs)
       struct nlm4_testargs {
           netobj    cookie;
           bool      exclusive;
           nlm4_lock locker;
       };

   classTEST4res(nlm4_testres)
       struct nlm4_testres {
           netobj        cookie;
           nlm4_testrply stat;
       };

   classTEST_MSG4args(nlm4_testargs)
       struct nlm4_testargs {
           netobj    cookie;
           bool      exclusive;
           nlm4_lock locker;
       };

   classTEST_RES4args(nlm4_testres)
       struct nlm4_testres {
           netobj        cookie;
           nlm4_testrply stat;
       };

   classUNLOCK4args(nlm4_unlockargs)
       struct nlm4_unlockargs {
           netobj    cookie;
           nlm4_lock locker;
       };

   classUNLOCK4res(nlm4_res)
       struct nlm4_res {
           netobj     cookie;
           nlm4_stats status;
       };

   classUNLOCK_MSG4args(nlm4_unlockargs)
       struct nlm4_unlockargs {
           netobj    cookie;
           nlm4_lock locker;
       };

   classUNLOCK_RES4args(nlm4_res)
       struct nlm4_res {
           netobj     cookie;
           nlm4_stats status;
       };

   classUNSHARE4args(nlm4_shareargs)
       struct nlm4_shareargs {
           netobj     cookie;
           nlm4_share share;
           bool       reclaim;
       };

   classUNSHARE4res(nlm4_shareres)
       struct nlm4_shareres {
           netobj     cookie;
           nlm4_stats status;
           int        sequence;
       };

   classfsh4_access(packet.utils.Enum)
       enum fsh4_access

   classfsh4_mode(packet.utils.Enum)
       enum fsh4_mode

   classnfs_bool(packet.utils.Enum)
       enum nfs_bool

   classnlm4_cancargs(baseobj.BaseObj)
       struct nlm4_cancargs {
           netobj    cookie;
           bool      block;
           bool      exclusive;
           nlm4_lock locker;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classnlm4_holder(baseobj.BaseObj)
       struct nlm4_holder {
           bool   exclusive;
           int32  svid;
           strobj oh;
           uint64 offset;
           uint64 length;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classnlm4_lock(baseobj.BaseObj)
       struct nlm4_lock {
           string owner<LM_MAXSTRLEN>;
           nlm_fh fh;
           strobj oh;
           int32  svid;
           uint64 offset;
           uint64 length;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classnlm4_lockargs(baseobj.BaseObj)
       struct nlm4_lockargs {
           netobj    cookie;
           bool      block;
           bool      exclusive;
           nlm4_lock locker;
           bool      reclaim;    /* used for recovering locks */
           int       state;      /* specify local status monitor state */
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classnlm4_res(baseobj.BaseObj)
       struct nlm4_res {
           netobj     cookie;
           nlm4_stats status;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classnlm4_share(baseobj.BaseObj)
       struct nlm4_share {
           string      owner<LM_MAXSTRLEN>;
           nlm_fh      fh;
           strobj      oh;
           fsh4_mode   mode;
           fsh4_access access;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classnlm4_shareargs(baseobj.BaseObj)
       struct nlm4_shareargs {
           netobj     cookie;
           nlm4_share share;
           bool       reclaim;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classnlm4_shareres(baseobj.BaseObj)
       struct nlm4_shareres {
           netobj     cookie;
           nlm4_stats status;
           int        sequence;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classnlm4_stats(packet.utils.Enum)
       enum nlm4_stats

   classnlm4_testargs(baseobj.BaseObj)
       struct nlm4_testargs {
           netobj    cookie;
           bool      exclusive;
           nlm4_lock locker;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classnlm4_testres(baseobj.BaseObj)
       struct nlm4_testres {
           netobj        cookie;
           nlm4_testrply stat;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classnlm4_testrply(baseobj.BaseObj)
       union switch nlm4_testrply (nlm4_stats status) {
           case const.NLM4_DENIED:
               nlm4_holder denied;
           default:
               void;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classnlm4_unlockargs(baseobj.BaseObj)
       struct nlm4_unlockargs {
           netobj    cookie;
           nlm4_lock locker;
       };

       Methodsdefinedhere:
       ---------------------

       __init__(self,unpack)
       Constructor

       Initialize object's private data according to the arguments given.
       Arguments can be given as positional, named arguments or a
       combination of both.

   classnlm_proc4(packet.utils.Enum)
       enum nlm_proc4

Functions

netobj(unpack)nlm_fh(unpack)strobj(unpack)

Name

       packet.nfs.nlm4 - NLMv4 decoding module

See Also

baseobj(3),packet.nfs.nlm4_const(3),packet.unpack(3),packet.utils(3)

See Also