There was an error while loading. Please reload this page.
1 parent c8ed1d5 commit 472d277Copy full SHA for 472d277
dhcppython/client.py
@@ -9,8 +9,7 @@
9
from . import packet, options, utils
10
from .exceptions import DHCPClientError
11
12
-CLIENT_VER = "0.0.1"
13
-CLIENT_NAME = "DORA"
+
14
COL_LEN = 80
15
16
Lease = collections.namedtuple(
@@ -37,7 +36,6 @@ def format_dhcp_packet(pkt: packet.DHCPPacket) -> str:
37
36
f"{pkt.op} / {msg_type} / {broadcast}\n"
38
+ f"{len(pkt.asbytes)} bytes / TX ID {hex(pkt.xid).upper()} / {pkt.secs} seconds elapsed\n"
39
+ "Client info:".ljust(client_info_padding)
40
- # + f"{pkt.htype} - {pkt.chaddr} ({vendor := utils.mac2vendor(pkt.chaddr)})"[:COL_LEN - 18] + "\n"
41
+ client_info + "\n"
42
+ "Client address:".ljust(client_info_padding)
43
+ f"{pkt.ciaddr}\n"
0 commit comments