Robin Thoni 9 lat temu
rodzic
commit
3940b97dcd
1 zmienionych plików z 11 dodań i 0 usunięć
  1. 11
    0
      test.py

+ 11
- 0
test.py Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz