OoO En cette matinée pluvieuse du dimanche 16 novembre 2008, vers 10:16,
je disais:

[privilege separation]
>> Would  it be possible  to write  a custom  transport which  inherits and
>> replaces  Unix one  with a  netsnmp_unix_transport() function  that will
>> handle correctly  the opening  of the socket?  From the code  source, it
>> seems that I  could use netsnmp_tdomain_register. How to  ensure that my
>> new transport will override the actual one?

> I am in the  way of solving this problem. I register  my own domain with
> the  same OID  as  Unix domain  and  therefore the  registration of  the
> builtin Unix domain will fail and my implementation will be used.

I cannot "inherit" of methods from snmpUnixDomain since most of them are
not public but I have  rewritten simpler form of them (assuming local=0,
a lot of code  is not needed as well as the  opaque data structure). The
new   "netsnmp_unix_transport"  calls   the  monitor   which   does  the
"socket+connect"  part and  pass back  the file  descriptor to  the main
process.
-- 
BOFH excuse #357:
I'd love to help you -- it's just that the Boss won't let me near the computer.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to