In article <(E-Mail Removed) .com>,
(E-Mail Removed) wrote:
>I have trying to write a program to detect the dhcpd broadcasting. I am
>able to detect the client's broadcasting by listening to port 67. But I
>couldn't get anything from port 68.
See RFC2131 Section 4.1
NORMALLY client to server is broadcast to port 67, because the client
doesn't know either address. The server monocasts to port 68.
0.0.0.0:1025 -> 255.255.255.255:67
IP.OF.SERV.ER:3456 -> IP.OF.CLI.ENT:68
Remember, this is Ethernet, so the packet at that level looks like
MA:CA

D:RE:SS:Client -> FF:FF:FF:FF:FF:FF
Server:MA:CA

D:RE:SS -> MA:CA

D:RE:SS:Client
Now, if you are on a 'switched' network (rather than a hub or coax),
the switch probably won't spray the reply out all ports - you won't hear
it, unless you are on a common switch port.
Old guy