On Sat, Apr 9, 2016 at 9:27 AM, Jesper Dangaard Brouer <bro...@redhat.com> wrote: > On Sat, 9 Apr 2016 08:17:04 -0300 > Tom Herbert <t...@herbertland.com> wrote: > >> One other API issue is how to deal with encapsulation. In this case a >> header may be prepended to the packet, I assume there are BPF helper >> functions and we don't need to return a new length or start? > > That reminds me. Do the BPF program need to know the head-room, then? > Right, that is basically my question. Can we have a helper function in BPF that will prepend n bytes to the buffer? (I don't think we want expose a notion of headroom).
Tom > -- > Best regards, > Jesper Dangaard Brouer > MSc.CS, Principal Kernel Engineer at Red Hat > Author of http://www.iptv-analyzer.org > LinkedIn: http://www.linkedin.com/in/brouer