]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Use broadcast address
authorTed Lemon <source@isc.org>
Wed, 21 Feb 1996 12:12:26 +0000 (12:12 +0000)
committerTed Lemon <source@isc.org>
Wed, 21 Feb 1996 12:12:26 +0000 (12:12 +0000)
client/dhclient.c
dhclient.c

index c9d9e64dbb95bfe69c394f39e294718ddf87acef..393f99d31e75a372bd8009f5c3b97a27c6df622c 100644 (file)
@@ -242,7 +242,7 @@ int main (argc, argv, envp)
                        raw.op = BOOTREQUEST;
 
                        to.sin_port = htons (2001);
-                       inet_aton ("206.119.204.48", &to.sin_addr);
+                       to.sin_addr.s_addr = INADDR_BROADCAST;
                        to.sin_family = AF_INET;
                        to.sin_len = sizeof to;
                        memset (to.sin_zero, 0, sizeof to.sin_zero);
index c9d9e64dbb95bfe69c394f39e294718ddf87acef..393f99d31e75a372bd8009f5c3b97a27c6df622c 100644 (file)
@@ -242,7 +242,7 @@ int main (argc, argv, envp)
                        raw.op = BOOTREQUEST;
 
                        to.sin_port = htons (2001);
-                       inet_aton ("206.119.204.48", &to.sin_addr);
+                       to.sin_addr.s_addr = INADDR_BROADCAST;
                        to.sin_family = AF_INET;
                        to.sin_len = sizeof to;
                        memset (to.sin_zero, 0, sizeof to.sin_zero);