Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .config/codespell_ignore.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
abd
aci
ans
applikation
Expand Down
4 changes: 2 additions & 2 deletions scapy/contrib/diameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2527,8 +2527,8 @@ class AVP_10415_1259 (AVP_FL_V):
'val',
None,
{
1: "Pre-emptive priority: ",
2: "High priority: Lower than Pre-emptive priority",
1: "Preemptive priority: ",
2: "High priority: Lower than Preemptive priority",
3: "Normal priority: Normal level. Lower than High priority",
4: "Low priority: Lowest level priority",
})]
Expand Down
2 changes: 1 addition & 1 deletion scapy/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def any2i(self, pkt, x):
# However, having i2h implemented (#2364), it changes the default
# behavior and broke all packets that wrongly use two ConditionalField
# with the same name. Those packets are the problem: they are wrongly
# built (they should either be re-using the same conditional field, or
# built (they should either be reusing the same conditional field, or
# using a MultipleTypeField).
# But I don't want to dive into fixing all of them just yet,
# so for now, let's keep this this way, even though it's not correct.
Expand Down
2 changes: 1 addition & 1 deletion scapy/layers/smb2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4464,7 +4464,7 @@ class SMB2_IOCTL_RESP_GET_DFS_Referral(Packet):
def post_build(self, pkt, pay):
# type: (bytes, bytes) -> bytes
# Note: Windows is smart and uses some sort of compression in the sense
# that it re-uses fields that are used several times across ReferralBuffer.
# that it reuses fields that are used several times across ReferralBuffer.
# But we just do the dumb thing because it's 'easier', and do no compression.
offsets = {
# DFS_REFERRAL_ENTRY0
Expand Down
6 changes: 3 additions & 3 deletions test/contrib/http2.uts
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ assert str(h[16]) == 'accept-encoding: gzip, deflate'

assert expect_exception(KeyError, 'h2.HPackHdrTable()[h2.HPackHdrTable._static_entries_last_idx+1]')

= HTTP/2 HPackHdrTable : Addind Dynamic Entries without overflowing the table
= HTTP/2 HPackHdrTable : Adding Dynamic Entries without overflowing the table
~ http2 hpack hpackhdrtable

tbl = h2.HPackHdrTable(dynamic_table_max_size=1<<32, dynamic_table_cap_size=1<<32)
Expand Down Expand Up @@ -1493,7 +1493,7 @@ assert tbl.get_idx_by_name('x-requested-by') == h2.HPackHdrTable._static_entries
assert tbl[h2.HPackHdrTable._static_entries_last_idx+2].value() == hdrv2
assert tbl[h2.HPackHdrTable._static_entries_last_idx+3].value() == hdrv

= HTTP/2 HPackHdrTable : Addind already registered Dynamic Entries without overflowing the table
= HTTP/2 HPackHdrTable : Adding already registered Dynamic Entries without overflowing the table
~ http2 hpack hpackhdrtable

tbl = h2.HPackHdrTable(dynamic_table_max_size=1<<32, dynamic_table_cap_size=1<<32)
Expand Down Expand Up @@ -1522,7 +1522,7 @@ assert tbl[h2.HPackHdrTable._static_entries_last_idx+1].value() == hdrv
assert tbl[h2.HPackHdrTable._static_entries_last_idx+2].value() == hdr2v
assert tbl[h2.HPackHdrTable._static_entries_last_idx+3].value() == hdrv

= HTTP/2 HPackHdrTable : Addind Dynamic Entries and overflowing the table
= HTTP/2 HPackHdrTable : Adding Dynamic Entries and overflowing the table
~ http2 hpack hpackhdrtable

tbl = h2.HPackHdrTable(dynamic_table_max_size=80, dynamic_table_cap_size=80)
Expand Down
Loading