The DHCP message must be send as a link-level broadcast for an unconfigured interface.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19458 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4a765b5f26
commit
2e31a85d7f
@ -308,7 +308,7 @@ DHCPClient::DHCPClient(const char* device)
|
||||
|
||||
printf("DHCP message size %lu\n", message.Size());
|
||||
|
||||
ssize_t bytesSent = sendto(socket, &message, message.MinSize(), 0,
|
||||
ssize_t bytesSent = sendto(socket, &message, message.MinSize(), MSG_BCAST,
|
||||
(struct sockaddr*)&broadcast, sizeof(broadcast));
|
||||
if (bytesSent < 0) {
|
||||
fStatus = errno;
|
||||
|
Loading…
Reference in New Issue
Block a user