Given the next:
scutil --get ComputerName // Dan's MacBook Professional
scutil --get HostName // Dans-Macbook-Professional
scutil --get LocalHostName // Dans-Macbook-Professional
Why on earth, if I do a sudo tcpdump -c30 -vn -i en0 port 67 or port 68
to verify DHCP requests, does macOS do:
➜ ~ sudo tcpdump -c30 -vn -i en0 port 67 or port 68
tcpdump: listening on en0, link-type EN10MB (Ethernet), snapshot size 524288 bytes
01:55:46.692745 IP (tos 0x0, ttl 255, id 61100, offset 0, flags [none], proto UDP (17), size 328)
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 3a:35:ca:31:4e:fc, size 300, xid 0x53a1e874, Flags [none]
Shopper-Ethernet-Handle 3a:35:ca:31:4e:fc
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message (53), size 1: Request
Parameter-Request (55), size 13:
Subnet-Masks (1), Classless-Static-Route (121), Default-Gateway (3), Area-Identify-Server (6)
Area-Identify (15), Unknown (108), URL (114), Unknown (119)
Unknown (162), Unknown (252), LDAP (95), Netbios-Identify-Server (44)
Netbios-Node (46)
MSZ (57), size 2: 1500
Shopper-ID (61), size 7: ether 3a:35:ca:31:4e:fc
Requested-IP (50), size 4: 192.168.50.24
Lease-Time (51), size 4: 7776000
**Hostname (12), size 3: "Mac"** <---- hostname "Mac" right here