Can't bind packet socket

Issue #1090 resolved
Anonymous created an issue

From (bugs.pypy.org) by: montag451

Comments (9)

  1. Anonymous

    From (bugs.pypy.org) by: montag451

    When I try to bind a packet socket using ETH_P_ALL as the proto, I get an "unknown address family" error. The code attached to this issue work with CPython but doesn't work with PyPy.

  2. Anonymous

    From (bugs.pypy.org) by: montag451

    I finally found some time to work on this "unimplemented feature" :) I provide
    you with a patch that allows bind() to work with packet socket. I tested it with
    py.py and with a translated interpreter and it seems to work.
    
  3. Maciej Fijalkowski
    Hi montag. Thank you for your contributions! However, in order to incorporate 
    this to code, it requires to come with tests. See the current tests in 
    test/test_rsocket.py. I also suggest looking up py.test, the tool we use for 
    running those tests, it's really great.
    
    Cheers,
    fijal
    
  4. Log in to comment