Message279562
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. |
|
Date |
User |
Action |
Args |
2016-10-27 18:43:42 | mturon | set | recipients:
+ mturon |
2016-10-27 18:43:42 | mturon | set | messageid: <1477593822.65.0.620141823972.issue28545@psf.upfronthosting.co.za> |
2016-10-27 18:43:42 | mturon | link | issue28545 messages |
2016-10-27 18:43:42 | mturon | create | |
|