Skip to content

Commit

Permalink
Undefined name: "headerInstance" --> "p4header"
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored and yonghong-song committed Jul 17, 2019
1 parent 37ac181 commit 64ea990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cc/frontends/p4/compiler/ebpfDeparser.py
Expand Up @@ -96,7 +96,7 @@ def serializeHeaderEmit(self, header, serializer, program):
assert isinstance(ebpfStack, ebpfInstance.EbpfHeaderStack)

if isinstance(p4header.index, int):
index = "[" + str(headerInstance.index) + "]"
index = "[" + str(p4header.index) + "]"
elif p4header.index is P4_NEXT:
index = "[" + ebpfStack.indexVar + "]"
else:
Expand Down

0 comments on commit 64ea990

Please sign in to comment.