We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8209447 commit 43738beCopy full SHA for 43738be
scapy/layers/lltd.py
@@ -111,8 +111,8 @@ def mysummary(self):
111
112
def hashret(self):
113
tos, function = self.tos, self.function
114
- return "%c%c" % self.answer_hashret.get((tos, function),
115
- (tos, function))
+ return b"%c%c" % self.answer_hashret.get((tos, function),
+ (tos, function))
116
117
def answers(self, other):
118
if not isinstance(other, LLTD):
test/scapy/layers/lltd.uts
@@ -20,6 +20,7 @@ assert pkt.dst == pkt.real_dst
20
assert pkt.src == pkt.real_src
21
assert pkt.tos == 0
22
assert pkt.function == 0
23
+assert pkt.hashret() == b'\xd9\x88\x00\x00'
24
25
= Attribute build / dissection
26
assert isinstance(LLTDAttribute(), LLTDAttribute)
0 commit comments