Recent changes in the code for BZ 11705 breaks sockets using AF_PACKET. From the manpage of packet(7), protocol is the IEEE 802.3 protocol number in network byte order. See the <linux/if_ether.h> include file for a list of allowed protocols. When protocol is set to htons(ETH_P_ALL), then all protocols are received. The specified "protocol" to socket(AF_PACKET, ...) call affects the behavior only for receiving packets. You can still send raw packets irrespective of the protocol specified.
Created attachment 11900 [details] Patch for v4-4 and v4-3 branches
Hi Karolin, This one is for 4.3 and 4.4 branches. Thanks...
(In reply to Martin Schwenke from comment #2) Pushed to autobuild-v4-[4|3]-test.
(In reply to Karolin Seeger from comment #3) Pushed to both branches. Closing out bug report. Thanks!
(In reply to Karolin Seeger from comment #4) This one was somehow not pushed to v4-3-test. Pushed to autobuild-v4-3-test now. Thanks to metze for pointing this out!
(In reply to Karolin Seeger from comment #5) Thanks! So this will be part of 4.3.12 even if it's a security release...
(In reply to Karolin Seeger from comment #5) Pushed to v4-3-test. Closing out bug report. Thanks!