Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
  • Loading branch information
jafingerhut committed Feb 18, 2025
1 parent 262c48b commit b6aabc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ptf/pcap_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, filename, linktype=LINKTYPE_PPI):
as the value of the optional parameter 'linktype'.
"""
self.stream = open(filename, "wb")
self.linktype = LINKTYPE_ETHERNET
self.linktype = linktype
if self.linktype == LINKTYPE_ETHERNET:
self.ppi_len = 0
elif self.linktype == LINKTYPE_PPI:
Expand Down

0 comments on commit b6aabc3

Please sign in to comment.