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.portmap2 - PORTMAPv2 decoding module

Author

       Jorge Mora (mora@netapp.com)

NFStest 3.2                                       21 March 2023                                      PORTMAP2(3)

Bugs

       No known bugs.

Classes

classCALLIT2args(baseobj.BaseObj)
       struct CALLIT2args {
           portmap_prog2 prog;
           unsigned int  vers;
           unsigned int  proc;
           opaque        args<>;
       };

       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.

   classCALLIT2res(baseobj.BaseObj)
       struct CALLIT2res {
           unsigned int port;
           opaque       res<>;
       };

       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.

   classDUMP2res(baseobj.BaseObj)
       struct DUMP2res {
           entry2 *entries;
       };

       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.

   classGETPORT2args(mapping)
       struct mapping {
           portmap_prog2 prog;
           unsigned int  vers;
           proto2        prot;
           unsigned int  port;
       };

   classGETPORT2res(baseobj.BaseObj)
       struct GETPORT2res {
           unsigned int result;
       };

       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.

   classPORTMAP2args(packet.utils.RPCload)
       union switch PORTMAP2args (portmap_proc2 procedure) {
           case const.PMAPPROC_NULL:
               void;
           case const.PMAPPROC_SET:
               SET2args opset;
           case const.PMAPPROC_UNSET:
               UNSET2args opunset;
           case const.PMAPPROC_GETPORT:
               GETPORT2args opgetport;
           case const.PMAPPROC_DUMP:
               void;
           case const.PMAPPROC_CALLIT:
               CALLIT2args opcallit;
       };

       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.

   classPORTMAP2res(packet.utils.RPCload)
       union switch PORTMAP2res (portmap_proc2 procedure) {
           case const.PMAPPROC_NULL:
               void;
           case const.PMAPPROC_SET:
               SET2res opset;
           case const.PMAPPROC_UNSET:
               UNSET2res opunset;
           case const.PMAPPROC_GETPORT:
               GETPORT2res opgetport;
           case const.PMAPPROC_DUMP:
               DUMP2res opdump;
           case const.PMAPPROC_CALLIT:
               CALLIT2res opcallit;
       };

       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.

   classSET2args(mapping)
       struct mapping {
           portmap_prog2 prog;
           unsigned int  vers;
           proto2        prot;
           unsigned int  port;
       };

   classSET2res(bool_res)
       struct bool_res {
           bool result;
       };

   classUNSET2args(mapping)
       struct mapping {
           portmap_prog2 prog;
           unsigned int  vers;
           proto2        prot;
           unsigned int  port;
       };

   classUNSET2res(bool_res)
       struct bool_res {
           bool result;
       };

   classbool_res(baseobj.BaseObj)
       struct bool_res {
           bool result;
       };

       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.

   classentry2(baseobj.BaseObj)
       struct entry2 {
           mapping map;
           entry2  *next;
       };

       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.

   classmapping(baseobj.BaseObj)
       struct mapping {
           portmap_prog2 prog;
           unsigned int  vers;
           proto2        prot;
           unsigned int  port;
       };

       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.

   classportmap_proc2(packet.utils.Enum)
       enum portmap_proc2

   classportmap_prog2(packet.utils.Enum)
       enum portmap_prog2

   classproto2(packet.utils.Enum)
       enum proto2

Name

       packet.nfs.portmap2 - PORTMAPv2 decoding module

See Also

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

See Also