Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Firewall NF which uses the DPDK LPM Library (#80)
The firewall NF drops or forwards packets based on rules provided in the json file. This is achieved using DPDK's LPM (longest prefix matching) library. Default behavior is to drop a packet unless the packet matches a rule. The NF also has a debug mode to print decisions for every packet and an inverse match mode where default behavior is to forward a packet if it is not found in the table. Commit log: * Syncing with current * Updates for ubuntu 18 * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Updates * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update onvm_config_common.c * Update onvm_config_common.c * Updates * Update onvm_config_common.c * Updates * updates * Update onvm_config_common.c * Update onvm_config_common.c * Update firewall.c * Update firewall.c * test * Update firewall.c * test * Update firewall.c * Update firewall.c * test * Update firewall.c * Update firewall.c * Update onvm_config_common.c * updates * Update firewall.c * Update firewall.c * Update rules.json * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * test * updates * updates * Update go.sh * Updates * Revert "Updates" This reverts commit 120b624. * Update firewall.c * updates * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * updates * Update onvm_config_common.c * Update onvm_config_common.c * Update firewall.c * Delete rules.json * Update firewall.c * Update firewall.c * Update firewall.c * Update README.md * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update onvm_nflib.c * Update onvm_nflib.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update firewall.c * Update onvm_nf.c * modifying go script, removing unnecessary code * Update firewall.c * Update firewall.c * Update firewall.c * Style fixes * more style fixes * More style fixes * Moving rules file, logic for if running from examples directory * Moving rules.json file * Delete rules.json from examples direc * Nuking custom go.sh script * Update README.md adding -f to the readme * Adding pkt total, drop, accepted stats * fixing readme * documentation and style fixes * bug fix: logic of dropping/accepting packets * bug fix: logic of dropping/accepting packets * style: change to 8 space indents * Multiple run support * style updates * added not ipv4 field * specify directory to rules.json file instead of specific name * IP's are now entered in proper format in rules.json * printing IP's in debug mode * Style fixes * Style fixes * Style fixes/double free/corruption error * Style fixes/double free/corruption error * style * Revert "style" This reverts commit b2753a6. * Style fixes * Style fixes/whitespace * spacing fix * spacing fix * Space fix * Double free/corruption fix * Fixed depth issue * Style fixes * Read me updates * Parsing ip as cpu * Compatibility with onvm_pkt_parse_ip PR merge * Small fix in load_balancer * Remove unused fw accept tag * Creating function for char to ip * Adding a function to parse string to ip * Style nit * Style nit * Style nits and TODO * TODO * ip_disp to ip_string * Restoring lpm struct (accidentally deleted) * Restoring lpm status macro * Style fixes, naming, etc * Style fixes, naming * Style fixes * Style nit
- Loading branch information