linux-stable/tools/lib/bpf
John Fastabend 69e8cc134b bpf: sockmap sample program
This program binds a program to a cgroup and then matches hard
coded IP addresses and adds these to a sockmap.

This will receive messages from the backend and send them to
the client.

     client:X <---> frontend:10000 client:X <---> backend:10001

To keep things simple this is only designed for 1:1 connections
using hard coded values. A more complete example would allow many
backends and clients.

To run,

 # sockmap <cgroup2_dir>

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-16 11:27:53 -07:00
..
.gitignore tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf 2015-11-05 12:47:51 -03:00
Build bpf tools: Add bpf.c/h for common bpf operations 2015-08-07 10:16:58 -03:00
Makefile bpf: install libbpf headers on 'make install' 2017-07-26 13:42:09 -07:00
bpf.c bpf: sockmap sample program 2017-08-16 11:27:53 -07:00
bpf.h bpf: sockmap sample program 2017-08-16 11:27:53 -07:00
libbpf.c tools/lib/bpf: expose bpf_program__set_type() 2017-04-01 12:45:57 -07:00
libbpf.h tools/lib/bpf: expose bpf_program__set_type() 2017-04-01 12:45:57 -07:00