Files
alexisbalbachan dabf7fd2f2 Assorted fixes for NTLM AV_PAIRS container protocol and ImpactPacket LinuxSLL/IP (#2092, #2093, #2094) (#2137)
* Added fixes and tests for #2092, #2093, and #2094

* do not use interal __iter__ interface for av_pairs tests

---------

Co-authored-by: Kali <adrian.manrique@gmail.com>
2026-03-13 10:52:52 -03:00

27 lines
644 B
Python

#!/usr/bin/env python
# Impacket - Collection of Python classes for working with network protocols.
#
# Copyright Fortra, LLC and its affiliated companies
#
# All rights reserved.
#
# This software is provided under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
import unittest
from impacket.ImpactPacket import IP
class TestIP(unittest.TestCase):
def test_fragment_by_size_without_payload(self):
ip = IP()
fragments = ip.fragment_by_size(8)
self.assertEqual(fragments, [ip])
if __name__ == '__main__':
unittest.main(verbosity=1)