#! /usr/bin/env python import dhcp_client dh = dhcp_client.DhcpClient() offer = dh.get_offer('00:15:00:ba:60:da', 'eth0') #offer = dh.get_offer('08:00:27:45:60:dc', 'wlan0') if offer == None: print("Timeout") else: print(offer.str())