{ "program" : "test.p4", "header_types" : [ { "name" : "Ethernet_h", "id" : 0, "fields" : [ ["dstAddr", 48, false], ["srcAddr", 48, false], ["etherType", 16, false] ] }, { "name" : "Ipv4_h", "id" : 1, "fields" : [ ["version", 4, false], ["ihl", 4, false], ["diffserv", 8, false], ["totalLen", 16, false], ["identification", 16, false], ["flags", 3, false], ["fragOffset", 13, false], ["ttl", 8, false], ["protocol", 8, false], ["hdrChecksum", 16, false], ["srcAddr", 32, false], ["dstAddr", 32, false] ] }, { "name" : "scalars", "id" : 2, "fields" : [ ["k", 128, false] ] }, { "name" : "standard_metadata_t", "id" : 3, "fields" : [ ["ingress_port", 9, false], ["egress_spec", 9, false], ["egress_port", 9, false], ["clone_spec", 32, false], ["instance_type", 32, false], ["drop", 1, false], ["recirculate_port", 16, false], ["packet_length", 32, false], ["_padding", 4, false] ] } ], "headers" : [ { "name" : "ethernet", "id" : 0, "header_type" : "Ethernet_h", "metadata" : false }, { "name" : "ip", "id" : 1, "header_type" : "Ipv4_h", "metadata" : false }, { "name" : "scalars", "id" : 2, "header_type" : "scalars", "metadata" : true }, { "name" : "standard_metadata", "id" : 3, "header_type" : "standard_metadata_t", "metadata" : true } ], "header_stacks" : [], "field_lists" : [], "parsers" : [ { "name" : "parser", "id" : 0, "init_state" : "start", "parse_states" : [ { "name" : "start", "id" : 0, "parser_ops" : [ { "parameters" : [ { "type" : "regular", "value" : "ethernet" } ], "op" : "extract" } ], "transitions" : [ { "value" : "0x0800", "mask" : null, "next_state" : "parse_ipv4" } ], "transition_key" : [ { "type" : "field", "value" : ["ethernet", "etherType"] } ] }, { "name" : "parse_ipv4", "id" : 1, "parser_ops" : [ { "parameters" : [ { "type" : "regular", "value" : "ip" } ], "op" : "extract" } ], "transitions" : [ { "value" : "default", "mask" : null, "next_state" : null } ], "transition_key" : [] } ] } ], "deparsers" : [ { "name" : "deparser", "id" : 0, "order" : ["ethernet", "ip"] } ], "meter_arrays" : [], "counter_arrays" : [], "register_arrays" : [ { "name" : "keys", "id" : 0, "size" : 1024, "bitwidth" : 128 } ], "calculations" : [], "learn_lists" : [], "actions" : [ { "name" : "act", "id" : 0, "runtime_data" : [], "primitives" : [ { "op" : "modify_field", "parameters" : [ { "type" : "field", "value" : ["scalars", "k"] }, { "type" : "hexstr", "value" : "0x00000000000000000000000000000000" } ] }, { "op" : "register_write", "parameters" : [ { "type" : "register_array", "value" : "keys" }, { "type" : "hexstr", "value" : "0x00000001" }, { "type" : "field", "value" : ["scalars", "k"] } ] } ] }, { "name" : ".drop", "id" : 1, "runtime_data" : [], "primitives" : [ { "op" : "drop", "parameters" : [] } ] } ], "pipelines" : [ { "name" : "ingress", "id" : 0, "init_table" : "Ing.exit", "tables" : [ { "name" : "Ing.exit", "id" : 0, "key" : [ { "match_type" : "exact", "target" : ["standard_metadata", "drop"] } ], "match_type" : "exact", "type" : "simple", "max_size" : 1, "with_counters" : false, "support_timeout" : false, "direct_meters" : null, "actions" : [".drop"], "action_ids" : [1], "next_tables" : { ".drop" : null } } ], "conditionals" : [] }, { "name" : "egress", "id" : 1, "init_table" : "tbl_act", "tables" : [ { "name" : "tbl_act", "id" : 1, "key" : [], "match_type" : "exact", "type" : "simple", "max_size" : 1024, "with_counters" : false, "support_timeout" : false, "direct_meters" : null, "action_ids" : [0], "actions" : ["act"], "base_default_next" : "Eg.exit", "next_tables" : { "act" : "Eg.exit" }, "default_entry" : { "action_id" : 0, "action_const" : false, "action_data" : [], "action_entry_const" : true } }, { "name" : "Eg.exit", "id" : 2, "key" : [ { "match_type" : "exact", "target" : ["standard_metadata", "drop"] } ], "match_type" : "exact", "type" : "simple", "max_size" : 1, "with_counters" : false, "support_timeout" : false, "direct_meters" : null, "actions" : [".drop"], "action_ids" : [1], "next_tables" : { ".drop" : null } } ], "conditionals" : [] } ], "checksums" : [], "force_arith" : [ ["standard_metadata", "ingress_port"], ["standard_metadata", "egress_spec"], ["standard_metadata", "egress_port"], ["standard_metadata", "clone_spec"], ["standard_metadata", "instance_type"], ["standard_metadata", "drop"], ["standard_metadata", "recirculate_port"], ["standard_metadata", "packet_length"] ] }