Skip to content
Extraits de code Groupes Projets
Valider 0ce087a9 rédigé par François De Keersmaeker's avatar François De Keersmaeker
Parcourir les fichiers

Fixed DHCP

parent 461be07d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -20,14 +20,16 @@ class BOOTP(Packet): ...@@ -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. BOOTP/DHCP packet constructor.
:param packet: Scapy Packet to be edited. :param packet: Scapy Packet to be edited.
:param id: Packet integer identifier. :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") self.dhcp_options = packet.getlayer("DHCP options")
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter