diff --git a/pytcp/__init__.py b/pytcp/__init__.py index b38ecaf1..e3569a42 100755 --- a/pytcp/__init__.py +++ b/pytcp/__init__.py @@ -23,13 +23,15 @@ # # ############################################################################ +# pylint: disable=too-many-arguments + """ Module contains the main PyTCP stack class. pytcp/__init__.py -ver 2.8 +ver 2.9 """ @@ -87,7 +89,7 @@ def __init__( ip6_gateway: str | None = None, ): """ - Initialize stack on given interface. + Initialize stack on the provided interface. """ # Set the MAC address. @@ -121,6 +123,7 @@ def __init__( config.IP6_SUPPORT = True config.IP6_LLA_AUTOCONFIG = True config.IP6_GUA_AUTOCONFIG = False + self.rx_fd = fd[0] self.tx_fd = fd[1] @@ -128,6 +131,7 @@ def start(self) -> None: """ Start stack components. """ + stack.timer.start() stack.arp_cache.start() stack.nd_cache.start() @@ -142,6 +146,7 @@ def stop(self) -> None: """ Stop stack components. """ + stack.packet_handler.stop() stack.tx_ring.stop() stack.rx_ring.stop()