NAME
netsnmpreadonly - make your handler readonly automatically.
FFuunnccttiioonnss nneettssnnmmppmmiibbhhaannddlleerr * nneettssnnmmppggeettrreeaaddoonnllyyhhaannddlleerr (void) returns a readonly handler that can be injected into a given handler chain. int nneettssnnmmpprreeaaddoonnllyyhheellppeerr (nneettssnnmmppmmiibbhhaannddlleerr *handler, nneettssnnmmpphhaannddlleerrrreeggiissttrraattiioonn *reginfo, nneettssnnmmppaaggeennttrreeqquueessttiinnffoo *reqinfo, nneettssnnmmpprreeqquueessttiinnffoo *requests) void nneettssnnmmppiinniittrreeaaddoonnllyyhheellppeerr (void) initializes the readonly helper which then registers a readonlyhandler as a run-time injectable handler for configuration file
use. DDeettaaiilleedd DDeessccrriippttiioonn The only purpose of this handler is to return an appropriate error for any requests passed to it in a SET mode. Inserting it into your handler chain will ensure you're never asked to perform a SET request so you can ignore those error conditions. FFuunnccttiioonn DDooccuummeennttaattiioonn nneettssnnmmppmmiibbhhaannddlleerr** nneettssnnmmppggeettrreeaaddoonnllyyhhaannddlleerr ((vvooiidd)) returns a readonly handler that can be injected into a given handler chain. Definition at line 32 of file readonly.c. References netsnmpmibhandlers::flags, netsnmpcreatehandler(), and netsnmpmibhandler. Referenced by netsnmpinitreadonlyhelper(), netsnmpregisterreadonlyinstance(), netsnmpregisterreadonlyscalar(), and netsnmpregisterreadonlytabledata(). vvooiidd nneettssnnmmppiinniittrreeaaddoonnllyyhheellppeerr ((vvooiidd)) initializes the readonly helper which then registers a readonlyhandler as a run-time injectable handler for configuration file use.
Definition at line 86 of file readonly.c. References netsnmpgetreadonlyhandler(), and netsnmpregisterhandlerbyname().net-snmp readonly: 2m4akJeanyo2u0r05handler readonly automatically(3)