Martin Turon added the comment:
Just for clarity, the high level bug is that when binding to an interface using
AF_PACKET, transmissions work, but receive does not:
sock = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, ETH_P_IEEE802154)
sock.bind(("monitor0", ETH_P_IEEE802154))
sock.send(test_frame) # transmission works fine
pkt = sock.recv(127) # never receives, though C test works fine
The same test written in C that calls ioctl(sockfd, SIOCGIFNAME, &ifr) to
lookup ifindex for bind from ifname="monitor0" works fine.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28545>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com