Re: [iovisor-dev] eBPF program to forward pkt from if-a to if-b

2017-12-26 Thread Avi Cohen (A) via iovisor-dev
Solved - by setting the interfaces to promisc > -Original Message- > From: Avi Cohen (A) > Sent: Monday, 25 December, 2017 4:36 PM > To: 'Daniel Borkmann'; Y Song > Cc: iovisor-dev@lists.iovisor.org > Subject: RE: [iovisor-dev] eBPF program to forward pkt from if-a to i

Re: [iovisor-dev] eBPF program to forward pkt from if-a to if-b

2017-12-25 Thread Avi Cohen (A) via iovisor-dev
hen (A) > Cc: iovisor-dev@lists.iovisor.org > Subject: Re: [iovisor-dev] eBPF program to forward pkt from if-a to if-b > > 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

Re: [iovisor-dev] eBPF program to forward pkt from if-a to if-b

2017-12-20 Thread Daniel Borkmann via iovisor-dev
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

Re: [iovisor-dev] eBPF program to forward pkt from if-a to if-b

2017-12-19 Thread Y Song via iovisor-dev
There are a few examples under examples/networking with bpf_clone_redirect helper to redirect a packet from one interface to another. 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