Skip to content

Commit

Permalink
Merge pull request #1348 from Bastian-Krause/bst/network-test-simplif…
Browse files Browse the repository at this point in the history
…ication

examples/network-test: simplify ethernet frame generation
  • Loading branch information
Emantor authored Apr 4, 2024
2 parents 9d468f5 + 5008e8a commit 722838b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/network-test/pkg-replay-record.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
from labgrid.logging import basicConfig, StepLogger

def generate_frame():
frame = [Ether(dst="11:22:33:44:55:66", src="66:55:44:33:22:11", type=0x9000)]
frame = Ether(dst="11:22:33:44:55:66", src="66:55:44:33:22:11", type=0x9000)
padding = "\x00" * (conf.min_pkt_size - len(frame))
frame = frame[0] / Raw(load=padding)
frame /= Raw(load=padding)
return frame


Expand Down

0 comments on commit 722838b

Please sign in to comment.