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('6c:3b:e5:1f:96:46', 'vmac')
  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())