Use an action to do the same thing as before

This commit is contained in:
Nico Schottelius 2019-03-27 18:22:37 +01:00
commit 12658b23ac
2 changed files with 30 additions and 4 deletions

View file

@ -1398,6 +1398,26 @@ I could work around this by using if(! .. .hit) { my_action(table_id)
^^^^^^
#+END_SRC
**** No conditional execution in actions
#+BEGIN_SRC
../p4src/static-mapping.p4(57): error: MethodCallStatement: Conditional execution in actions is not supported on this target
hdr.icmp.setValid();
^^^^^^^^^^^^^^^^^^^
../p4src/static-mapping.p4(70): error: MethodCallStatement: Conditional execution in actions is not supported on this target
hdr.icmp6.setInvalid();
^^^^^^^^^^^^^^^^^^^^^^
../p4src/static-mapping.p4(73): error: MethodCallStatement: Conditional execution in actions is not supported on this target
hdr.icmp6_na_ns.setInvalid();
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../p4src/static-mapping.p4(74): error: MethodCallStatement: Conditional execution in actions is not supported on this target
hdr.icmp6_option_link_layer_addr.setInvalid();
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation Error
p4@ubuntu:~/master-thesis/p4app$
#+END_SRC
*** Implementation limitations
**** No fragmentation support (yet)
**** No session handling (yet)