예제 #1
0
    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
예제 #2
0
 def create_dhcp_discover_packet(self):
     return testutils.dhcp_discover_packet(eth_client=self.client_mac)
예제 #3
0
 def create_dhcp_discover_packet(self):
     return testutils.dhcp_discover_packet(eth_client=self.client_mac,
                                           set_broadcast_bit=True)