On Fri, Jul 15, 2011 at 2:57 PM, Garrett Cooper <yaneg...@gmail.com> wrote:
> On Fri, Jul 15, 2011 at 2:12 PM, Zack Little <zackl...@hotmail.com> wrote:
>>
>>
>> ________________________________
>>> inet_aton only groks IPv4 addresses :). Additional logic needs to
>>> be added to parse out the address via inet_addr -- I would introduce
>>> another argument (say 'A' instead of 'a'?) for IPv6 addresses so that
>>> way there's a clean method for dealing with IPv4 vs IPv6 (some
>>> revamping will need to occur because IPv6 addresses must be
>>> IPV6-TC::Ipv6Address types, for instance, from what I can see etc).
>>> I'll see if I can whip up a patch later on tonight because I know
>>> this is going to be a snag for my group in a couple of months :/..
>>> Thanks,
>>> -Garrett
>>
>> Garrett,
>>
>> I forgot to mention something if you end up choosing to change snmptrap to
>> support a new type of "A" to signify an IPv6 address.  For consistency's
>> sake would you also change the pass-through scripts to support a new type
>> that does the same thing?  Currently they only support an IPv4 type of
>> "ipaddress".
>
> I can suggest that in my diff, but I'm also a contributor to the
> project -- not a committer -- so the resulting diff committed may
> vary.

    Actually, this might not require any work. Ipv6Address is
TEXTUAL-CONVENTION, which maps to OCTET_STR, which is 's' on the
command line.
    Lo and behold, this works:

$ sudo snmptrap -M +$PWD -m all -v2c -c public fallout ''
NOTIFICATION-TEST-MIB::demo-notif IF-MIB::linkUp s ::1
$ echo $?
0
$

    I still think that there should be an extension via an RFC and/or
net-snmp to add strictness to the data type, but there's nothing
holding you back from trapping notifications.
    I'll create a patch to improve the documentation though.
Thanks,
-Garrett

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to