I mentioned this problem too:
http://community.zenoss.com/forums/viewtopic.php?t=3085

Today I found the source of the problem: it's the ntohs() behaviour 
on SPARC architecture. It returns negative integer, whereas unsigned short 
is expected:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=811295&group_id=5470

I'm already in contact with Kenneth Jiang, the pyip module developer, 
but haven't found yet how this problem could be solved.

Here I found an alternative library for ICMP packets, and it uses internal 
endian translation, instead of htons:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/409689
probably it makes sence to try it instead

------------------------
 Stanislav Sinyagin




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=10113#10113

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to