Buffalo WLAE-AG300N is one of those buggy DHCP clients… Even running firmware Ver.1.85 (R1.05/B1.00)), it gets the length of the DHCP host name wrong so adds a bogus NULL byte to that name.
@Buffalo: please fix this.
The DHCP client options are of structure Type/Length/Value so a client is supposed to set the length of the hostname to exactly the number of characters.
However there exist buggy clients that either send a length of 1 more and a \00 at the end of the name, or send a fixed length and pad it with \00 as necessary.
Fromt a packet capture:
This besides these devices also not automatically powering up when power goes out and comes back up…
Mikrotik packet capture and viewing it in Wireshark
Anyway: getting and displaying the packet capture was quite easy:
- In Winbox (or from the console):
- Tools ->
- Packet Sniffer ->
- General tab: set filename and file limit, then click Apply
- Filter tab: choose the interface, protocol (UDP) and port (67), then click Apply
- Click Start
- Wait for the DHCP refresh to happen
- Click Stop
- In Winbox (or from the console):
- Files -> Choose the captured file -> Download
- In your file manager, ensure the downloaded file gets the .pcap extension
- In Wireshark: load the .pcap file and inspect it
–jeroen