Add a Learning VLAN program example
authorBrenden Blanco <bblanco@plumgrid.com>
Tue, 9 Jun 2015 20:58:42 +0000 (13:58 -0700)
committerBrenden Blanco <bblanco@plumgrid.com>
Thu, 11 Jun 2015 17:58:15 +0000 (10:58 -0700)
commitaf95673021f9363aa34f8c4360f1b00e29ab7a64
tree45a973302bca81c23a9e8fbe5c070e165d0cb51a
parentdce98b90229993d8bb2ee7a9027e7f1f5a8c7a5c
Add a Learning VLAN program example

* Create a simulation of a physical network with multiple vlans, which
  can accept and distribute connections from multiple clients in
  overlapping subnets. The program will assign to a worker based on mac
  address.
* Remove a hardcoded SO_ATTACH_BPF literal, and fix one spacing

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
examples/vlan_learning.c [new file with mode: 0644]
examples/vlan_learning.py [new file with mode: 0644]
src/cc/export/helpers.h
src/cc/libbpf.c