After digging more to the code I see clearly that only IPv4 is supported see
---------> comment. The question I have still got is when will trap sending
will support IPv6?

Thanks for the answer,

Shuki 

create_trap_session(char *sink, u_short sinkport,
                    char *com, int version, int pdutype)
{
    netsnmp_session session, *sesp;
    char           *peername = NULL;

    if ((peername = malloc(strlen(sink) + 4 + 32)) == NULL) {
        return 0;
    } else {
------------> Shuki:: This line create a peername for udp transport and not
udp6!!!
        snprintf(peername, strlen(sink) + 4 + 32, "udp:%s:%hu", sink,  
                 sinkport);
    }

    memset(&session, 0, sizeof(netsnmp_session));
    session.peername = peername;
    session.version = version;
    if (com) {
        session.community = (u_char *) com;
        session.community_len = strlen(com);
    }
    /*
     * for traps (not informs), there is no response. thus we don't
     * need to listen to any address for a response, and should
     * set the clientaddress to localhost, to reduce open ports.
     */
    if (pdutype != SNMP_MSG_INFORM)
        session.localname = "localhost";
    sesp = snmp_open(&session);
    free(peername);

    if (sesp) {
        return add_trap_session(sesp, pdutype,
                                (pdutype == SNMP_MSG_INFORM), version);
    }

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of sasson,
shuki
Sent: Friday, September 16, 2005 9:25 AM
To: Thomas Anders; [email protected]
Subject: RE: informsink trapsink and trap2sink support for IPv6.

I am using 5.2.1.2. It seems like the configuration handler for that command
will not even recognize an IPv6 address:

[EMAIL PROTECTED] .libs]$ ./snmpd -L -d -f
snmpd: create_trap_session: Unknown host (No such file or directory)
/usr/local/share/snmp/snmpd.conf: line 73: Error: cannot create informsink:
3ffe:80c0:22c:cafe:3::4
net-snmp: 1 error(s) in config file(s)
NET-SNMP version 5.2.1.2
Received TERM or STOP signal...  shutting down... 

I am running on Linux:

[EMAIL PROTECTED] .libs]$ uname -a
Linux eng172135 2.6.11-1.35_FC3smp #1 SMP Mon Jun 13 01:17:35 EDT 2005 i686
i686 i386 GNU/Linux

Thanks,
Shuki 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas
Anders
Sent: Friday, September 16, 2005 5:44 AM
To: [email protected]
Subject: Re: informsink trapsink and trap2sink support for IPv6.

sasson, shuki wrote:
> 1.      Does sending traps (informs) mechanism supports IPv6?

It should. What net-snmp version are you using? If it's older, can you 
try a later one?


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to