Public bug reported:
considering that I wanted to find my IP address in python, i ran a
modified version of : http://mail.python.org/pipermail/python-
list/1999-August/009100.html
I encountered the following error : IN.SIOCGIFADDR is not defined in IN.py. In
fact, IN.py lacks *many* values from original SIOC*...
IN.py says it was generated from /usr/include/netinet/in.h, but this file has
*no* references at all to SIOC*. On other hand, I think that
/usr/include/linux/sockios.h is the right file to use to have all SIOC* defines.
Anyway, if I use 0x8915 in my code, in place of IN.SIOCGIFADDR, the code
works as expected, but that's weird... There is an inconsistency
somewhere.
Or have I missed something ? (I totally could, i'm pretty new at python
and digging in /usr/include, my C skills are the bare minimum...)
** Affects: python2.4 (Ubuntu)
Importance: Untriaged
Status: Unconfirmed
--
IN.SIOCGIFADDR isn't set in /usr/lib/python2.4/plat-linux2/IN.py
https://launchpad.net/bugs/58081
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs