- 14 Jul, 2015 2 commits
-
-
4ast authored
Bugfix for simulation.py
-
Brenden Blanco authored
* Ignore exceptions and continue cleanup of dead children * Set loopback interface up Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 11 Jul, 2015 4 commits
-
-
Brenden Blanco authored
Yhs dev
-
Yonghong Song authored
o This way, process kill happens correctly. Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
Yonghong Song authored
o sometimes, NSPipe kill may not really kill the process o with the explicit kill, remove the cleanup for outer veth's associated with namespace Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
Yonghong Song authored
o make some long lines in python codes shorter o use python style unused variable name "_" Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
- 10 Jul, 2015 2 commits
-
-
Yonghong Song authored
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
Yonghong Song authored
o disable ipv6 for newly-created net devices to avoid unaccountable pkt counting o explicitly enable ip_forward in router namespace o proper cleanup in case of validation failure o in test_brb, use different tc_index to differentiate the packet source (pem or router_ns) o change bpf program return value to 1 so that the packet will be dropped instead of being passed up to the stack Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
- 08 Jul, 2015 2 commits
-
-
4ast authored
Update README.md examples and INSTALL.md
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 07 Jul, 2015 5 commits
-
-
4ast authored
Update README with install info, few cleanups
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
* Add some examples to package * Fix bpf_trace_printk bug not supporting 0 format args * Make src_file arg loading a little bit more intelligent in BPF() * Update README with Hello, World step-by-step Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Add multiple build support styles
-
Brenden Blanco authored
* Add RPM and DEB packaging targets (using CPack from CMake) to build binary packages for Fedora and Ubuntu targets. * Add Docker build scripts for each of the above that run the build in the right environment (assuming docker is available). - In Ubuntu, build against the LLVM 3.7 nightly snapshots - In Fedora, build against LLVM 3.7 from git (takes longer) * Depending on packages installed on the build machine, it may be possible to cross-package for other targets without invoking Docker. * Re-introduce src/cc/compat directory to keep the build stable for the time being. Similarly, it was necessary to #define some ugly constants that should eventually show up in libc. * Add a few simple version checks to allow a partially working (really tracing only) libbcc in 4.1 kernels. TODO (followup commit): Re-work the READMEs Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 03 Jul, 2015 2 commits
-
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
* Install into lib64 instead of lib * Pull 4.2 kernel from rawhide instead of building it Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 02 Jul, 2015 4 commits
-
-
4ast authored
Drop PROTO macro syntax and introduce alternative
-
Brenden Blanco authored
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
Brenden Blanco authored
* Feedback given by some external users was that the PROTO syntax was opaque and unintuitive. As such, drop that macro and introduce an alternative syntax. * Convert all to use 'cursor_advance' macro API Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Automate bpf_probe_read
-
- 01 Jul, 2015 1 commit
-
-
Brenden Blanco authored
* Rewrite accesses to args beyond the first to use bpf_probe_read - Support struct access - Support POD type accesses Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 30 Jun, 2015 1 commit
-
-
4ast authored
Clean some brittle parts of clang rewriter
-
- 29 Jun, 2015 1 commit
-
-
Brenden Blanco authored
* Rewrites of text inside of a macro (even if just the arguments) is not support by clang. Convert macro definitions to pure rewrites instead. * For packet field access, no longer require 'skb' named argument...instead, learn it from the function parameter list. * Add a complex test case...supposedly this should have failed issue #10, but the C version does not exhibit the same failure as the B version. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 28 Jun, 2015 1 commit
-
-
4ast authored
Make tunnel example more user friendly
-
- 25 Jun, 2015 1 commit
-
-
Brenden Blanco authored
* Move files to separate directory * Add README * Run http server automatically from main.py * Add setup.sh script to automate dependencies Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 23 Jun, 2015 7 commits
-
-
Brenden Blanco authored
use new get_table interface to avoid specify key/leaf type in py code
-
4ast authored
Add vxlan tunnel monitoring example
-
Yonghong Song authored
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
Brenden Blanco authored
use "raw_input" instead "input" to avoid python 2.7 exception
-
Yonghong Song authored
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
Yonghong Song authored
Signed-off-by: Yonghong Song <yhs@plumgrid.com>
-
Brenden Blanco authored
* Example simulates many vxlan hosts ("hypervisors") with multiple clients per host. Some clients will be sending traffic to another client on a different host. * Add vxlan header to proto.h * Remove unused import line in vlan_learning * NOTE: to display this demo, it is required to checkout the chord graph demo from https://github.com/drzaeus77/chord-transitions.git. Follow the instructions in that repo to get a simple http server up and running. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
- 19 Jun, 2015 1 commit
-
-
4ast authored
Rework vlan example to be 1:1, no mac learning
-
- 18 Jun, 2015 6 commits
-
-
Brenden Blanco authored
example that shows usages of maps, probe_read, get_current_pid helpers
-
Alexei Starovoitov authored
$ ./task_switch.py task_switch[ 2379-> 0]=4 task_switch[ 3914-> 0]=2 task_switch[ 3133-> 0]=5 task_switch[10903-> 0]=100 <-- 100 times python process switched into idle task_switch[ 116-> 0]=1 task_switch[ 0-> 14]=1 task_switch[10803-> 0]=1 task_switch[22292-> 0]=1 task_switch[ 0->22292]=1 task_switch[ 0->10803]=1 task_switch[ 30-> 0]=1 task_switch[ 0->10903]=100 <-- 100 times back into python Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
-
Brenden Blanco authored
* Use ifindex instead of src_mac to program egress table * Remove the static arp programming * Get the example to work in python2 Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Move shared example code into simulation.py
-
Brenden Blanco authored
* Create a class for the examples to share, helps with IPDB cleanup and namespace creation. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
-
4ast authored
Remove update() call from vlan example
-