I would like to use device MAC address in the --mac option. For example, on Linux, a possible usage may be:
$ sudo ./dhcptest --quiet
d @eth0
op=BOOTREPLY chaddr=[MAC address of device eth0] hops=1 xid=D772D15D secs=0 flags=8000
ciaddr=0.0.0.0 yiaddr=[my IP] siaddr=0.0.0.0 giaddr=[my IP] sname= file=
10 options:
53 (DHCP Message Type): offer
54 (Server Identifier): [DHCP server IP]
51 (IP Address Lease Time): 86400 (1 day)
1 (Subnet Mask): 255.255.255.0
3 (Router Option): [Router IP]
6 (Domain Name Server Option): [DNS servers' IPs]
58 (Renewal (T1) Time Value): 43200 (12 hours)
59 (Rebinding (T2) Time Value): 75600 (21 hours)
28 (Broadcast Address Option): [Broadcast address]
15 (Domain Name): [Domain name]
q
I have an implementation at https://github.com/yan12125/dhcptest, however, I'm not familiar with D and the implementation is naive. Could you add the support?
I would like to use device MAC address in the --mac option. For example, on Linux, a possible usage may be:
I have an implementation at https://github.com/yan12125/dhcptest, however, I'm not familiar with D and the implementation is naive. Could you add the support?