On 12/20/2017 02:32 AM, Y Song via iovisor-dev wrote: > There are a few examples under examples/networking with > bpf_clone_redirect helper to redirect a packet from one > interface to another.
Right, and there's also bpf_redirect() directly out of cls_bpf where you don't need to go and clone the skb. > Right socket_filter cannot modify packets, you may need to use a > different one, e.g., cls_act type. > > On Mon, Dec 18, 2017 at 6:23 AM, Avi Cohen (A) via iovisor-dev > <iovisor-dev@lists.iovisor.org> wrote: >> Hello, >> 1. I don't find under bcc/examples a reference for forwarding function . >> e,g, capture pkt on if-a look for any match and then forward to if-b. >> Can you send a reference to a similar function. ? >> >> 2. in the module examples/networking/http-filter-simple.c - when I try to >> write to the packet I receive an exception - do I have to set the socket tp >> other than SOCKET_FILTER ? >> >> Best Regards >> Avi >> _______________________________________________ >> iovisor-dev mailing list >> iovisor-dev@lists.iovisor.org >> https://lists.iovisor.org/mailman/listinfo/iovisor-dev > _______________________________________________ > iovisor-dev mailing list > iovisor-dev@lists.iovisor.org > https://lists.iovisor.org/mailman/listinfo/iovisor-dev > _______________________________________________ iovisor-dev mailing list iovisor-dev@lists.iovisor.org https://lists.iovisor.org/mailman/listinfo/iovisor-dev