Skip to content

Commit 4812c62

Browse files
committed
fix spell err
1 parent 7211647 commit 4812c62

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

scapy/contrib/dtn/bpv7.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,11 @@ class EncryptedPreviousNodeBlock(PreviousNodeBlock):
442442
fields_template = Common.template_replace(
443443
PreviousNodeBlock.fields_template,
444444
{
445-
# The data field defintion from the parent class cannot be used here.
445+
# The data field definition from the parent class cannot be used here.
446446
# That data is now encrypted and cannot be decrypted to its original bytes
447447
# (within the scope of this module), so the Packet that it represents
448448
# cannot be dissected.
449-
# Instead, the data field defintion from CanonicalBlock is used.
449+
# Instead, the data field definition from CanonicalBlock is used.
450450
"data": CBORByteString("data", b"\xde\xad\xbe\xef")
451451
},
452452
)

scapy/contrib/dtn/tcpcl_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Session:
1919
TCPCL messages are conventionally, but not necessarily, sent on port 4556.
2020
Since this cannot be relied upon, especially on a localhost session, the best
2121
way to bind TCP packets to TCPCL message is to track the state of a TCPCL session.
22-
Once Contact Headers are successfuly exchanged, TCP packets can be assumed to
22+
Once Contact Headers are successfully exchanged, TCP packets can be assumed to
2323
carry payloads of TCPCL messages until the session ends.
2424
"""
2525

@@ -112,7 +112,7 @@ def process(pkt):
112112
# process ContactHeader
113113
if (
114114
sess.contact_init
115-
): # session aready initialized, Header is an ack
115+
): # session already initialized, Header is an ack
116116
sess.proc_ack()
117117
print("BEGIN TCPCL SESSION")
118118
else:

0 commit comments

Comments
 (0)