def create_dhcp_discover_packet(self, dst_mac=BROADCAST_MAC, src_port=DHCP_CLIENT_PORT): discover_packet = testutils.dhcp_discover_packet(eth_client=self.client_mac, set_broadcast_bit=True) discover_packet[scapy.Ether].dst = dst_mac discover_packet[scapy.IP].sport = src_port return discover_packet
def create_dhcp_discover_packet(self): return testutils.dhcp_discover_packet(eth_client=self.client_mac)
def create_dhcp_discover_packet(self): return testutils.dhcp_discover_packet(eth_client=self.client_mac, set_broadcast_bit=True)