On Tue, Apr 18, 2017 at 11:26 AM, Sowmini Varadhan <sowmini.varad...@oracle.com> wrote: > On (04/18/17 11:14), Mike Maloney wrote: >> Change 'psock_fanout' to use SOCK_RAW so that the CBPF program used with >> SO_ATTACH_FILTER can examine the entire frame. Create a new CBPF >> program for use with PACKET_FANOUT_DATA which ignores the header, as it >> cannot see the ethernet header. > > Fix look good to me, but could you please also add the bpf_asm input > as a comment to the C code, in case we want to to read/extend this > down the road? > > --Sowmini >
I am not 100% sure what you are asking for, as the instructions you can feed to bpf_asm are already commented to the right of the program. -Mike