I'm looking at some DHCP packets through wireshark. I notice that in the bootp section, there is a broadcast flag.
However, the dest IP is 255.255.255.255. Isn't it enough to indicate that it's broadcasted? Why is the flag needed?
Thanks,
lang2
ipudp
I'm looking at some DHCP packets through wireshark. I notice that in the bootp section, there is a broadcast flag.
However, the dest IP is 255.255.255.255. Isn't it enough to indicate that it's broadcasted? Why is the flag needed?
Thanks,
lang2
Best Answer
DHCP flag serves a completely different purpose. It is set by a client to indicate to a server how the reply should be sent to back to the client. DHCP client sends its request by broadcast, initially, since it doesn't know the server's IP address. However, since the server knows the client's IP (it just provided it with one), server can send the reply back by unicast even if the request was sent by broadcast. Per RFC2131: