Hello,
as I looked quickly at that code, seems to be from the initial snmpstats
or ratelimit module, moved in the core (during openser and then as lib
on the way to v3.0) because the other module needed it - perhaps got to
statistics part because was commonly used by the two modules.
In the meanwhile, Andrei reimplemented the old openser statistics with
the new counter api, so the statistics code in libkcore was trimmed a
lot (I guess the copyright line in the file is no longer valid, if one
checks in commit history who added the remaining code). The idea I
wanted to come to is that there was never a relation with IPv6 (sockets)
from the core, as it came there via a module during the openser times.
Otherwise, the core should be fully IPv6 enabled (since 2002 :-) ).
On the other hand is not easy to figure out which 'not used in IPv6'
module could get some issues there - testing in production on IPv6 is
the key to prove each use case.
I saw you fixed it already, thanks.
Cheers,
Daniel
On 4/6/13 4:07 PM, Olle E. Johansson wrote:
Hi!
I just tested and noticed that SNMPstats doesn't list any IPv6 interfaces we listen
to. The OID seems to contain the IPv4 address, which doesn't really make sense in IPv6
and the code (using lib/kcore/statistics.h) assumes an IP address is four bytes long. I
will have to google around to find out where this syntax came from and how we can
implement something supporting IPv6 too.
I will start a wiki page where we can list modules and core code that has IPv6 issues
that needs to be fixed. We need to make sure that new modules does not have any problems
with IPv6 and also new transports, like WS.
Cheers!
/O
_______________________________________________
sr-dev mailing list
sr-dev(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
-
http://conference.kamailio.com -