Support for AF_xxx sockets

Create issue
Issue #1942 new
Armin Rigo created an issue

PyPy's sockets don't support all the AF_xxx address families that only work (and can only be tested) when running as root, or that are more or less deprecated nowadays. What should we do about them? Add them as people report a need for them, as long as they are not too much of the deprecated kind?

(An example where the AF_PACKET family was needed:

Update: AF_PACKET added. AF_NETLINK appears to be supported (adding a test would be cool). Still missing are only AF_TIPS and AF_BLUETOOTH, if we read socketmodule.c correctly.

Comments (14)

  1. Maciej Fijalkowski

    I think we should implement them (some of those are really necessary for using scapy as a sniffer (which then runs only as root))

  2. Armin Rigo reporter

    I'm not sure what you mean exactly nowadays, so I can't do it myself. Please do the filing as appropriate :-)

  3. Armin Rigo reporter

    Please don't close this issue until we support all the same address families as CPython.

  4. Log in to comment