You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test.py 245B

1234567891011
  1. #! /usr/bin/env python2
  2. import dhcp_client
  3. dh = dhcp_client.DhcpClient()
  4. offer = dh.get_offer('00:15:00:ba:60:da', 'eth0')
  5. #offer = dh.get_offer('08:00:27:45:60:dc', 'wlan0')
  6. if offer == None:
  7. print("Timeout")
  8. else:
  9. print(offer.str())