diff --git a/src/packet/BOOTP.py b/src/packet/BOOTP.py index a095de0672ed09ca42591f631f40313e0d3bc445..805562bf35f3aa5beb3f7d8ebc294c0007d3b4ce 100644 --- a/src/packet/BOOTP.py +++ b/src/packet/BOOTP.py @@ -20,14 +20,16 @@ class BOOTP(Packet): ] - def __init__(self, packet: scapy.Packet, id: int = 0) -> None: + def __init__(self, packet: scapy.Packet, id: int = 0, last_layer_index: int = -1) -> None: """ BOOTP/DHCP packet constructor. :param packet: Scapy Packet to be edited. :param id: Packet integer identifier. + :param last_layer_index: [Optional] Index of the last layer of the packet. + If not specified, it will be calculated. """ - super().__init__(packet, id) + super().__init__(packet, id, last_layer_index) self.dhcp_options = packet.getlayer("DHCP options")