Fix for Issue #8, pkt.rewrite_field
authorBrenden Blanco <bblanco@plumgrid.com>
Thu, 7 May 2015 20:14:00 +0000 (13:14 -0700)
committerBrenden Blanco <bblanco@plumgrid.com>
Thu, 7 May 2015 20:14:00 +0000 (13:14 -0700)
commit44b93de0816932a09c185009cc43fce4401a3b99
tree67d36988a111874c066f11c68dd8af5e13ca60bf
parent29cc81eede172f97ce5c0af1d728fdaffce955b2
Fix for Issue #8, pkt.rewrite_field

* This was unintentionally removed in the last cleanup, adding it back.
* Also adding support for $ip.dst = XXX style syntax
* This is an ugly commit, please bear with it until I figure out the
  structure of the language, especially w.r.t. proto:: type fields.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
src/cc/codegen_llvm.cc
src/cc/codegen_llvm.h
src/cc/node.h
src/cc/parser.cc
src/cc/parser.yy
src/cc/printer.cc
src/cc/type_check.cc
tests/jit/test2.b